Billing · Invoices
Delete invoice
Moves an invoice to the trash: it drops out of List invoices and comes back with Restore invoice. Payments on the invoice are kept.
Authorization
HeaderSend Authorization: Bearer <accessToken>, the token from Create token.
Path parameters
id string Required
The id of the invoice to delete.Errors
- 400 when the invoice is paid, has a payment (refunded ones included) or has a bank payment still clearing. The message ends “…, so it can’t be deleted.” Such an invoice is the record of that money, so it stays.
- 404 when the invoice isn’t yours.