Skip to main content
A Promo Code is a discount a buyer enters at checkout, either a percentage or a fixed amount off. It belongs to an account, can be limited to one product, and controls who can redeem it, how many times, until when, and for how many billing periods the discount lasts. Use the Promo Codes API to create codes for an account, list and retrieve them, deactivate a code to pause redemptions or activate it again, and archive codes you no longer offer.

Endpoints

Attributes

string
required
Promo code ID, prefixed promo_.
object
required
Account that owns the promo code.

Properties

string
required
Account ID, prefixed biz_.
string
required
Account display name.
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, xau
string
required
How long the discount applies.Available options: forever, once, repeating
boolean
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
Product the promo code is restricted to, or null when it is not product-scoped.

Properties

string
required
Product ID, prefixed prod_.
string
required
Product display name.
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_amount
string
required
Promo code lifecycle status.Available options: active, inactive, archived
integer
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