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, percentagestring | 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, inactiveinteger | 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.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
Related resources
Offers
Offers that discounts apply to
Payments
Payments with discounts applied
Products
Products discounted via offers
Orders
Orders with discounts