v9
OpenAPI 3.1.02026-08-043703845.2 MBCreate Promo Code
Creates a promo code for an account. First-party sessions may attach an affiliate.
Headers
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Response
promo code created
Discount amount. Percentage discounts are represented as a decimal fraction.
Whether the promo code is restricted to churned customers.
Code entered at checkout.
When the promo code was created, as an ISO 8601 timestamp.
Currency used for a fixed-amount discount.
How long the discount applies.
Whether the promo code applies only to existing memberships.
When the promo code expires, as an ISO 8601 timestamp.
Promo code ID, prefixed promo_.
Custom key-value metadata stored on the promo code.
Whether the promo code is restricted to new customers.
Whether each customer may redeem the promo code only once.
Billing intervals the discount applies to.
Whether the discount is percentage-based or a fixed amount.
Promo code lifecycle status.
Maximum uses when stock is limited.
Whether the promo code has no redemption limit.
When the promo code was updated, as an ISO 8601 timestamp.
Memberships that used the promo code.
Example response
{
"currency": "usd",
"duration": "forever",
"promo_type": "percentage",
"status": "active"
}