The Promotion Object

Promotions is enabled per organization

Promotions works only after WHITELABEL enables it for your organization. Ask your Technical Account Manager or Key Account Manager. See Promotions.

Attributes

A promotion is a discount with a date window and a set of conditions. It can’t be edited after you create it: the only change is to disable it.

idstring

The unique identifier of the promotion (UUID). Assigned by WHITELABEL.

Example: b7c1a4f2-6e0d-4a3b-9c55-1f2e7d8a0b31

account_idstring

The account the promotion applies to (UUID). One promotion belongs to one account. If you run the same campaign on several accounts, create it once per account.

Example: 493e9374-510a-4201-9e09-de669d75f256

namestring

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

Example: 10% off with credit cards - Mother’s Day

descriptionstring

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

scheduleobject

The window in which the promotion runs. Always UTC.

Hide properties
starts_attimestamp

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

Example: 2026-10-01T03:00:00Z

ends_attimestamp

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

Example: 2026-11-01T02:59:59Z

redemptionobject

How the promotion is redeemed.

Hide properties
modeenum

Possible values:

  • AUTOMATIC = Applies by itself to every payment that meets the conditions. The customer types nothing.
  • CODE = Applies only when the payment’s quote carries the promotion code. The customer types it at checkout, or your server sends it on the quote. Not available yet: today every promotion is AUTOMATIC; codes are coming in a later release.
codestring

Required when mode is CODE, null otherwise. 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.

Hide properties
typeenum

Possible values:

  • PERCENTAGE = A percentage of the payment amount, set in value.
  • FIXED = A fixed amount per currency, set in amounts.
valuenumber

PERCENTAGE only. Greater than 0 and up to 100, with up to two decimals. More decimals return 400. null for a fixed discount.

Example: 10.5

amountsArray of objects

FIXED only: one { currency, value } per currency (ISO 4217), each above zero. Required for fixed discounts. null for a percentage discount. A fixed promotion applies only to payments in the currencies it lists, and the discount is capped at the payment amount. When the promotion also has an amounts condition, discount.amounts and conditions.amounts.values must list the same currencies, or create returns 400.

Example: [{ "currency": "USD", "value": 30.00 }]

conditionsobject

The 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. An empty conditions object ({}) applies to every payment of the account.

Hide properties
binsobject

Card BIN condition. A card matches when its BIN equals a prefix in values or falls in a ranges entry. When bins is present, at least one of values or ranges must be non-empty.

Hide properties
valuesArray of strings

BIN prefixes (6 to 8 digits each).

rangesArray of objects

Inclusive BIN ranges. Each entry has start and end (8 digits).

payment_methodsobject
Hide properties
valuesArray of strings

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

card_typesobject
Hide properties
valuesArray of strings

CREDIT or DEBIT. A card whose type is unknown never meets this condition.

countriesobject
Hide properties
valuesArray of strings

Payment countries (ISO 3166-1).

amountsobject
Hide properties
valuesArray of objects

Amount bounds per currency: currency, min, and max (both inclusive; null means no bound on that side). An entry with both min and max null filters by currency only.

statusenum

Computed from schedule at the moment you read the promotion.

Possible values:

  • SCHEDULED = starts_at is in the future.
  • ACTIVE = Running now. Payments that meet the conditions get a quote.
  • EXPIRED = ends_at has passed.
  • DISABLED = You disabled it. Final.
created_attimestamp

When the promotion was created (ISO 8601, UTC). When two promotions save the same amount, the oldest one applies.

disabled_attimestamp

When you disabled the promotion (ISO 8601, UTC). null while the promotion is not disabled. The only field that changes after creation.

How a promotion is chosen

One payment gets one promotion. When two or more match, WHITELABEL applies the one with the biggest saving for the customer, then the oldest, then the smallest id. A fixed discount is capped at the payment amount, and a charge of zero is valid. A promotion whose discount is zero doesn’t apply.

Example

{
  "id": "b7c1a4f2-6e0d-4a3b-9c55-1f2e7d8a0b31",
  "account_id": "493e9374-510a-4201-9e09-de669d75f256",
  "name": "10% off with credit cards - Mother's Day",
  "description": "Card deal, claimed monthly.",
  "schedule": { "starts_at": "2026-10-01T03:00:00Z", "ends_at": "2026-11-01T02:59:59Z" },
  "redemption": { "mode": "AUTOMATIC", "code": null },
  "discount": { "type": "PERCENTAGE", "value": 10 },
  "conditions": {
    "bins": {
      "values": ["457896", "40263412"],
      "ranges": [{ "start": "45780000", "end": "45789999" }]
    },
    "payment_methods": { "values": ["CARD"] },
    "card_types": { "values": ["CREDIT"] },
    "countries": { "values": ["AR"] },
    "amounts": { "values": [{ "currency": "USD", "min": 100.00, "max": 5000.00 }] }
  },
  "status": "SCHEDULED",
  "created_at": "2026-09-14T12:04:18Z",
  "disabled_at": null
}

Example with a code

{
  "id": "f3a2b1c0-8d9e-4f5a-b6c7-2e1d0f9a8b7c",
  "account_id": "493e9374-510a-4201-9e09-de669d75f256",
  "name": "Welcome 10% off",
  "description": "For new customers.",
  "schedule": { "starts_at": "2026-10-01T00:00:00Z", "ends_at": null },
  "redemption": { "mode": "CODE", "code": "WELCOME10" },
  "discount": { "type": "PERCENTAGE", "value": 10 },
  "conditions": {},
  "status": "ACTIVE",
  "created_at": "2026-09-20T09:00:00Z",
  "disabled_at": null
}