Delete an e-reporting transaction
DELETE/api/v1/e_reportings/transactions/:id
Delete a transaction by ID. This also deletes all associated tax_subtotals.
Request
Responses
- 204
- 401
- 404
- 422
The e-reporting transaction, and all of its associated tax subtotals, were permanently deleted.
The request did not include a valid OAuth 2.0 bearer token.
No e-reporting transaction exists with this ID, or it belongs to a workspace the authenticated OAuth client cannot access.
The e-reporting transaction was not deleted. code is operation_failed and message says why - typically because its declaration has been deposited at the PPF (300) and is therefore immutable, or because it takes part in an instalment reprise: it carries the negative that took a down payment back out of the B2C transaction data or the compensation that re-added it, a down payment counted in it was taken back that way, or it counts the final invoice whose reprise took its down payments back - or because the platform counted invoices into it itself, which keeps it on record. A transaction written only through this API or a CSV import stays deletable. Unlike a validation failure this body carries no details.