Seller opt-in or opt-out
Changed onAdds or removes one or more sellers to or from a specified promotion.
⚠️ When the first seller opts in to an inactive promotion, it's activated, and when the last seller opts out, it's deactivated.
Permissions
Any user or application 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 401 error. These are the applicable resources for this endpoint
| Product | Category | Resource |
|---|---|---|
| Rates and Benefits | Manage external seller promos | External_Seller_Promotions |
Request
- Base URLhttps://apiexamples.vtexcommercestable.com.br
- URLhttps://apiexamples.vtexcommercestable.com.br/api/rnb/pvt/calculatorconfiguration/{promotionId}/seller-opt
- 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
The ID of the promotion.
Query parameters
The VTEX account name that owns the promotion.
Headers
Type of the content being sent.
HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.
Must match the current lastModified value of the promotion.
Request body
Example request
{
"sellerIds": [
"seller-id-1"
],
"operation": "OptIn"
}Response
Opt-in or opt-out executed successfully.
Changes
- info
endpoint added
- info