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 |
|---|---|---|---|
| Yes | none | Your company ID |
| Yes | none |
|
| Yes | none | The agreement |
The fields
You send a list of attachments, even when there is only one.
Field | Type | Required | Meaning |
|---|---|---|---|
| text | one of three | A file already stored in CATHAGO |
| text | one of three | A web address CATHAGO fetches the file from |
| text (Base64) | one of three | The file itself, Base64-encoded |
| text | No | The file name to show |
| choice | No |
|
| text | No | Your own label for what kind of document it is |
| text | No | Your own id for it, echoed back |
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 |
|---|---|---|
| Key missing, wrong, or not valid for this | A staging key does not work in production. |
| 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 |
| 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
POST https://api.cathago.de/v3/api/gateways/integration/master-articles/pricelists/CO-2026072914001/attachments?companyAccountId=<companyAccountId>&type=CALL_OFFBeispielaufruf
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
[
{
"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
[
{
"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"
}
]