import CheckoutIntents from 'checkout-intents';
const client = new CheckoutIntents({
apiKey: process.env['CHECKOUT_INTENTS_API_KEY'], // This is the default and can be omitted
});
await client.billing.cancelTopupInvoice('invoiceId');
{
"message": "<string>"
}
Billing
Cancel top-up invoice
Cancel/void an unpaid top-up invoice.
Only invoices in open state can be cancelled.
DELETE
/
api
/
v1
/
billing
/
drawdown
/
topup
/
{invoiceId}
JavaScript
import CheckoutIntents from 'checkout-intents';
const client = new CheckoutIntents({
apiKey: process.env['CHECKOUT_INTENTS_API_KEY'], // This is the default and can be omitted
});
await client.billing.cancelTopupInvoice('invoiceId');