Delete invoice
The Delete invoice endpoint allows you to delete a specified invoice from an accounting software.
Invoices are itemized records of goods sold or services provided to a customer.
Process
-
Pass the {invoiceId} to the Delete invoice endpoint and store the pushOperationKey returned.
-
Check the status of the delete operation by checking the status of push operation either via
- Push operation webhook (advised),
- Push operation status endpoint.
A Success status indicates that the invoice object was deleted from the accounting software.
-
(Optional) Check that the invoice was deleted from the accounting software.
Effect on related objects
Be aware that deleting an invoice from an accounting software might cause related objects to be modified. For example, if you delete a paid invoice from QuickBooks Online, the invoice is deleted but the payment against that invoice is not. The payment is converted to a payment on account.
Integration specifics
Integrations that support soft delete do not permanently delete the object in the accounting software.
| Integration | Soft Deleted |
|---|---|
| QuickBooks Online | Yes |
Supported Integrations
This functionality is currently only supported for our QuickBooks Online integration. Check out our public roadmap to see what we're building next, and to submit ideas for new features. We're increasing support for object deletion across various accounting software and data types. You can check our Accounting API Public Product Roadmap for the latest status.
Path parameters
Unique identifier for an invoice.
Unique identifier for your SMB in Codat.
Unique identifier for a company.
Unique identifier for a company's data connection.
Unique identifier for a connection.
Response
OK