Skip to main content
DELETE
/
v1
/
invoices
/
{invoiceId}
Delete invoice
curl --request DELETE \
  --url https://api.infinity.swiss/v1/invoices/{invoiceId} \
  --header 'x-api-token: <api-key>'
{
  "code": "general/unauthorised"
}
Deleting a posted invoice also removes its accounting transactions. Once the invoice’s fiscal year is closed, the invoice can no longer be deleted; use annulment instead to reverse it.

Authorizations

x-api-token
string
header
required

API token for authentication. Obtain from your Infinity account settings.

Path Parameters

invoiceId
string
required

The id of the specific invoice.

Response

The invoice was deleted successfully.