Skip to main content
A Discount object represents a price reduction that can be applied to customer purchases. Discounts can be either coupon codes that customers enter at checkout, or automatic sales that apply based on configured rules. Discounts support both fixed amounts and percentage-based reductions, with optional validity periods and usage limits. You can target discounts to specific Offers or apply them store-wide. Applied discounts are visible on Payment objects.

Endpoints

The Discount object

string
Object type identifier. Always "discount" for Discount objects.
string
required
Unique identifier (UUID) for this discount.
string
required
Discount type. Possible values: code (coupon code), sale (automatic discount)
string | null
Display name of the discount (e.g., “Summer Sale”, “10% Off”).
number
required
Discount amount. For fixed: amount in currency units (e.g., 10.00 for $10). For percentage: percentage value (e.g., 15 for 15% off).
string
required
How the amount is applied. Possible values: fixed, percentage
string | null
The coupon code customers enter. Only set when type is "code".
string
required
Three-letter ISO 4217 currency code. Required for fixed-amount discounts.
string
required
Current discount status. Possible values: active, inactive
integer | null
Unix timestamp (milliseconds) when the discount becomes valid. null means immediately valid.
integer | null
Unix timestamp (milliseconds) when the discount expires. null means no expiration.
integer | null
Maximum number of times this discount can be used. null means unlimited.
integer
Number of times this discount has been used. Defaults to 0.
boolean
Whether this discount applies to all Offers. Defaults to false.
array
Array of Offer IDs that are excluded from this discount when includesAllOffers is true.

Discount types

Coupon codes

Coupon codes require customers to enter a code at checkout. They’re ideal for:
  • Marketing campaigns
  • Influencer partnerships
  • Customer retention offers
  • Limited-time promotions

Automatic sales

Sales apply automatically without customer action. They’re ideal for:
  • Site-wide promotions
  • Product launches
  • Holiday sales
  • Flash sales

Example response


Offers

Offers that discounts apply to

Payments

Payments with discounts applied

Products

Products discounted via offers

Orders

Orders with discounts