Disable Promotion
Promotions is enabled per organization
This endpoint works only after WHITELABEL enables Promotions for your organization. Ask your Technical Account Manager or Key Account Manager. See Promotions.
Disabling is final
A disabled promotion can’t be enabled again, and there’s no delete endpoint. To run the offer again, create a new promotion.
What disabling does and doesn’t do:
- It stops new quotes from that moment.
- A quote issued before you disabled the promotion is still honoured until it expires. The customer already saw that price.
- Payments already charged, their discount line and their
discount_amount, don’t change.
The body accepts status only. Any other field returns 400 INVALID_REQUEST.
/promotions/{promotion_id}The only change a promotion accepts. Disabling stops new quotes; it is final. Promotions must be enabled for your organization by WHITELABEL before you can use this endpoint. See Promotions.
Header Parameters
A unique key (UUID) for the request. Sending the same key again within 24 hours returns the original response and stores nothing new.
Path Parameters
The unique identifier of the promotion.
Body application/json
DISABLED is the only accepted value. Any other field in the body returns 400.
Response
200
The unique identifier of the promotion (UUID).
The account the promotion belongs to (UUID, found in your WHITELABEL Dashboard). One promotion applies to one account. If you run the same campaign on several accounts, create it once per account.
The promotion name (MAX 255; MIN 3). The checkout uses it when it announces the discount.
Shown with the name on the quote. Optional, up to 1000 characters.
The window in which the promotion runs. UTC.
How the promotion is redeemed. code is required when mode is CODE.
What the customer saves. For FIXED, when the promotion also has an amounts condition, discount.amounts and conditions.amounts.values must list the same currencies or the request returns 400.
Conditions a payment must meet. AND across keys, OR inside each key’s values list. Omit a key or send null for no condition on that dimension; an empty values list returns 400.
Computed from schedule when you read the promotion. DISABLED is final.
When you disabled the promotion (ISO 8601, UTC). null while not disabled.
400
404