Skip to main content
POST
/
invoices
/
{id}
/
void
JavaScript
import Whop from '@whop/sdk';

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

const response = await client.invoices.void('inv_xxxxxxxxxxxxxx');

console.log(response);
true

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required
Example:

"inv_xxxxxxxxxxxxxx"

Response

A successful response

Represents true or false values.

I