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 { Permissions, webMethod } from 'wix-web-module';2import { invoices } from 'wix-billing-backend';34export const deleteInvoice = webMethod(Permissions.Anyone, (id) => {5 return invoices.deleteInvoice(id);6});