Credit coupons users can redeem.
List coupons
Coupons, newest first.
query Parameters
qSubstring of the code or description (case-insensitive).
limitPage size (clamped to 1-200).
offsetRows to skip.
List coupons › Responses
A page of coupons.
totalCreate a coupon
Creates an active coupon. Codes are upper-cased; an empty or omitted code generates a random 10-character one. Each user can redeem a coupon once.
Create a coupon › Request Body
credit_nanoCredit granted per redemption, in nano-USD (1 USD = 1_000_000_000); at most $10,000.
code^[A-Za-z0-9_-]{4,32}…4-32 letters, digits, - or _. Empty generates one.
max_redemptionsTotal redemptions allowed; null for unlimited.
expires_atMust be in the future; null never expires.
descriptionCreate a coupon › Responses
The new coupon.
idcodecredit_nanoCredit per redemption, nano-USD (1 USD = 1_000_000_000).
max_redemptionsnull = unlimited.
redeemed_countexpires_atis_activedescriptioncreated_by_emailcreated_atUpdate a coupon
Replaces the coupon's editable fields (the code can't change). max_redemptions and expires_at
are always written, so omitting them clears them (unlimited / never expires). An active coupon's
expiry must be in the future. Set is_active: false to turn a coupon off.
path Parameters
idCoupon id.
Update a coupon › Request Body
credit_nanoCredit per redemption in nano-USD.
is_activemax_redemptionsexpires_atdescriptionUpdate a coupon › Responses
The updated coupon.
idcodecredit_nanoCredit per redemption, nano-USD (1 USD = 1_000_000_000).
max_redemptionsnull = unlimited.
redeemed_countexpires_atis_activedescriptioncreated_by_emailcreated_atList a coupon's redemptions
Who redeemed the coupon, newest first. An unknown coupon id returns an empty list.
path Parameters
idCoupon id.
query Parameters
limitPage size (clamped to 1-200).
offsetRows to skip.
List a coupon's redemptions › Responses
A page of redemptions.
total