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.

PATCH/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

X-Idempotency-Keystringrequired

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

promotion_idstringrequired

The unique identifier of the promotion.

Body application/json

status"DISABLED"required

DISABLED is the only accepted value. Any other field in the body returns 400.

Response

200

idstring

The unique identifier of the promotion (UUID).

account_idstring

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.

namestring

The promotion name (MAX 255; MIN 3). The checkout uses it when it announces the discount.

descriptionstring

Shown with the name on the quote. Optional, up to 1000 characters.

scheduleobject

The window in which the promotion runs. UTC.

Show schedule properties
starts_atstring<date-time>

When the promotion starts (ISO 8601, UTC). Now or in the future.

ends_atstring,null<date-time>

When the promotion ends (ISO 8601, UTC). null means no end date.

redemptionobject

How the promotion is redeemed. code is required when mode is CODE.

Show redemption properties
mode"AUTOMATIC" | "CODE"

AUTOMATIC = applies by itself to every payment that meets the conditions. CODE = applies only when the payment’s quote carries the promotion code. Not available yet: today every promotion is AUTOMATIC; codes are coming in a later release.

codestringnull

CODE only; null for an automatic promotion. 3 to 32 characters: A-Z, 0-9, _ and -. Unique per account among the promotions that can still apply; reusable once the earlier promotion with that code is disabled or its schedule has ended.

discountobject

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.

Show discount properties
type"PERCENTAGE" | "FIXED"
valuenumbernull

PERCENTAGE only. Greater than 0 and up to 100, with up to two decimals (for example 10.5). null for a fixed discount.

amountsarraynull

FIXED only. One entry per currency, each above zero. A fixed promotion applies only to payments in the currencies it lists, and the discount is capped at the payment amount. null for a percentage discount.

conditionsobject

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.

Show conditions properties
binsobject

Card BIN condition. A card matches when its BIN equals a prefix in values or falls in a ranges entry. At least one of values or ranges when bins is present.

Show bins properties
valuesstring[]

BIN prefixes (6 to 8 digits each).

rangesobject[]

Inclusive BIN ranges (8-digit bounds).

Show ranges properties
startstring

First BIN of the range (8 digits).

endstring

Last BIN of the range (8 digits), inclusive.

payment_methodsobject
Show payment_methods properties
valuesstring[]

Payment method types, for example CARD. See Payment type list.

card_typesobject
Show card_types properties
values"CREDIT" | "DEBIT"[]

Card types. A card whose type is unknown never meets this condition.

countriesobject
Show countries properties
valuesstring[]

Payment countries (ISO 3166-1).

amountsobject
Show amounts properties
valuesobject[]

Amount bounds per currency (min and max inclusive).

Show values properties
currencystring

MAX 3; MIN 3; ISO 4217.

minnumber,null<float>

Inclusive minimum in this currency. null with max also null filters by currency only.

maxnumber,null<float>

Inclusive maximum in this currency. null means no ceiling.

status"SCHEDULED" | "ACTIVE" | "EXPIRED" | "DISABLED"

Computed from schedule when you read the promotion. DISABLED is final.

created_atstring<date-time>
disabled_atstring,null<date-time>

When you disabled the promotion (ISO 8601, UTC). null while not disabled.

400

codestring
messagesstring[]

404

codestring
messagesstring[]