Update multiple SKU promotion
Changed onUpdates information from a Multiple SKU promotion. This scenario allows the creation of a single promotion for multiple SKUs with the Percentage Effect.
⚠️ The limit of SKUs on a Multiple Effects promotion is 400.
Permissions
Any user or API key must have at least one of the appropriate License Manager resources to be able to successfully run this request. Otherwise they will receive a status code 403 error. These are the applicable resources for this endpoint:
| Product | Category | Resource |
|---|---|---|
| Rates and Benefits | Manage benefits and rates | GerenciarPromocoesETarifas |
There are no applicable predefined roles for this resource list. You must create a custom role and add at least one of the resources above in order to use this endpoint.To learn more about machine authentication at VTEX, see Authentication overview.
❗ To prevent integrations from having excessive permissions, consider the best practices for managing API keys when assigning License Manager roles to integrations.
Request
- Base URLhttps://apiexamples.vtexcommercestable.com.br
- URLhttps://apiexamples.vtexcommercestable.com.br/api/rnb/pvt/import/calculatorConfiguration/{promotionId}
- Auth
- API key in header X-VTEX-API-AppKey and API key in header X-VTEX-API-AppToken
- or API key in header VtexIdclientAutCookie
Path parameters
Promotion unique identifier.
Headers
Type of the content being sent.
HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.
Promotion Name.
Defines if the Promotion is cumulative with other promotions.
This header allows implementing the Promotion in multiples client clusters. You can set the value as all - the Promotion will be valid to all the clusters - or any - the Promotion will be valid to any of the clusters.
Cluster that will be included in the Promotion. To add multiple clusters, create a header for each one of them.
Promotion start date.
Promotion end date.
Condition that will accumulate the Promotion with manual prices or not.
Request body text/csv
The file must contain the SKU ID and the percentage of the discount. The first line must have the headers sku and effect. The next lines must be the SKU ID and the percentage, without any spaces. For decimal values, use . as in 10.5. This should be sent as a raw text on the request body.
Example request
"sku,effect\r\n1,10.5"
Response
Accepted
Changes
- info
api tag
Promotions and taxesadded - info
api tag
Promotions and Taxesremoved
- info
- info
api operation id
UpdateMultipleSkuPromotionwas added
- info