Understanding Coupons
Coupons define the structure and rules for discounts in your affiliate program. They specify:- Discount type (percentage or flat amount)
- Discount value (e.g., 20% off or $10 off)
- Duration (one-time, forever, or repeating for X months)
- Restrictions (product limits, expiration dates, max redemptions)
Coupons vs Promotional Codes
- Coupon: The discount definition (e.g., “20% off for 3 months”)
- Promotional Code: The actual code string (e.g., “JOHN20”, “SAVE20”) that customers use
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
The ID of the coupon to retrieve
The external ID of the coupon (e.g., Stripe coupon ID)
The name of the coupon to retrieve
Response
A list of coupons or a single coupon
- object
- object[]
The coupon ID
Name of the coupon
External ID (e.g., Stripe coupon ID)
Type of discount - percentage or flat amount
PERCENTAGE
, FLAT
Percentage off (1-100) for percentage coupons
Amount off for flat coupons
Currency for flat amount coupons (e.g., USD, EUR)
How long the discount applies
once
, forever
, repeating
Number of months for repeating duration
Maximum number of times this coupon can be redeemed
Whether coupon is limited to specific products
Array of product IDs this coupon applies to
Whether the coupon is currently valid
Date by which the coupon must be redeemed
Integration type (e.g., stripe, custom)
The affiliate program ID
Timestamp when the coupon was created
Timestamp when the coupon was last updated
Promotional codes associated with this coupon