Authorizations
The app API key from an app from the /dashboard/developer page
Body
Parameters for CreatePromoCode
The amount off (% or flat amount) for the promo.
6.9
The monetary currency of the promo code.
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 The specific code used to apply the promo at checkout.
The id of the company to create the promo code for.
"biz_xxxxxxxxxxxxxx"
Restricts promo use to only users who have never purchased from the company before.
The number of months this promo code is applied and valid for.
42
The type (% or flat amount) of the promo.
percentage, flat_amount Restricts promo use to only users who have churned from the company before.
Whether this promo code is for existing memberships only (cancelations)
The date/time of when the promo expires.
"2023-12-01T05:00:00.401Z"
Restricts promo use to only be applied once per customer.
The IDs of the plans that the promo code applies to. If product_id is provided, it will only apply to plans attached to that product
Represents a unique identifier that is Base64 obfuscated. It is often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "VXNlci0xMA==") or integer (such as 4) input value will be accepted as an ID.
The product to lock the promo code to, if any. If provided will filter out any plan ids not attached to this product
"prod_xxxxxxxxxxxxx"
The quantity limit on the number of uses.
42
Whether or not the promo code should have unlimited stock.
Response
A successful response
An object representing a promo code for a plan.
The ID of the promo.
"promo_xxxxxxxxxxxx"
The amount off (% or flat amount) for the promo.
6.9
The monetary currency of the promo code.
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 Restricts promo use to only users who have churned from the company before.
The specific code used to apply the promo at checkout.
The timestamp of when the promo was created.
"2023-12-01T05:00:00.401Z"
Restricts promo use to only be applied to already purchased memberships.
The duration of the promo. The duration setting for the promo code
forever, once, repeating The date/time of when the promo expires.
"2023-12-01T05:00:00.401Z"
Restricts promo use to only users who have never purchased from the company before.
The number of months the promo is applied for.
42
Restricts promo use to only be applied once per customer.
The access pass associated with the promo code.
The type (% or flat amount) of the promo.
percentage, flat_amount Indicates if the promo code is live or disabled.
active, inactive, archived The quantity limit on the number of uses.
42
Whether or not the promo code has unlimited stock.
The amount of times the promo codes has been used.
42
The company for the promo code.

