JavaScript
import Whop from '@whop/sdk'; const client = new Whop({ apiKey: 'My API Key', }); const promoCode = await client.promoCodes.delete('promo_xxxxxxxxxxxx'); console.log(promoCode);
true
Archive a promo code, preventing further use
Required permissions:
promo_code:delete
The app API key from an app from the /dashboard/developer page
The internal ID of the promo code to archive.
"promo_xxxxxxxxxxxx"
A successful response
Represents true or false values.
false
Was this page helpful?