Backend API

Fields
idobjectId

Unique identifier for the promotion.

namestringrequired

A short descriptive name of the promo.

activeboolean

Indicates the promo is currently active. Note: this is not affected by date_start and date_end.

currencystring

Three-letter ISO currency code in uppercase. Defaults to the store's base currency.

date_createddateauto

Date and time the promotion was created.

date_enddate

Date the promo ends and is no longer available. When defined, the promo will not be applied after this date.

date_startdate

Date the promo is first available. When defined, the promo will not be valid until after this date and before date_end.

date_updateddateauto

Date and time the promotion was last updated.

descriptionstring

A brief description of the promo, as it may be displayed to customers.

discount_groupstring

ID of the discount group the promo belongs to, if applicable, as defined in discount settings. Used to ensure only one set of discount rules can apply across a number of coupons and promotions.

discountsarray of object

List of discount rules to apply.

exclusionsarray of object

List of exclusions considered when the promo is applied.

limit_account_groupsarray of account_groups

List of customer account for which the promo will apply.

limit_account_usesint

Maximum number of times the promo will be applied by each customer account.

limit_usesint

Maximum number of times the promo will be applied across all customers.

ordersOrder

Expandable list of orders that have applied the promo.

subscriptionsSubscription

Expandable list of subscriptions that have applied the promo.

use_countintauto

Number of times the promo has been applied.

usesarray of Uses

Expandable list of promotion use records.

The promotion model
{
  "id": "60f199509111e7000000006b",
  "name": "15% Off Store Wide Sale",
  "active": true,
  "currency": "USD",
  "date_created": "2021-07-16T14:36:00.386Z",
  "date_end": "2018-03-01T00:00:00.000Z",
  "date_start": "2018-11-01T00:00:00.000Z",
  "date_updated": "2021-07-16T14:36:00.386Z",
  "description": "Save 15% store wide for a limited time only.",
  "discounts": [
    {
      "type": "total",
      "value_type": "percent",
      "value_fixed": 15
    }
  ],
  "limit_account_uses": 3,
  "limit_uses": 300,
  "use_count": 142
}