JavaScript
import Whop from '@whop/sdk'; const client = new Whop({ apiKey: 'My API Key', }); const response = await client.invoices.void('inv_xxxxxxxxxxxxxx'); console.log(response);
true
Void an invoice
Required permissions:
invoice:update
The app API key from an app from the /dashboard/developer page
The ID of the invoice to void
"inv_xxxxxxxxxxxxxx"
A successful response
Represents true or false values.
false
Was this page helpful?