Shopware 6 get category name from store-api endpoint - shopware

I use endpoint /store-api/checkout/order is it possible to get from this endpoint category name? Now I can only reach out category ids.

Related

Mailchimp marketing API "Your campaign is not ready to send" missing content field

I am new to both node.js and mailchimp api I am trying to create a campaign through api but "CONTENT" field is not getting selected from the campaign.
which parameters should I pass to the create campaign api to get that content field selected.
Create the campaign, then do a separate call to add the content (PUT campaigns/{campaign id}/content) then send

Microservice aggragate design?

I develop an eCommerce app with DDD as a microservice.
I have product service, category service, price service.
First question:
I don't store any info about category or price in product service because they are in their own service.
Should I store default value or etc in the product model?
second question:
When CreateProductRequest comes to product service. It includes category and price data in the request model. After creating a product. I fire productCreatedEvent. It stores created product id, category, price info.
Other services consume that event and save its own database related data. For example, pricing service saves price with product id, price. Category service saves product id and category id.
Should I send all data in one event like productCreatedEvent? Or send separated commands like createProductCategory to category service and createProductPrice to price service via rabbitMQ or grpc call.
First of all, you should think if it makes sense to separate product service from price and category services. I dont know what are the responsibilities of each one, but only makes sense to split them if each one has functionality on its own.
I mean, if it is impossible to have a price or a category without its product, the three would be part of the same microservice. There will be a product service wich contains products each of one with its price and category.
In case that this division makes sense because the price and category service have its own functionality and responsibilities independent from the product, these are the answers in my opinion
The first question should be to create categories and prices in first place and when you need to create a product you will reference the price id and category id and pass it to the producto service.
regarding the second question, You should not send price and category info to the product because these are not info that product service have to know, so the proper way to do, as I said before, is first create the price and category calling its own services and then send the createProduct command with the reference.
But once more, I think the best approach is to merge these three services into one because they seem very related

Rest api for Salesforce Markting Cloud (ExactTarget) returns Categories from Parent Business Unit

I have two business units in my salesforce marketing cloud account with different folders structures. For example Parent Business Unit (PBU) has 3 folders by name ABC, PQR, and XYZ and Child Business Unit(CBU) has 2 folders by name AA,BB.
When I run the OAuth2.0 end point get the token using client id and secret of CBU and pass the token to get categories endpoint, the response gives me categories of the PBU i.e. ABC,PQR,XYZ.
Is there any setting in salesforce which I need to do which will return assets of specific BUs using rest endpoints?
Thanks,
Swapnil
You will have to add the clientID within your API code to get the data from the specific Business Unit. This document will be helpful - https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/using_clientid_in_your_soap_api_code.htm

Stripe API - Get all Skus for a Product

Using the Stripe API to build a simple e-comm site. I initially was requesting all SKUs but realized what I really wanted was to display all Products.
For example, instead of listing all the variations (SKUs) of Product A, Product B, and Product C, I want to list the main Product A, Product B, and Product C. When the user view the details of Product A, then they see all related SKUs (sizes, colors, etc).
The Stripe API has an endpoint for retrieving all products, and an endpoint for retrieving a single product, but I don't see a property on the product object with the associated SKUs for that product?
How do you retrieve all SKUs for a specific Product using the Stripe API?
You can do it with the SKUs API. One of the endpoints there will list the SKUs. You can filter these SKUs based on the product. i.e.
curl https://api.stripe.com/v1/skus?limit=3 \
-u sk_test_9GavlLpfiKewqeCBXvRvmVgd: \
-d product=PRODUCT_ID
-G
Where PRODUCT_ID is a good typed product, not a service.

google wallet api: specifying sku?

in the google wallet merchant center, if I click on one purchase I am taken to detailed panel where an "SKU" field is displayed along with item name and description.
While name and description are filled just as they were specified during the purchase (in the jwt), the SKU (aka item id) field is empty.
not surprisingly since it wasn't specified in the jwt.
not surprisingly since there is no place for it in the jwt specs.
so why is the field present in the order details in the merchant center?
is there any way to get the SKU to be present during the purchase?

Resources