Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /v0/discounts/list | List and filter discounts |
POST | /v0/discounts/create | Create a new discount |
GET | /v0/discounts/{discountId} | Retrieve a discount |
PATCH | /v0/discounts/{discountId}/update | Update a discount |
PATCH | /v0/discounts/{discountId}/archive | Archive a discount |
The Discount object
Object type identifier. Always
"discount" for Discount objects.Unique identifier (UUID) for this discount.
Discount type. Possible values:
code (coupon code), sale (automatic discount)Display name of the discount (e.g., “Summer Sale”, “10% Off”).
Discount amount. For
fixed: amount in currency units (e.g., 10.00 for $10). For percentage: percentage value (e.g., 15 for 15% off).How the amount is applied. Possible values:
fixed, percentageThe coupon code customers enter. Only set when
type is "code".Three-letter ISO 4217 currency code. Required for fixed-amount discounts.
Current discount status. Possible values:
active, inactiveUnix timestamp (milliseconds) when the discount becomes valid.
null means immediately valid.Unix timestamp (milliseconds) when the discount expires.
null means no expiration.Maximum number of times this discount can be used.
null means unlimited.Number of times this discount has been used. Defaults to
0.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