Skip to main content
DELETE
/
promo_codes
/
{id}
JavaScript
import Whop from '@whop/sdk';

const client = new Whop({
  appID: 'app_xxxxxxxxxxxxxx',
  apiKey: 'My API Key',
});

const promoCode = await client.promoCodes.delete('promo_xxxxxxxxxxxx');

console.log(promoCode);
true

Authorizations

Authorization
string
header
required

The app API key from an app from the /dashboard/developer page

Path Parameters

id
string
required
Example:

"promo_xxxxxxxxxxxx"

Response

A successful response

Represents true or false values.