Invoices

Delete an invoice

Delete an invoice. Draft invoices are permanently deleted (204). Non-draft invoices are soft-deleted (cancelled) to preserve VeriFactu SHA-256 hash chain integrity (RD 1007/2023 compliance), returning 200 with the cancelled document body.

delete/v1/invoices/{invoiceId}

Request

  • Base URL: https://api.frihet.io
  • URL: https://api.frihet.io/v1/invoices/{invoiceId}
  • Auth: API key in header X-API-Key

Path parameters

invoiceIdstring required

Invoice unique identifier

Response

Invoice soft-deleted (cancelled). Returned for non-draft invoices.

Example response

{
  "data": {
    "status": "cancelled",
    "cancelledVia": "api"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.