Endpoints
Attributes
string
required
Promo code ID, prefixed
promo_.object
required
number
required
Discount amount. Percentage discounts are represented as a decimal fraction.
boolean
required
Whether the promo code is restricted to churned customers.
string | null
required
Code entered at checkout.
string
required
When the promo code was created, as an ISO 8601 timestamp.
string
required
Currency used for a fixed-amount discount.Available options:
usd, sgd, inr, aud, brl, cad, dkk, eur, nok, gbp, sek, chf, hkd, huf, jpy, mxn, myr, pln, czk, nzd, aed, eth, ape, cop, ron, thb, bgn, idr, dop, php, try, krw, twd, vnd, pkr, clp, uyu, ars, zar, dzd, tnd, mad, kes, kwd, jod, all, xcd, amd, bsd, bhd, bob, bam, khr, crc, xof, egp, etb, gmd, ghs, gtq, gyd, ils, jmd, mop, mga, mur, mdl, mnt, nad, ngn, mkd, omr, pyg, pen, qar, rwf, sar, rsd, lkr, tzs, ttd, uzs, rub, btc, cny, usdt, kzt, awg, whop_usd, xaustring
required
How long the discount applies.Available options:
forever, once, repeatingboolean
required
Whether the promo code applies only to existing memberships.
string | null
required
When the promo code expires, as an ISO 8601 timestamp.
object
required
Custom key-value metadata stored on the promo code.
boolean
required
Whether the promo code is restricted to new customers.
boolean
required
Whether each customer may redeem the promo code only once.
object | null
required
integer | null
required
Billing intervals the discount applies to.
string
required
Whether the discount is percentage-based or a fixed amount.Available options:
percentage, flat_amountstring
required
Promo code lifecycle status.Available options:
active, inactive, archivedinteger
required
Maximum uses when stock is limited.
boolean
required
Whether the promo code has no redemption limit.
string
required
When the promo code was updated, as an ISO 8601 timestamp.
integer
required
Memberships that used the promo code.
PromoCode

