import Whop from '@whop/sdk';const client = new Whop({ apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted});const response = await client.invoices.void('inv_xxxxxxxxxxxxxx');console.log(response);
Copy
Ask AI
true
Invoices
Void invoice
Void an invoice
Required permissions:
invoice:update
POST
/
invoices
/
{id}
/
void
JavaScript
Copy
Ask AI
import Whop from '@whop/sdk';const client = new Whop({ apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted});const response = await client.invoices.void('inv_xxxxxxxxxxxxxx');console.log(response);