What this call does

Attaches supporting documents to an agreement, drawings, specifications, correspondence. As many as you like, unlike the agreement's own file.

Last updated: 29.09.2026

Parameters

Parameter

Required

Default

Meaning

companyAccountId

Yes

none

Your company ID

type

Yes

none

CALL_OFF

CO-2026072914001 (in the path)

Yes

none

The agreement

The fields

You send a list of attachments, even when there is only one.

Field

Type

Required

Meaning

documentId

text

one of three

A file already stored in CATHAGO

documentUrl

text

one of three

A web address CATHAGO fetches the file from

fileInBytes

text (Base64)

one of three

The file itself, Base64-encoded

documentName

text

No

The file name to show

documentFormat

choice

No

PDF, DOC, DOCX, JPEG, JPG, PNG, CSV, XLSX, XLS, XML, JSON, DAT, WDA

attachmentType

text

No

Your own label for what kind of document it is

externalId

text

No

Your own id for it, echoed back

Supply the file exactly one of the three ways. This is the same shape as the contract attachments in the Contracts section, on purpose, one way of attaching a file across the whole interface.
fileInBytes is Base64 inside JSON, so the payload is about a third larger than the file. documentUrl is the better choice for anything big.

They are stored one at a time, in the order you sent them

Each one is appended to the agreement before the next is started. The order in the answer is the order you sent.

What you get back

200 OK with one entry per attachment: id, externalId, documentId, fileName, url, attachmentType, createdAt and lastModifiedAt.

Common mistakes

What you see

Why

What to do

401 Unauthorized, empty body

Key missing, wrong, or not valid for this companyAccountId

A staging key does not work in production.

404noneCALL_OFF_1001, and the file is stored anyway

The file is stored before the agreement id is checked

Delete the stray file through your CATHAGO contact, then retry with the right id.

The file came back empty

fileInBytes is not valid Base64, or documentUrl could not be fetched

Check the encoding, or that the URL is reachable from the internet.

It replaced the agreement's own file

It did not, the two are separate

"Upload the agreement file" writes the one document; this writes the many.

What we could not confirm

Whether sending two of documentId, documentUrl and fileInBytes together is refused or whether one silently wins. Send exactly one.

Adresse

HTTP
POST https://api.cathago.de/v3/api/gateways/integration/master-articles/pricelists/CO-2026072914001/attachments?companyAccountId=<companyAccountId>&type=CALL_OFF

Beispielaufruf

Terminal
curl -X POST 'https://api.cathago.de/v3/api/gateways/integration/master-articles/pricelists/CO-2026072914001/attachments?companyAccountId=<companyAccountId>&type=CALL_OFF' \
  -H 'API-Key: <Ihr API-Schlüssel>' \
  -H 'Content-Type: application/json' \
  -d '[
  {
    "documentUrl": "https://cdn.example.de/abruf/bewehrungsplan-2026.pdf",
    "documentName": "Bewehrungsplan 2026.pdf",
    "documentFormat": "PDF",
    "attachmentType": "Zeichnung",
    "externalId": "ERP-DOC-99341"
  },
  {
    "documentId": "D-2026072914055",
    "documentName": "Preisblatt Stahl Q3.xlsx",
    "documentFormat": "XLSX",
    "attachmentType": "Preisblatt"
  }
]'

Beispiel für den Body

JSON
[
    {
        "documentUrl": "https://cdn.example.de/abruf/bewehrungsplan-2026.pdf", // One of three ways. Cathago fetches it
        "documentName": "Bewehrungsplan 2026.pdf",  // Optional. The file name to show
        "documentFormat": "PDF",                    // Optional. PDF, DOC, DOCX, JPEG, JPG, PNG, CSV, XLSX, XLS, XML, JSON, DAT, WDA
        "attachmentType": "Zeichnung",              // Optional. Your own label
        "externalId": "ERP-DOC-99341"               // Optional. Your own id, echoed back
    },
    {                                               // Second attachment, supplied as an already stored file
        "documentId": "D-2026072914055",            // One of three ways. A file already in Cathago
        "documentName": "Preisblatt Stahl Q3.xlsx",
        "documentFormat": "XLSX",
        "attachmentType": "Preisblatt"
    }
]

Beispielantworten

200 OK, the stored attachments

Status: 200 OK

JSON
[
  {
    "id": "ATT-2026092911501",
    "externalId": "ERP-DOC-99341",
    "documentId": "D-2026092911500",
    "fileName": "Bewehrungsplan 2026.pdf",
    "url": "https://files.cathago.de/call-offs/bewehrungsplan-2026.pdf",
    "attachmentType": "Zeichnung",
    "createdAt": "2026-09-29T11:50:01",
    "lastModifiedAt": "2026-09-29T11:50:01"
  }
]