Retrieve Promo Code
Changed onRetrieves a promo code by ID.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Path parameters
Promo code ID (promo_ tag).
Headers
Pins the request to a dated API version.
Response
promo code retrieved
Account that owns the promo code.
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
{
"account": {
"id": "biz_xxxxxxxxxxxxxx",
"title": "Shine Time Auto Detailing"
},
"affiliate": {
"id": "aff_xxxxxxxxxxxxxx",
"user": {
"id": "user_xxxxxxxxxxxxxx",
"name": "Dana Whitfield",
"profile_pic": "https://ui-avatars.com/api/",
"username": "danawhitfield"
}
},
"amount_off": 0.1,
"code": "welcome",
"created_at": "2026-01-01T12:00:00.000Z",
"currency": "usd",
"duration": "repeating",
"expires_at": "2026-01-01T12:00:00.000Z",
"id": "promo_xxxxxxxxxxxxxx",
"metadata": {},
"new_users_only": true,
"one_per_customer": true,
"product": {
"id": "prod_xxxxxxxxxxxxxx",
"title": "Ceramic Coating Masterclass"
},
"promo_duration_months": 1,
"promo_type": "percentage",
"status": "active",
"stock": 25,
"updated_at": "2026-01-01T12:00:00.000Z",
"uses": 1
}Changes
- warning
added the new
hnlenum value to thecurrencyresponse property for the response status
- warning
- info
added the required property
affiliateto the response with the status
- info