Retrieve Promo Code
Changed onRetrieves a promo code by ID.
Request
- Base URL: https://api.whop.com/api/v1
- URL: https://api.whop.com/api/v1/promo_codes/{id}
- Auth: HTTP bearer
Response
promo code retrieved
Example response
{
"account": {
"id": "biz_xxxxxxxxxxxxxx",
"title": "Shine Time Auto Detailing"
},
"amount_off": 0.25,
"code": "affiliate25",
"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 Package"
},
"promo_duration_months": 3,
"promo_type": "percentage",
"status": "active",
"stock": 200,
"updated_at": "2026-01-01T12:00:00.000Z"
}Changes
- info
added the optional property
/to the response with the status
- info
- breaking
added
subschema #2to theresponse propertyoneOflist for the response status - breaking
the
response's property format changed fromdate-timeto no format for status - breaking
the
response's property type changed from no type tostringfor status - breaking
the
response's property format changed fromdate-timeto no format for status - breaking
the
response's property type changed fromobjectnullto no type for status - breaking
removed the required property
from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - warning
deleted the
pathrequest parameterid - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
added the new
foreverenum value to theresponse property for the response status - warning
added the new
onceenum value to theresponse property for the response status - warning
added the new
repeatingenum value to theresponse property for the response status - info
the security scope
access_pass:basic:readwas removed from the endpoint's security schemebearerAuth - info
api tag
Promo Codesadded - info
api tag
Promo codesremoved - info
added the new optional
headerrequest parameterApi-Version-Dateto all path's operations - info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
removed
subschema #2from theresponse propertyoneOflist for the response status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking