Search.../

deleteInvoice( )

Deletes an invoice by ID.

Description

The deleteInvoice() function returns a Promise that resolves when the invoice with the specified ID is deleted.

Syntax

function deleteInvoice(id: string): Promise<void>

deleteInvoice Parameters

NAME
TYPE
DESCRIPTION
id
string

ID of the invoice to delete.

Returns

Fulfilled - When the specified invoice is deleted.

Return Type:

Promise<void>

Was this helpful?

Delete invoice by ID

Copy Code
1import {invoices} from 'wix-billing-backend';
2
3export function deleteInvoice(id) {
4 return invoices.deleteInvoice(id);
5}