Delete invoice by ID
DELETE/invoices/{invoiceId}
Logically deletes an invoice (sets invoice status to deleted).
Audit event:
- invoice.delete
Privilege:
- finance-invoices.manage
Errors:
- INVOICE_NOTFOUND - Invoice not found
- INVOICE_ALREADY_DELETED - Invoice already deleted
- COLLECTION_MEMBER_CHANGE_IS_NOT_ALLOWED - Invoice is collection member. Changing collection member data is not allowed
- NETTING_STATEMENT_NOT_CANCELED_OR_DRAFT - Netting statemant not in 'canceled' or 'draft' mode. Can not delete invoice
- INVOICE_DELETE_NOT_ALLOWED - Only 'draft' invoice can be deleted
- NOT_AUTHORIZED - Not authorized - missing required privileges
- NOT_PLATFORM_OWNER - Not authorized - not platform owner
- NOT_AUTHENTICATED - Not authenticated
- INT_APP_ERROR - Unexpected internal error
Request
Responses
- 200
- 401
- 404
- 409
- 500
Invoice deleted successfully
Not Authorized - Missing required privileges, not authenticated, or not platform owner
Invoice not found
Conflict - delete not allowed due to invoice state
Internal Server Error