Delete Promo Code
Changed onArchives a promo code so it cannot be used in future checkouts.
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 deleted
Example response
{
"deleted": true,
"id": "promo_xxxxxxxxxxxxxx"
}Changes
- breaking
the response's body type changed from
booleantoobjectfor status - warning
deleted the
pathrequest parameterid - 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 the non-success 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