What this call does

Permanently deletes one business document, an order, delivery note, invoice or credit note, together with everything hanging off it.

Last updated: 15.05.2026

Careful, this cannot be undone. The document's stored files, its line items and its links to and from other documents all go with it. There is no recycle bin. Try it in the staging system first.

What you need first

  • A valid API key in the API-Key header, and your companyAccountId.
  • The documentId from Search business documents. Never delete an ID you guessed.

Parameters

Parameter

Required

Default

Meaning

documentId

Yes

none

In the path after /documents/. The CATHAGO ID of the document.

companyAccountId

Yes

none

Your company ID, in the address line.

The document is found by its ID alone. A valid ID is deleted even when it belongs to a different company account than the one you sent, as long as your key covers both.

The fields

This call has no data packet. Do not send one.

What you get back

204 No Content, an empty answer with no text at all. If you see nothing, it worked. To be sure, call Search business documents with the same ID in ids: totalElements: 0 means it is gone.

Common mistakes

What you see

Why

What to do

404 Not Found

The document does not exist, or does not exist any more

This is also what a second delete of the same ID returns. Treat it as "already gone".

401 Unauthorized

Key missing, wrong, or not entitled to that companyAccountId

Check the key and the company.

The line items are gone too

The delete takes everything on the document with it

Expected. There is no way to keep them.

The attached files are gone from storage

Attachments are deleted, not only unlinked

Download what you need with Download the file of a business document first.

Adresse

HTTP
DELETE https://api.cathago.de/v3/api/gateways/integration/documents/:documentId?companyAccountId=<companyAccountId>

Beispielaufruf

Terminal
curl -X DELETE 'https://api.cathago.de/v3/api/gateways/integration/documents/:documentId?companyAccountId=<companyAccountId>' \
  -H 'API-Key: <Ihr API-Schlüssel>'