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.markPaid('inv_xxxxxxxxxxxxxx');
console.log(response);trueMark an open invoice as paid when payment was collected outside of Whop.
Required permissions:
invoice:updateimport 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.markPaid('inv_xxxxxxxxxxxxxx');
console.log(response);trueA company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
The unique identifier of the invoice to mark as paid.
"inv_xxxxxxxxxxxxxx"
A successful response
Represents true or false values.
Was this page helpful?