{"openapi":"3.0.3","info":{"title":"CATHAGO API","version":"3.8.0","description":"The public API of CATHAGO. Every call needs the `API-Key` header and, for most calls, the `companyAccountId` query parameter.\n\nCalls under `https://api.cathago.de` and calls under `https://api.cathago.de/v3` are both part of this API. Each operation names its own server."},"servers":[{"url":"https://api.cathago.de","description":"Live system"}],"security":[{"ApiKey":[]}],"tags":[{"name":"Projects","description":"Create, change, search and delete construction sites, with address, billing address, members, storage locations and your own additional fields."},{"name":"Members","description":"Your company's staff in Cathago: add people, change them, send them their invitation, disable them and remove them."},{"name":"Business Documents","description":"**This section is where orders, delivery notes and invoices live**, together with call-offs, \nreturn delivery notes and credit notes. Cathago calls all of them *business documents*, because \none set of calls handles the lot; the `documentType` field says which kind you are working with."},{"name":"Suppliers","description":"Create, maintain and search the supplier accounts your company is connected to."},{"name":"Contracts","description":"Framework contracts with your suppliers: search, create, change and store files against them."},{"name":"Price Lists","description":"Price agreements with one supplier. There are two kinds and they live in the same place, so this section has two halves."},{"name":"Products","description":"Parts and materials, your product range: concrete, reinforcing steel, insulation, screws, hire equipment. Split the same way as **Price Lists**, because a product hangs off one or the other."},{"name":"Catalogs","description":"**Deprecated. Please do not use this any more.** Catalogs have been replaced by **Price Lists** and **Products**. Do not build anything new on them. These calls only remain so that existing integrations keep running."}],"paths":{"/api/gateways/integration/catalogs":{"post":{"operationId":"createACatalog","summary":"Create a catalog (old, use Price Lists)","description":"**Deprecated.** Catalogs are replaced by price lists. Do not build new integrations on this call.\n\n### What this call does\n\nCreates one catalog for one supplier account. It always starts in status `DRAFT`.\n\n> **Deprecated. Do not build anything new on this.** Use Price Lists, `2. Bulk create/update price lists` instead.\n\n*Last updated: 15.05.2026*\n\n> **This call only creates.** It cannot change an existing catalog. Updating is a second route with the same body, answering `200 OK`: `PUT /api/gateways/integration/catalogs/{catalogId}?companyAccountId=...`. Read the two `PUT` warnings below first.\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- The `supplierAccountId` from Suppliers, `Search`, the `documentId` of any price file you have uploaded, and the `tenantId` of every tenant you want to name.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | Yes | none | Your company ID, in the address. The catalog is filed under it. |\n\n### The fields\n\n**Nothing here is required**, so an empty `{}` creates an empty draft catalog. What matters is what the defaults do, see `allTenants`.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `name` | text | No | (none) | Catalog name. Maximum 256 characters. |\n| `description` | text | No | (none) | Short description. Also 256 characters. |\n| `validFrom` | timestamp | No | (none) | Format `YYYY-MM-DDThh:mm:ss.SSSZ`. |\n| `validUntil` | timestamp | No | (none) | Same format. Not checked against `validFrom`. |\n| `catalogType` | choice | No | `STANDARD` | `STANDARD` or `PRE_FAB`. Anything else becomes `STANDARD`. |\n| `allTenants` | true/false | No | **`true`** | `true` opens the catalog to every tenant and the tenant list below is ignored. Set `false` whenever you name tenants. |\n| `noOfProducts` | number | No | (none) | No reason to send it: the import overwrites it. |\n| `documents` | list | No | (none) | Uploaded price files, one `documentId` each. Without a file the catalog can never be published. |\n| `catalogHasTenantInDtos` | list | No | `[]` | Tenants that may see the catalog. Only read when `allTenants` is `false`. Each entry has three optional fields: `tenantId`; `allProjects`, default `false`, where `true` gives that tenant every construction site; and `projectIds`, default `[]`, read only when `allProjects` is `false`. |\n| `supplierAccountId` | text | No | (none) | The supplier whose prices these are. |\n\n### What you get back\n\n`201 Created` and the new catalog. `id` is the catalog number, you need it for `Delete` and the `PUT` route. `catalogStatus` is always `DRAFT`; the import of your price file sets it later. `catalogHasDocumentOutDtos` lists the files, `catalogHasTenants` the tenants actually stored, and `noOfProjects` is always `null`. `PUT` returns the same object with `200 OK`.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `403 Forbidden` (`Invalid ApiKey`) or `401 Unauthorized` | Wrong key, or a `companyAccountId` that is not the key's company | Use your own company ID and a key for this environment. |\n| `400 Bad Request` | No body, `//` comments left in it, or a date written as `01.06.2026` | Send dates as `2026-06-01T00:00:00.000Z`. |\n| `406 Not Acceptable` | An unknown `supplierAccountId` or `catalogId`, or text over 256 characters | Look the IDs up with `Search`, and shorten `name` and `description`. |\n| A field you sent is not stored | You misspelt its name. Unknown names are dropped in silence and the call still answers `201` | Check your spelling. |\n| Your tenants are missing | `allTenants` was left out or `true`, so the tenant list was ignored | Send `\"allTenants\": false` alongside the list. |\n| `catalogType` came back as `STANDARD` | A misspelt value is not refused here, it is quietly replaced by the default | Send exactly `STANDARD` or `PRE_FAB`. |\n| **`PUT` replaces, it does not merge** | An update rewrites the whole tenant list from the body, and only when it says `\"allTenants\": false`; files in `documents` can only ever be added | Send the complete tenant list with `\"allTenants\": false` every time, and never resend a file you have already attached. |","tags":["Catalogs"],"parameters":[{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID, in the address. The catalog is filed under it.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"example":{"name":"Rohbau-Katalog 2026 – Baustoffe Demolinger","description":"Zement, Bewehrungsstahl und Mauerwerk für die Baustellen in Sachsen.","validFrom":"2026-06-01T00:00:00.000Z","validUntil":"2027-05-31T23:59:59.000Z","catalogType":"STANDARD","allTenants":false,"documents":[{"documentId":"C0626051233311344"},{"documentId":"C0626051233311345"}],"catalogHasTenantInDtos":[{"tenantId":"C31kYL7E69","allProjects":true,"projectIds":[]},{"tenantId":"C3125112218110915","allProjects":false,"projectIds":["C0226061180772794","C0226061180772801"]}],"supplierAccountId":"xmDHUklN"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"examples":{"create-update":{"summary":"Create / Update","value":{"name":"Global TEST Catalog","description":"Standard procurement catalog for Q1 hardware supplies and office peripherals.","validFrom":null,"validUntil":null,"catalogType":"STANDARD","allTenants":false,"noOfProducts":null,"id":"CKB26021777611585","catalogStatus":"DRAFT","createdBy":"ibrahim.jogilkar@cathago.de","noOfProjects":null,"supplierAccountMinOutDto":{"id":"xmDHUklN","domain":null,"companyOutDto":{"id":"bpxzD2rf","name":"Baustoffe Demolinger GmbH","description":"Demo Supplier, hier können Sie Bestellungen für Testzwecke senden. ","taxId":"DE12345","bic":null,"iban":null,"address":"Hessische Straße 11, 10115 Berlin","domain":null,"currency":"EUR","dateFormat":"dd.MM.yyyy HH:mm"},"contactPersonOutDto":{"id":"71IndYt1","fullName":"Emil Buxmann ","emailAddress":"demo.supplier@cathago.de","contactNumber":"1707386081","alternateContactNumber":"3050957744"},"addressOutDto":{"addressLineOne":"Hessische Straße 11, 10115 Berlin","addressLineTwo":null,"city":null,"country":null,"zipcode":null,"comments":null,"mapLink":null,"region":null,"id":"4vbIMsLw"},"logoDocumentOutDTo":{"id":"C06240531233370","size":124943,"documentName":"Demolieferant_Bauexperte Demolinger.png","documentFormat":"PNG","documentType":"PROFILE_PICTURE","documentStatus":"ATTACHED","publicUrl":"https://cat-e.s3.eu-central-1.amazonaws.com/supplierAccount/xmDHUklN/profile/C06240531233370.png"}},"catalogHasTenants":[{"id":"CLB26021737007819","tenant":{"id":"C31kYL7E69","taxId":"DE338526418","companyId":null,"companyName":"Bauunternehmen CATHAGO","mandant":null,"description":null,"addressOutDto":null,"logoDocumentOutDto":null},"allProjects":true,"projects":[]}],"companyAccountMinOutDto":{"id":"kYLC7E69","name":"Bauunternehmen CATHAGO","mandant":"","subDomain":null,"multiTenantAccount":false,"contactPersonName":"Emil Buxmann","emailAddress":"emil.buxmann@cathago.de","contactNumber":"01707386081","logoUrl":"https://cat-e.s3.eu-central-1.amazonaws.com/companyAccount/kYLC7E69/profile/FMHvTMmc.png","defaultTenantOutDto":{"id":"C31kYL7E69","taxId":"DE338526418","companyId":"kYLC7E69","companyName":"Bauunternehmen CATHAGO","mandant":null,"description":null,"logoUrl":"https://cat-e.s3.eu-central-1.amazonaws.com/TRANSIENT/C0625112184025233.png","addressOutDto":{"addressLineOne":"Musterstraße","addressLineTwo":"5","city":"Berlin","country":"","zipcode":"10115","comments":null,"mapLink":null,"region":null,"id":"CLQ25112124403808"}}},"catalogHasDocumentOutDtos":[],"createdAt":"2026-02-17T12:14:29.205Z","lastModifiedAt":null}}}}}}},"deprecated":true},"servers":[{"url":"https://api.cathago.de"}]},"/api/gateways/integration/catalogs/{catalogId}":{"delete":{"operationId":"deleteACatalog","summary":"Delete a catalog (old, use Price Lists)","description":"**Deprecated.** Catalogs are replaced by price lists. Do not build new integrations on this call.\n\n### What this call does\n\nTakes a catalog out of use. By default it removes the catalog and everything in it for good.\n\n> **Deprecated. Do not build anything new on this.** Use Price Lists, `4. Bulk delete price lists` instead.\n\n*Last updated: 15.05.2026*\n\n| `hardDelete` | What happens |\n| --- | --- |\n| `true` (**the default**) | Parts, materials and the catalog itself are deleted. Nothing is left to restore. |\n| `false` | Parts and materials go, the catalog stays and ends up `UNPUBLISHED`. You can attach a new price file later. |\n\nNeither happens while you wait. The catalog is set to `PROCESSING` and the answer comes at once, so a `Search` still shows it for a few moments. If the clean-up fails it is left as `FAILED`.\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- The `catalogId`. It is the `id` in the result of `Search`.\n\n> **Careful:** with the default `hardDelete=true` there is no undo. Check the `catalogId` with `Search` first.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `catalogId` | Yes | none | The catalog ID, in the address after `/catalogs/`. |\n| `companyAccountId` | Yes | none | Your company ID, in the address. |\n| `hardDelete` | No | **`true`** | `true` deletes the catalog for good. `false` empties it and leaves it `UNPUBLISHED`. |\n\n### The fields\n\nThis call sends no body. Everything it needs is in the address. A body you attach is ignored.\n\n### What you get back\n\n`204 No Content` with an empty body, plus the three deprecation headers.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `403 Forbidden` (`Invalid ApiKey`) or `401 Unauthorized` | Wrong key, or a `companyAccountId` that is not the key's company | Use your own company ID and a key for this environment. |\n| `400 Bad Request` | `companyAccountId` missing from the address | It is required. |\n| `406 Not Acceptable` | The `catalogId` is unknown or already hard-deleted, or you sent `hardDelete=false` while the catalog is still `PROCESSING` | Check the ID with `Search`, or wait a minute and try again. |\n| The address is rejected as-is | The placeholder `:catalogId` was never replaced | Enter the real ID under \"Path Variables\" in Postman. |\n| A catalog vanished when you only meant to retire it | `hardDelete` defaults to `true` | Send `hardDelete=false` when the catalog should survive. |\n| The catalog is stuck in `PROCESSING` or shows `FAILED` | The clean-up did not finish | The catalog is not gone. Ask your Cathago contact to look at it. |","tags":["Catalogs"],"parameters":[{"name":"catalogId","in":"path","required":true,"description":"The catalog ID, in the address after /catalogs/.","schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID, in the address.","schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"}},"deprecated":true},"servers":[{"url":"https://api.cathago.de"}]},"/api/gateways/integration/catalogs/search":{"post":{"operationId":"findCatalogs","summary":"Find catalogs (old, use Price Lists)","description":"**Deprecated.** Catalogs are replaced by price lists. Do not build new integrations on this call.\n\n### What this call does\n\nReturns one page of the catalogs of your company account, newest change first.\n\n> **Deprecated. Do not build anything new on this.** Use Price Lists, `1. Search price lists` instead.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header.\n- Your `companyAccountId`. It must be the company the key belongs to.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | Yes | none | Your company ID, in the address. Only its catalogs are searched. |\n\n### The fields\n\nThe whole body is optional. No body at all is a valid call and returns your first 10 catalogs.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `searchText` | text | No | (none) | Matches the **status**, not the name: `publ` finds `PUBLISHED`. Prefer `catalogStatuses`. |\n| `searchCriteriaDtos` | list | No | `[]` | Extra filters, combined with AND. |\n| `searchCriteriaDtos[].fieldName` | text | No | (none) | A catalog property: `name`, `description`, `catalogType`, `catalogStatus`, `noOfProducts`, `createdBy`, `createdAt`, `lastModifiedAt`, `supplierAccount.id`. An unknown one fails the call. |\n| `searchCriteriaDtos[].value` | any | No | (none) | Text, number, true/false, or a list for `in` / `not_in`. |\n| `searchCriteriaDtos[].operator` | choice | No | (none) | `in`, `like`, `lt`, `gt`, `eq`, `text_search`, `not_like`, `not_in`, `exists`, `not_exists`, `not_eq`, `between`. Only the first six differ. |\n| `paginationInDto` | object | No | page 0, size 10, `lastModifiedAt` `DESC` | Holds `pageIndex` (from zero), `pageSize` (minimum 1) and `sort` with `property`, `direction` (`ASC` / `DESC`) and `ignoreCase`. |\n| `catalogStatuses` | list | No | (none) | `DRAFT`, `PROCESSING`, `PUBLISHED`, `UNPUBLISHED`, `FAILED`. Omit for all. |\n| `supplierAccountIds` | list | No | (none) | Supplier account IDs, from Suppliers, `Search`. |\n| `customerAccountIds` | list | No | (none) | **Ignored.** Replaced by your `companyAccountId`. |\n| `projectIds` | list | No | (none) | Construction site IDs. Almost never matches, see below. |\n| `tenantIds` | list | No | (none) | **Accepted but never applied.** Leave it out. |\n\n### What you get back\n\n`200 OK` and three keys: `data`, `paginationOutDto` (`pageIndex`, `pageSize`, `sort`, `totalElements`, `totalPages`) and `query`, always `null` here.\n\nEach entry in `data` carries `id`, `name`, `description`, `validFrom`, `validUntil`, `catalogType`, `catalogStatus`, `allTenants`, `noOfProducts`, `createdBy`, `supplierAccountMinOutDto`, `catalogHasTenants`, `companyAccountMinOutDto`, `catalogHasDocumentOutDtos`, `createdAt` and `lastModifiedAt`. `noOfProjects` is always `null`. Timestamps look like `2026-06-01T00:00:00.000Z`.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `403 Forbidden` (`Invalid ApiKey`) or `401 Unauthorized` | Wrong key, or a `companyAccountId` that is not the key's company | Use your own company ID and a key for this environment. |\n| `400 Bad Request` | `companyAccountId` missing from the address, or `//` comments left in the body | The parameter is required even though the body is not. |\n| `406 Not Acceptable` | A misspelt status, `fieldName` or `operator`, or `pageSize` below 1 | Spell the values exactly as listed above. |\n| A filter is simply not applied | You misspelt the field name. Unknown names are dropped in silence and the call still returns `200` | Check your spelling. Upper and lower case do not matter. |\n| `projectIds` or `tenantIds` find nothing | Neither filter works | Use `supplierAccountIds` or `catalogStatuses` instead. |","tags":["Catalogs"],"parameters":[{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID, in the address. Only its catalogs are searched.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"example":{"searchText":"publ","searchCriteriaDtos":[{"fieldName":"catalogType","value":"STANDARD","operator":"eq"},{"fieldName":"createdBy","value":["sharif.malik@cathago.de","anja.krause@cathago.de"],"operator":"in"}],"paginationInDto":{"pageIndex":0,"pageSize":25,"sort":{"property":"lastModifiedAt","direction":"DESC","ignoreCase":false}},"catalogStatuses":["PUBLISHED","DRAFT"],"supplierAccountIds":["xmDHUklN","9pKzT4rB"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"search":{"summary":"Search","value":{"data":[{"name":"Global TEST Catalog","description":"Standard procurement catalog for Q1 hardware supplies and office peripherals.","validFrom":null,"validUntil":null,"catalogType":"STANDARD","allTenants":false,"noOfProducts":1,"id":"CTE26021781616052","catalogStatus":"PUBLISHED","createdBy":"ibrahim.jogilkar@cathago.de","noOfProjects":null,"supplierAccountMinOutDto":{"id":"xmDHUklN","domain":null,"companyOutDto":{"id":"bpxzD2rf","name":"Baustoffe Demolinger GmbH","description":"Demo Supplier, hier können Sie Bestellungen für Testzwecke senden. ","taxId":"DE12345","bic":null,"iban":null,"address":"Hessische Straße 11, 10115 Berlin","domain":null,"currency":"EUR","dateFormat":"dd.MM.yyyy HH:mm"},"contactPersonOutDto":{"id":"71IndYt1","fullName":"Emil Buxmann ","emailAddress":"demo.supplier@cathago.de","contactNumber":"1707386081","alternateContactNumber":"3050957744"},"addressOutDto":{"addressLineOne":"Hessische Straße 11, 10115 Berlin","addressLineTwo":null,"city":null,"country":null,"zipcode":null,"comments":null,"mapLink":null,"region":null,"id":"4vbIMsLw"},"logoDocumentOutDTo":{"id":"C06240531233370","size":124943,"documentName":"Demolieferant_Bauexperte Demolinger.png","documentFormat":"PNG","documentType":"PROFILE_PICTURE","documentStatus":"ATTACHED","publicUrl":"https://cat-e.s3.eu-central-1.amazonaws.com/supplierAccount/xmDHUklN/profile/C06240531233370.png"}},"catalogHasTenants":[{"id":"CXG26021796104475","tenant":{"id":"C31kYL7E69","taxId":"DE338526418","companyId":null,"companyName":"Bauunternehmen CATHAGO","mandant":null,"description":null,"addressOutDto":null,"logoDocumentOutDto":null},"allProjects":true,"projects":[]}],"companyAccountMinOutDto":{"id":"kYLC7E69","name":"Bauunternehmen CATHAGO","mandant":"","subDomain":null,"multiTenantAccount":false,"contactPersonName":"Emil Buxmann","emailAddress":"emil.buxmann@cathago.de","contactNumber":"01707386081","logoUrl":"https://cat-e.s3.eu-central-1.amazonaws.com/companyAccount/kYLC7E69/profile/FMHvTMmc.png","defaultTenantOutDto":{"id":"C31kYL7E69","taxId":"DE338526418","companyId":"kYLC7E69","companyName":"Bauunternehmen CATHAGO","mandant":null,"description":null,"logoUrl":"https://cat-e.s3.eu-central-1.amazonaws.com/TRANSIENT/C0625112184025233.png","addressOutDto":{"addressLineOne":"Musterstraße","addressLineTwo":"5","city":"Berlin","country":"","zipcode":"10115","comments":null,"mapLink":null,"region":null,"id":"CLQ25112124403808"}}},"catalogHasDocumentOutDtos":[],"createdAt":"2026-02-17T12:56:45.740Z","lastModifiedAt":"2026-02-17T12:57:38.312Z"}],"paginationOutDto":{"pageIndex":0,"pageSize":10,"sort":{"property":"lastModifiedAt","direction":"DESC"},"totalElements":1,"totalPages":1},"query":null}}}}}}},"deprecated":true},"servers":[{"url":"https://api.cathago.de"}]},"/api/gateways/integration/contracts/{contractId}":{"get":{"operationId":"showOneContract","summary":"Show one contract","description":"### What this call does\n\nShows a single framework contract with every field that has been filled in.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\nA valid API key in the `API-Key` header, your `companyAccountId`, and the Cathago `id` of the contract, from **Search contracts** or from the answer of **Create or update contracts (bulk)**.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `contractId` | Yes | none | In the address line. The Cathago id, e.g. `C122605151902334471`. |\n| `companyAccountId` | Yes | none | In the address line. Required, but **not used to find the contract**. |\n\n> **This call is not scoped to your company.** A contract id belonging to another company is still returned. Only ask for ids you own.\n\n### The fields\n\nNo request body. You send only the address with `contractId` and `companyAccountId`.\n\n### What you get back\n\n`200 OK` with the contract. Fields that were never filled in are **left out entirely**, they do not come back as `null`.\n\n| Field | Type | Meaning |\n| --- | --- | --- |\n| `id`, `externalId` | text | The Cathago id, and your own contract number. `externalId` *is* the contract number, there is no `contractNumber` field. |\n| `name`, `description`, `trade` | text | Name, description, trade. |\n| `contractType`, `contractForm` | text | Free text. Cathago's screens use `PURCHASE`, `SERVICE`, `RENTAL`, `PREFAB`, `SUBCONTRACT`, `LOGISTICS`, `DISPOSAL`, `OTHERS` and `SPOT`, `FRAMEWORK`, `MSA`. |\n| `status` | choice | `DRAFT`, `ACTIVE` or `INACTIVE`. Absent when never set. |\n| `validFrom`, `validUntil`, `renewalDate`, `effectiveDate`, `expiryDate` | date | The term, the day the renewal is decided, and mirrors of `validFrom` and `validUntil`. |\n| `noticePeriodDays`, `autoRenewal` | number, true/false | Notice period in days; whether the contract renews itself. |\n| `totalValue`, `currency` | number, text | Contract value and currency. |\n| `paymentTerms`, `pricingModel`, `invoiceSchedule`, `deliveryTimeAfterOrder`, `noteToBuyer`, `legalNoteToSupplier` | text | Free text, as the names say. |\n| `constructionElement` | text | The building element the contract covers. |\n| `contractFileDocumentId`, `contractFilePublicUrl`, `contractFileName` | text | The contract file: its id, the address it can be fetched from, and its file name. |\n| `supplierId`, `supplierName`, `priceListIds` | text, list | The supplier, and the price lists on this contract. |\n| `commercialConditions`, `contractDeliveryTime`, `installationDays` | object | Commercial terms, delivery time, installation time. |\n| `attachments` | list | Each entry has `id`, `externalId`, `documentId`, `fileName`, `url`, `attachmentType` and `createdAt`. The `id` is what **Remove extra files from a contract** wants. |\n| `daysUntilExpiry` | number | Whole days from today to `validUntil`, or to `expiryDate` when that is empty. Negative once expired; absent when neither is set. |\n| `createdAt`, `lastModifiedAt` | timestamp | `2026-05-15T10:22:41.883Z`. |\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `500`, `Contract not found for ID: …` | The id does not exist, often an `externalId` was used instead. There is **no** `404` here | Look the contract up with **Search contracts** and `externalIds` first. |\n| `401 Unauthorized` | Key missing, unknown, disabled or expired | Check the `API-Key` header. |\n| A field you expected is missing | It was never filled in; empty fields are omitted, not returned as `null` | Treat absent and empty as the same thing. `daysUntilExpiry` needs `validUntil` or `expiryDate`. |\n| A contract from another company came back | This call is not scoped by `companyAccountId` | Only ask for ids you own. |","tags":["Contracts"],"parameters":[{"name":"contractId","in":"path","required":true,"description":"In the address line. The Cathago id, e.g. C122605151902334471.","schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"In the address line. Required, but not used to find the contract.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"example-1-200-ok-fully-populated-contract":{"summary":"Example 1, 200 OK, fully populated contract","value":{"id":"C12260512895327","externalId":"ERP-PO-77831","name":"Logistic contract","contractType":"FRAMEWORK","trade":"Construction contract","description":"This is Contract Only assign for the ground Flore contraction","constructionElement":"floor Materials","noteToBuyer":"This is contact belong to the all respected price list","deliveryTimeAfterOrder":"10 Weeks","validFrom":"2026-04-30","validUntil":"2026-05-29","effectiveDate":"2026-04-30","expiryDate":"2026-05-29","renewalDate":"2026-05-31","noticePeriodDays":20,"autoRenewal":false,"daysUntilExpiry":14,"commercialConditions":{"notes":"Make Sure this Contract Should deliver On the time for Applied for the Construction material","paymentPeriod":"10 Days","scontoPaymentPeriod":"5 Days","scontoPercentage":19,"scontoPeriodDays":5,"volumeDiscountPercentage":2.5,"volumeDiscountThreshold":50000,"lateDeliveryPenaltyPerDay":250,"lateDeliveryPenaltyCap":5000,"qualityRejectionPenalty":1000},"contractDeliveryTime":{"duration":20,"durationUnit":"WEEKS","availableDaysType":"WORKDAYS","customDayRange":null},"installationDays":{"duration":30,"durationUnit":"WEEKS","afterDeliveryDate":"2026-06-29","availableDaysType":"WEEKENDS","customDayRange":null},"totalValue":648500,"currency":"EUR","paymentTerms":"Net 30","pricingModel":"FIXED","invoiceSchedule":"MONTHLY","legalNoteToSupplier":"This is contract is Applied for the Seleted Supplier Pricelist","status":"ACTIVE","supplierId":"S-STEELCO","supplierName":"Infra ware Supplier","priceListIds":["PL-STEEL-NORTH"],"contractFileDocumentId":"C0626051233311343","contractFilePublicUrl":"https://docs.cathago.de/contract-pdfs/C0626051233311343","contractFileName":"Steel-2026-Q2_Master.pdf","createdAt":"2026-04-29T18:30:00Z","lastModifiedAt":"2026-04-29T18:30:00Z"}},"example-2-200-ok-minimal-fields-draft":{"summary":"Example 2, 200 OK, minimal fields (DRAFT)","value":{"id":"C12260512895999","externalId":"ERP-PO-90001","name":"Quick framework — pending review","status":"DRAFT","validFrom":null,"validUntil":null,"daysUntilExpiry":null,"priceListIds":[],"createdAt":"2026-05-14T11:02:14Z","lastModifiedAt":"2026-05-14T11:02:14Z"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"examples":{"example-5-401-missing-api-key":{"summary":"Example 5, 401 missing API-Key","value":{"timestamp":"2026-05-15T09:24:00Z","status":401,"error":"Unauthorized","message":"Missing API key"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"examples":{"example-3-404-contract-not-found":{"summary":"Example 3, 404 contract not found","value":{"timestamp":"2026-05-15T09:24:00Z","status":404,"error":"Not Found","message":"Contract not found for ID: does-not-exist"}},"example-4-404-wrong-companyaccountid-tenant-isolation":{"summary":"Example 4, 404 wrong companyAccountId (tenant isolation)","value":{"timestamp":"2026-05-15T09:24:00Z","status":404,"error":"Not Found","message":"Contract not found for ID: C12260512895327"}}}}}}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/contracts/{contractId}/attachments":{"post":{"operationId":"addExtraFilesToAContract","summary":"Add extra files to a contract","description":"### What this call does\n\nAttaches one or more further files to an existing framework contract, works certificates, price appendices, specifications.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\nA valid API key in the `API-Key` header, your `companyAccountId`, the Cathago `id` of the contract, and one source per file.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `contractId` | Yes | none | In the address line. The Cathago id of the contract. |\n| `companyAccountId` | Yes | none | In the address line. Required, but not checked against the contract. |\n\n### The fields\n\nThe request is a **list**. Each entry is one file, processed in the order you sent them. No field has a default.\n\n| Field | Type | Required | Meaning |\n| --- | --- | --- | --- |\n| `externalId` | text | No | Your own document number. Recommended: it is handed back in the answer, so you can reconcile. |\n| `documentId` | text | one source | The file is already at Cathago. Loses to the two below. |\n| `documentUrl` | text | one source | Cathago fetches the file itself, without a login and without VPN. Loses to `fileInBytes`. Best for very large files. |\n| `fileInBytes` | text | one source | The file as base64 text. Wins over the other two. |\n| `documentName` | text | No | File name Cathago stores and shows. Ignored with a `documentId`. |\n| `documentFormat` | choice | with a URL or bytes | `PDF`, `DOC`, `JPEG`, `JPG`, `PNG`, `DOCX`, `CSV`, `XLSX`, `XLS`, `XML`, `JSON`, `DAT`, `WDA`. Without it the call fails with `500`. |\n| `attachmentType` | text | No | Free text, e.g. `CERTIFICATE`, `APPENDIX`, `SPEC`, `SUPPORTING_DOC`. Stored and shown exactly as sent, it is not a fixed list. |\n\n### What you get back\n\n`200 OK` with a list, in the order you sent them. Each entry has `id` (the attachment id: **this is what Remove extra files from a contract wants**, not `documentId`), your `externalId`, `documentId`, `fileName`, `url` (where the file can be fetched), `attachmentType`, `createdAt` and `lastModifiedAt` (`2026-05-15T10:22:41.883Z`). Attachments are added on top of whatever the contract already had; nothing is replaced.\n\n> **An entry whose three source fields are all empty is dropped silently.** No `400`, no error entry, the answer simply has fewer rows than you sent, so `200` does not mean every file arrived. Count the rows and match them by `externalId`.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| Fewer entries came back, or the answer is `[]` | Those entries had all three sources empty and were dropped | Fill in exactly one source per entry, and reconcile by `externalId`. |\n| The wrong file was attached | Two sources were filled in; the later one won | Send only one source per entry. |\n| `500`, `Contract not found for ID: …` | The contract id does not exist; there is no `404` here | Use the Cathago `id`, not your `externalId`. |\n| `500` while storing, or a 0-byte file | `documentFormat` was missing, or the `documentUrl` could not be fetched and that failure is swallowed | Send `documentFormat`, and make the address reachable without a login or VPN. |\n| `401 Unauthorized`, or `400 Bad Request` | Key missing, unknown, disabled or expired; or the `//` comments are still in the body | Check the `API-Key` header. Remove the comments, see the start page. |","tags":["Contracts"],"parameters":[{"name":"contractId","in":"path","required":true,"description":"In the address line. The Cathago id of the contract.","schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"In the address line. Required, but not checked against the contract.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array"},"example":[{"externalId":"ATT-DIN488-ZEUGNIS","documentUrl":"https://erp.weber-bau.de/dokumente/din488-zeugnis.pdf","documentName":"DIN-488-Werkszeugnis.pdf","documentFormat":"PDF","attachmentType":"CERTIFICATE"},{"externalId":"ATT-PREISANLAGE","documentId":"C0626051233311345","attachmentType":"APPENDIX"}]}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"example-1-add-2-attachments-200-streamed":{"summary":"Example 1, add 2 attachments (200 streamed)","value":[{"id":"A-77731-1","externalId":"ATT-INSPECTION-CERT","documentId":"C0626051233311344","fileName":"DIN-488-Cert.pdf","url":"https://docs.cathago.de/contract-pdfs/C0626051233311344","attachmentType":"CERTIFICATE","createdAt":"2026-05-15T09:23:01Z"},{"id":"A-77731-2","externalId":"ATT-PRICE-APPENDIX","documentId":"C0626051233311345","fileName":"Price-Appendix.pdf","url":"https://docs.cathago.de/contract-pdfs/C0626051233311345","attachmentType":"APPENDIX","createdAt":"2026-05-15T09:23:02Z"}]},"example-2-add-1-attachment-by-existing-documentid-200":{"summary":"Example 2, add 1 attachment by existing documentId (200)","value":[{"id":"A-77731-9","documentId":"C0626051233311349","attachmentType":"SUPPORTING_DOC","createdAt":"2026-05-15T09:25:00Z"}]}}}}},"404":{"description":"Not Found","content":{"application/json":{"examples":{"example-3-404-contract-not-found":{"summary":"Example 3, 404 contract not found","value":{"timestamp":"2026-05-15T09:25:00Z","status":404,"error":"Not Found","message":"Contract not found for ID: does-not-exist"}}}}}}}},"delete":{"operationId":"removeExtraFilesFromAContract","summary":"Remove extra files from a contract","description":"### What this call does\n\nRemoves attached files from a framework contract, and deletes the stored files behind them.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\nA valid API key in the `API-Key` header, your `companyAccountId`, the Cathago `id` of the contract, and the **attachment ids**, the `id` of each entry in the contract's `attachments`, read from **Show one contract** or from the answer of **Add extra files to a contract**. They are not the `documentId`.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `contractId` | Yes | none | In the address line. The Cathago id of the contract. |\n| `companyAccountId` | Yes | none | In the address line. Required, but not checked against the contract. |\n\n### The fields\n\nThe request is a plain **list of text ids**, not a list of objects.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| (each entry) | text | Yes | none | One attachment `id`, e.g. `CqB2605151902334471`. List as many as you like. Ids that match nothing on this contract are ignored. |\n\n> **One id in this list is not an attachment id.** Pass the contract's `contractFileDocumentId` and Cathago also clears the main contract file: `contractFileDocumentId`, `contractFilePublicUrl` and `contractFileName` are emptied and the file is deleted. It is easy to trigger by accident when a list of document ids is pasted in by mistake.\n\n### What you get back\n\n`204 No Content` with an empty body. You get `204` whether ids were removed or none of them matched, so the status code alone does not tell you anything happened.\n\nThe stored file behind each removed attachment is deleted too, unless another attachment on the same contract still points at the same `documentId`, in which case the file is kept. To confirm what happened, call **Show one contract** afterwards and look at `attachments`.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `204` but the attachment is still there | The ids sent were `documentId` values, not attachment `id` values | Read `attachments[].id` from **Show one contract** and send those. |\n| The main contract file disappeared too | The contract's `contractFileDocumentId` was in the list | Send only attachment ids. Re-attach the file with **Set the main contract file**. |\n| `500`, `Contract not found for ID: …` | The contract id does not exist; there is no `404` here | Use the Cathago `id`, not your `externalId`. |\n| `400 Bad Request`, or `401 Unauthorized` | The body is not a plain list of quoted ids, or the `//` comments are still in it; or the key is missing, unknown, disabled or expired | Send quoted ids only, without comments. Check the `API-Key` header. |\n| The file is still reachable at its old address | Deleting the stored file failed, and that failure is swallowed, so you still got `204` | Retry, and raise it with your Cathago contact if it persists. |","tags":["Contracts"],"parameters":[{"name":"contractId","in":"path","required":true,"description":"In the address line. The Cathago id of the contract.","schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"In the address line. Required, but not checked against the contract.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array"},"example":["CqB2605151902334471","CqB2605151902334472"]}}},"responses":{"204":{"description":"No Content"},"404":{"description":"Not Found","content":{"application/json":{"examples":{"example-3-404-contract-not-found":{"summary":"Example 3, 404 contract not found","value":{"timestamp":"2026-05-15T09:26:00Z","status":404,"error":"Not Found","message":"Contract not found for ID: does-not-exist"}}}}}}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/contracts/{contractId}/contract-file":{"post":{"operationId":"setTheMainContractFile","summary":"Set the main contract file","description":"### What this call does\n\nStores or replaces the signed contract file on one existing framework contract.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\nA valid API key in the `API-Key` header, your `companyAccountId`, the Cathago `id` of the contract, and one source for the file.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `contractId` | Yes | none | In the address line. The Cathago id of the contract. |\n| `companyAccountId` | Yes | none | In the address line. Required, but not checked against the contract. |\n\n### The fields\n\nNo field has a default. Fill in exactly one source; fill in more and the later one in the order `documentId` → `documentUrl` → `fileInBytes` wins.\n\n| Field | Type | Required | Meaning |\n| --- | --- | --- | --- |\n| `documentId` | text | one source | The file is already at Cathago. |\n| `documentUrl` | text | one source | Cathago fetches the file itself. The address must be reachable without a login and without VPN. |\n| `fileInBytes` | text | one source | The file as base64 text. |\n| `documentName` | text | No | The file name Cathago stores and shows. Ignored with a `documentId`, the stored file keeps its own name. |\n| `documentFormat` | choice | with a URL or bytes | `PDF`, `DOC`, `JPEG`, `JPG`, `PNG`, `DOCX`, `CSV`, `XLSX`, `XLS`, `XML`, `JSON`, `DAT`, `WDA`. Without it the call fails with `500`. Ignored with a `documentId`. |\n\n### What you get back\n\n`200 OK` with the whole contract, now carrying `contractFileDocumentId`, `contractFilePublicUrl` and `contractFileName`. Calling this again **replaces** the pointer on the contract; the file it used to point at is not deleted.\n\n> **With none of the three source fields filled in you get `200 OK` and an empty body.** The contract is untouched. There is no `400` here, so check that the answer really contains a `contractFileDocumentId`.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `200 OK` with an empty body | All three source fields were empty | Fill in exactly one of them. |\n| `200 OK` but the wrong file arrived, or `documentName` was ignored | Two sources were filled in and the later one won; or a `documentId` was passed, and that file keeps its own name | Send one source. Use `documentUrl` or `fileInBytes` to control the name. |\n| `500`, `Contract not found for ID: …` | The contract id does not exist; there is no `404` here | Use the Cathago `id`, not your `externalId`. |\n| `500` while storing, or a 0-byte file | `documentFormat` was missing, or the `documentUrl` could not be fetched and that failure is swallowed | Send `documentFormat`, and make the address reachable without a login or VPN. |\n| `401 Unauthorized`, or `400 Bad Request` | Key missing, unknown, disabled or expired; or the `//` comments are still in the body | Check the `API-Key` header. Remove the comments, see the start page. |","tags":["Contracts"],"parameters":[{"name":"contractId","in":"path","required":true,"description":"In the address line. The Cathago id of the contract.","schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"In the address line. Required, but not checked against the contract.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"example":{"documentId":"C0626051233311343","documentUrl":null,"fileInBytes":null,"documentName":"Rahmenvertrag-Betonstahl-2026.pdf","documentFormat":"PDF"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"example-1-set-master-pdf-by-inline-bytes-200":{"summary":"Example 1, set master PDF by inline bytes (200)","value":{"id":"C12260512895327","externalId":"ERP-PO-77831","name":"Logistic contract","status":"DRAFT","contractFileDocumentId":"C0626051233311343","contractFilePublicUrl":"https://docs.cathago.de/contract-pdfs/C0626051233311343","contractFileName":"Steel-2026-Q2_Master.pdf"}},"example-2-set-master-pdf-by-remote-url-200":{"summary":"Example 2, set master PDF by remote URL (200)","value":{"id":"C12260512895327","contractFileDocumentId":"C0626051233311343","contractFilePublicUrl":"https://docs.cathago.de/contract-pdfs/C0626051233311343","contractFileName":"Steel-2026-Q2_Master.pdf"}},"example-3-link-by-documentid-from-prior-upload-file-200":{"summary":"Example 3, link by documentId from prior /upload-file (200)","value":{"id":"C12260512895327","contractFileDocumentId":"C0626051233311343"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"examples":{"example-4-400-missing-all-three-source-fields":{"summary":"Example 4, 400 missing all three source fields","value":{"timestamp":"2026-05-15T11:42:00Z","status":400,"error":"Bad Request","message":"One of documentId, documentUrl, or fileInBytes is required"}}}}}}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/contracts/bulk":{"post":{"operationId":"createOrUpdateContracts","summary":"Create or update contracts (bulk)","description":"### What this call does\n\nCreates or changes several framework contracts in one call, with the contract file and any attachments travelling along inside each row.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\nA valid API key in the `API-Key` header and your `companyAccountId`. Put an `externalId` from your ERP on every row: it is how Cathago recognises a contract you have sent before, and the only reliable way to match the answer to your rows.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | Yes | none | Your company id. Stamped onto every contract this call creates. |\n| `mode` | No | `ADD_OR_UPDATE` | `ADD`, `ADD_OR_UPDATE` or `PATCH`. Anything else is rejected with `400`, unlike the choice fields in the body, this one is not forgiving. |\n\n**`ADD_OR_UPDATE`** (the default) finds the row by `id`, or failing that by `externalId`: found → update, not found → create. **`ADD`** always creates, with no uniqueness check and no `409`, so on a routine sync it silently makes duplicates, use it for the first import only. **`PATCH`** only updates: a row must carry `id` or `externalId` or the call fails with `400`, and a row matching nothing is skipped without any error. `id` is only ever a lookup key, never the id of a new contract.\n\n### The fields\n\nThe request is a **list**; each entry is one framework contract. **Nothing is required, not even `name`**: a row of `{}` creates a contract with only an auto-generated id. Every field is optional and has no default unless stated otherwise.\n\n| Field | Type | Default | Meaning |\n| --- | --- | --- | --- |\n| `id` | text | (none) | Cathago id. Lookup key only; leave it out to create. |\n| `externalId` | text | (none) | Your own contract number, and the lookup key for `ADD_OR_UPDATE` and `PATCH`. Not checked for uniqueness. There is no `contractNumber` field, this is it. |\n| `status` | choice | **none** | `DRAFT`, `ACTIVE` or `INACTIVE`. No default: leave it out and the contract is stored with no status and matches no `statuses` filter. Send one. |\n| `priceListIds` | list of text | empty list | Price list ids. **See the warning below.** |\n| `commercialConditions`, `contractDeliveryTime`, `installationDays` | object | (none) | Commercial terms, delivery time, installation time. Detailed below. |\n| `contractFile` | object | (none) | The signed contract file. Detailed below. |\n| `attachments` | list | empty list | Further files. Detailed below. |\n\nThe rest are plain values:\n\n- **Text:** `name` (strongly recommended), `trade`, `description`, `constructionElement`, `noteToBuyer`, `legalNoteToSupplier`, `paymentTerms`, `pricingModel`, `invoiceSchedule`, `deliveryTimeAfterOrder`, `currency` (e.g. `EUR`), `supplierId`, `supplierName`.\n- **Free text with agreed spellings:** `contractType`, Cathago's screens use `PURCHASE`, `SERVICE`, `RENTAL`, `PREFAB`, `SUBCONTRACT`, `LOGISTICS`, `DISPOSAL`, `OTHERS`; `contractForm`none`SPOT`, `FRAMEWORK`, `MSA`.\n- **Dates, `YYYY-MM-DD`:** `validFrom` and `validUntil` (the term; `daysUntilExpiry` counts to `validUntil`), `renewalDate`, and `effectiveDate` / `expiryDate`, which come back as `validFrom` / `validUntil` whenever those are set.\n- **Numbers:** `totalValue` (no quotes, no `€`), `noticePeriodDays` (whole number).\n- **Yes/no:** `autoRenewal`none`true` renews automatically.\n\n> **On an update, three things are replaced by exactly what you send.** `priceListIds`, leave it out and **every price list on that contract is unlinked**. `commercialConditions`, `contractDeliveryTime` and `installationDays`, an object with one field inside it wipes the other fields of that object. Call-offs are cleared outright, so do not update a contract that has them here. Everything else you leave out keeps its old value, and existing attachments are never removed.\n\n**`commercialConditions`**, all optional, no defaults: `notes`, `paymentPeriod` (e.g. `30 Tage netto`), `scontoPaymentPeriod`, `scontoPercentage` (percent, e.g. `3.0`, dot, not comma), `scontoPeriodDays` (whole number), `volumeDiscountPercentage`, `volumeDiscountThreshold` (value from which it applies), `lateDeliveryPenaltyPerDay`, `lateDeliveryPenaltyCap` and `qualityRejectionPenalty`. All amounts are numbers.\n\n**`contractDeliveryTime`**, all optional, no defaults: `duration` (whole number), `durationUnit` (`DAYS`, `WEEKS` or `MONTHS`), `availableDaysType` (`WORKDAYS`, `WEEKENDS`, `CALENDAR` or `CUSTOM`) and `customDayRange` (`fromDay` and `toDay`, both `YYYY-MM-DD`, meant to go with `CUSTOM`, though that pairing is not enforced). **`installationDays`** has the same four fields, plus `afterDeliveryDate` (date): when installation starts after delivery.\n\n**`contractFile`**, no defaults. Fill in exactly **one** source: `documentId` (already at Cathago), `documentUrl` (Cathago fetches it itself, without a login and without VPN) or `fileInBytes` (base64 text); fill in more and the later one in that order wins. Plus `documentName` (the file name Cathago shows, ignored with a `documentId`) and `documentFormat`none`PDF`, `DOC`, `JPEG`, `JPG`, `PNG`, `DOCX`, `CSV`, `XLSX`, `XLS`, `XML`, `JSON`, `DAT`, `WDA`, which is required with a URL or bytes; without it the call fails with `500`.\n\n**`attachments`**, the same five fields, plus two optional ones with no default: `externalId` (your own document number) and `attachmentType` (free text, e.g. `CERTIFICATE`, `APPENDIX`, `SPEC`, `SUPPORTING_DOC`, stored exactly as sent).\n\n> **A file block with all three sources empty is a trap.** On `contractFile` the whole contract row disappears from the answer, although the contract itself is created or updated; an `attachments` entry is simply dropped. Leave the block out entirely when there is no file.\n\n### What you get back\n\n`200 OK` with a list, one entry per contract stored, each carrying the `id` Cathago assigned and your `externalId`. Rows arrive one by one, in **no guaranteed order**, so match them by `externalId` or `id`, never by position. **Fewer rows can come back than you sent**: `PATCH` rows that matched nothing, and rows whose `contractFile` had no source, are left out. And **the first failing row ends the stream**, so `200` does **not** mean every row succeeded.\n\nRead the answer to the end and reconcile by `externalId`. A very long answer can also be cut short by a timeout, so send large loads in batches.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, or `400 Bad Request` | Key missing, unknown, disabled or expired; or the `//` comments are still in the body | Check the `API-Key` header, a staging key is not a production key. Remove the comments. |\n| `400`, `PATCH mode requires id or externalId on each contract` | With `mode=PATCH`, a row carries neither | Put one of the two in every row. |\n| Fewer rows come back than you sent | `PATCH` rows that matched nothing, or a `contractFile` with all three sources empty | Reconcile by `externalId`. Leave `contractFile` out when there is no file. |\n| Price lists, or half of `commercialConditions`, vanished after an update | Both blocks are replaced by exactly what you send | Always resend them complete. |\n| A field, or a `status`, you sent had no effect | A misspelled field name is dropped silently; an unknown choice value is silently emptied. Neither is rejected | Check the spelling. `status` must be `DRAFT`, `ACTIVE` or `INACTIVE`; case does not matter. |\n| `500` on a row that carried a file, or a 0-byte file | `documentFormat` was missing, or the `documentUrl` could not be fetched and that failure is swallowed | Send `documentFormat`, and make the address reachable without a login or VPN. |","tags":["Contracts"],"parameters":[{"name":"companyAccountId","in":"query","required":true,"description":"Your company id. Stamped onto every contract this call creates.","schema":{"type":"string"}},{"name":"mode","in":"query","required":false,"description":"ADD, ADD_OR_UPDATE or PATCH. Anything else is rejected with 400, unlike the choice fields in the body, this one is not forgiving.","schema":{"type":"string"},"example":"ADD_OR_UPDATE"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array"},"example":[{"externalId":"RV-2026-0417","name":"Rahmenvertrag Betonstahl 2026","contractType":"PURCHASE","contractForm":"FRAMEWORK","trade":"Rohbau","description":"Betonstahl B500B als Stabstahl und Betonstahlmatten für alle Baustellen in Sachsen.","constructionElement":"Bewehrung Decken und Wände","noteToBuyer":"Abruf mindestens 5 Werktage vor Bedarf. Mindestabnahme 2 Tonnen je Abruf.","legalNoteToSupplier":"Es gelten die VOB/B sowie unsere Einkaufsbedingungen in der Fassung vom 01.01.2026.","deliveryTimeAfterOrder":"10 Wochen","validFrom":"2026-06-01","validUntil":"2027-05-31","renewalDate":"2027-04-01","noticePeriodDays":90,"autoRenewal":true,"status":"ACTIVE","supplierId":"S-STAHLHANDEL-NORDBAU","supplierName":"Stahlhandel Nordbau GmbH","priceListIds":["PL-STAHL-NORD-2026","PL-MATTEN-NORD-2026"],"totalValue":648500,"currency":"EUR","paymentTerms":"30 Tage netto, 14 Tage 3 Prozent Skonto","pricingModel":"FIXED","invoiceSchedule":"MONTHLY","commercialConditions":{"notes":"Preise fest bis 31.05.2027. Stahlzuschlag wird monatlich abgerechnet.","paymentPeriod":"30 Tage netto","scontoPaymentPeriod":"14 Tage","scontoPercentage":3,"scontoPeriodDays":14,"volumeDiscountPercentage":2.5,"volumeDiscountThreshold":250000,"lateDeliveryPenaltyPerDay":750,"lateDeliveryPenaltyCap":15000,"qualityRejectionPenalty":1500},"contractDeliveryTime":{"duration":10,"durationUnit":"WEEKS","availableDaysType":"WORKDAYS","customDayRange":null},"installationDays":{"duration":15,"durationUnit":"DAYS","afterDeliveryDate":"2026-08-17","availableDaysType":"CUSTOM","customDayRange":{"fromDay":"2026-08-17","toDay":"2026-09-04"}},"contractFile":{"documentUrl":"https://erp.weber-bau.de/dokumente/rv-2026-0417.pdf","documentName":"Rahmenvertrag-Betonstahl-2026.pdf","documentFormat":"PDF"},"attachments":[{"externalId":"ATT-DIN488-ZEUGNIS","documentUrl":"https://erp.weber-bau.de/dokumente/din488-zeugnis.pdf","documentName":"DIN-488-Werkszeugnis.pdf","documentFormat":"PDF","attachmentType":"CERTIFICATE"},{"externalId":"ATT-PREISANLAGE","documentId":"C0626051233311345","attachmentType":"APPENDIX"}]},{"externalId":"RV-2026-0418","name":"Rahmenvertrag Transportbeton 2026","contractType":"PURCHASE","contractForm":"FRAMEWORK","trade":"Rohbau","validFrom":"2026-06-01","validUntil":"2027-05-31","noticePeriodDays":30,"autoRenewal":false,"status":"DRAFT","supplierId":"S-BETONWERK-SACHSEN","supplierName":"Betonwerk Sachsen GmbH","priceListIds":["PL-BETON-SACHSEN-2026"],"totalValue":312000,"currency":"EUR"}]}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"example-1-add-or-update-creates-2-new-contracts-200":{"summary":"Example 1, ADD_OR_UPDATE creates 2 new contracts (200)","value":[{"id":"C12260512895327","externalId":"ERP-PO-77831","name":"Logistic contract","contractForm":"STANDARD","trade":"Construction contract","status":"DRAFT","validFrom":"2026-04-30","validUntil":"2026-05-29","daysUntilExpiry":14,"commercialConditions":{"notes":"Make Sure this Contract Should deliver On the time for Applied for the Construction material","paymentPeriod":"10 Days","scontoPercentage":19,"scontoPeriodDays":5},"contractDeliveryTime":{"duration":20,"durationUnit":"WEEKS","availableDaysType":"WORKDAYS"},"installationDays":{"duration":30,"durationUnit":"WEEKS","afterDeliveryDate":"2026-06-29","availableDaysType":"WEEKENDS"},"supplierId":"S-STEELCO","supplierName":"Infra ware Supplier","priceListIds":["PL-STEEL-NORTH"],"createdAt":"2026-05-15T09:23:00Z"},{"id":"C12260512895328","externalId":"ERP-PO-77832","name":"Concrete C25/30","contractForm":"STANDARD","status":"DRAFT","validFrom":"2026-04-01","validUntil":"2026-06-30","createdAt":"2026-05-15T09:23:00Z"}]},"example-2-add-or-update-updates-1-existing-creates-1-200":{"summary":"Example 2, ADD_OR_UPDATE updates 1 existing + creates 1 (200)","value":[{"id":"C12260512895327","externalId":"ERP-PO-77831","name":"Steel rebar 2026 Q2 (updated)","status":"DRAFT","lastModifiedAt":"2026-05-15T09:27:00Z"},{"id":"C12260512895999","externalId":"ERP-PO-NEW-001","name":"New gravel framework","status":"DRAFT","createdAt":"2026-05-15T09:27:00Z"}]},"example-3-add-mode-always-creates-200":{"summary":"Example 3, ADD mode always creates (200)","value":[{"id":"C12260512896001","externalId":"ERP-PO-77831","name":"Steel rebar 2026 Q2 (a separate row)","status":"DRAFT","createdAt":"2026-05-15T09:30:00Z"}]},"example-4-patch-mode-updates-existing-only-200":{"summary":"Example 4, PATCH mode updates existing only (200)","value":[{"id":"C12260512895327","externalId":"ERP-PO-77831","name":"Steel rebar 2026 Q2","totalValue":720000,"noteToBuyer":"Updated guidance — order in 200kg increments.","status":"ACTIVE","lastModifiedAt":"2026-05-15T09:32:00Z"}]},"example-5-add-or-update-with-inline-contractfile-attachments":{"summary":"Example 5, ADD_OR_UPDATE with inline contractFile + attachments","value":[{"id":"C12260512895327","externalId":"ERP-PO-77831","name":"Logistic contract","contractForm":"STANDARD","status":"DRAFT","contractFileDocumentId":"C0626051233311343","contractFilePublicUrl":"https://docs.cathago.de/contract-pdfs/C0626051233311343","contractFileName":"Steel-2026-Q2_Master.pdf","attachments":[{"id":"A-77731-1","externalId":"ATT-INSPECTION-CERT","documentId":"C0626051233311344","fileName":"DIN-488-Cert.pdf","attachmentType":"CERTIFICATE","createdAt":"2026-05-15T09:23:01Z"},{"id":"A-77731-2","externalId":"ATT-PRICE-APPENDIX","documentId":"C0626051233311345","fileName":"Price-Appendix.pdf","attachmentType":"APPENDIX","createdAt":"2026-05-15T09:23:02Z"}],"createdAt":"2026-05-15T09:23:00Z"}]}}}}},"400":{"description":"Bad Request","content":{"application/json":{"examples":{"example-6-400-patch-without-id-externalid":{"summary":"Example 6, 400 PATCH without id/externalId","value":{"timestamp":"2026-05-15T09:33:00Z","status":400,"error":"Bad Request","message":"PATCH mode requires id or externalId on each contract"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"examples":{"example-7-404-patch-but-no-matching-contract":{"summary":"Example 7, 404 PATCH but no matching contract","value":{"timestamp":"2026-05-15T09:33:00Z","status":404,"error":"Not Found","message":"Contract not found for externalId: ERP-DOES-NOT-EXIST"}}}}}}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/contracts/search":{"post":{"operationId":"searchContracts","summary":"Search contracts","description":"### What this call does\n\nSearches your company's framework contracts, one page at a time.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\nA valid API key in the `API-Key` header and your `companyAccountId`. Every filter is optional: an empty body `{}` returns the first page of all contracts.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | Yes | none | Your company id, in the address line. A wrong value returns an empty page, not an error. |\n\n### The fields\n\nEvery field is optional. `pageIndex` defaults to `0` and `pageSize` to `10`; the list filters default to an empty list and the rest to nothing. Several filters at once are combined with **and**; several values inside one list mean \"any of these\".\n\n| Field | Type | Meaning |\n| --- | --- | --- |\n| `pageIndex` | number | Page number. The first page is `0`. |\n| `pageSize` | number | Results per page. |\n| `sort` | text | Accepted, but has **no effect**. |\n| `externalIds` | list of text | Your own contract numbers from your ERP. Matched exactly. |\n| `supplierAccountIds` | list of text | Supplier account ids. Note the plural. |\n| `statuses` | list of choice | `DRAFT`, `ACTIVE`, `INACTIVE`. |\n| `contractTypes` | list of text | Exact and case-sensitive. Cathago's screens use `PURCHASE`, `SERVICE`, `RENTAL`, `PREFAB`, `SUBCONTRACT`, `LOGISTICS`, `DISPOSAL`, `OTHERS`. |\n| `contractForms` | list of text | Exact and case-sensitive. Cathago's screens use `SPOT`, `FRAMEWORK`, `MSA`. |\n| `priceListIds` | list of text | Price list ids. |\n| `fromDate`, `toDate` | date | The validity window, `YYYY-MM-DD`. See below. |\n| `minValue`, `maxValue` | number | Accepted, but have **no effect**. |\n\nSent together, the two dates ask for contracts whose **whole term fits inside** your window, not for contracts that overlap it: a contract running 2026-03-01 to 2026-09-01 is found by the window 2026-01-01 to 2026-12-31, but not by 2026-04-01 to 2026-08-31. Sent alone, `fromDate` keeps contracts starting on or after that day and `toDate` those ending on or before it.\n\n> **Do not put today's date in both fields to find \"contracts valid today\".** That asks for contracts that start *and* end today, which is almost always nothing. Filter on `statuses: [\"ACTIVE\"]` and read `daysUntilExpiry` off each result.\n\n### What you get back\n\n`200 OK` with `data` (the contracts on this page), `total` (how many match in all), and `pageIndex` and `pageSize` echoed back from your request, leave those two out and the search still pages with `0` and `10`, but neither comes back.\n\nNothing found gives an empty `data` and a `total` of `0`. That is not an error. To page through, count `pageIndex` up until you have all `total` entries.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, or `400 Bad Request` | Key missing, unknown, disabled or expired; or the `//` comments are still in the body | Check the `API-Key` header, a staging key is not a production key. Remove the comments. |\n| A filter is simply ignored | It was misspelled. A misspelled field name is dropped silently, never rejected | Check it against the field table. |\n| `data` is empty although contracts exist | The dates were meant as an overlap filter, or `companyAccountId` is wrong | The dates are a containment window, see above. |\n| `contractTypes` or `contractForms` match nothing | Both are case-sensitive: `\"purchase\"` misses `\"PURCHASE\"` | Use the exact spelling you stored. |\n| Results are missing, or an amount is refused | Only the first page was fetched; or the amount was sent as text, `\"10.000,00\"` | Page on with `pageIndex`. Send `10000.00`, dot, not comma, no quotes. |","tags":["Contracts"],"parameters":[{"name":"companyAccountId","in":"query","required":true,"description":"Your company id, in the address line. A wrong value returns an empty page, not an error.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"example":{"pageIndex":0,"pageSize":25,"externalIds":["RV-2026-0417","RV-2026-0418"],"supplierAccountIds":["S-STAHLHANDEL-NORDBAU","S-BETONWERK-SACHSEN"],"statuses":["ACTIVE"],"contractTypes":["PURCHASE","LOGISTICS"],"contractForms":["FRAMEWORK"],"priceListIds":["PL-STAHL-NORD-2026","PL-MATTEN-NORD-2026"],"fromDate":"2026-06-01","toDate":"2027-05-31"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"example-1-list-everything-empty-body-paginated":{"summary":"Example 1, list everything (empty body / paginated)","value":{"data":[{"id":"C12260512895327","externalId":"ERP-PO-77831","name":"Steel rebar 2026 Q2","status":"ACTIVE","validFrom":"2026-04-01","validUntil":"2026-06-30","daysUntilExpiry":46,"supplierId":"S-STEELCO","supplierName":"Steelco GmbH","priceListIds":["PL-STEEL-NORTH"]},{"id":"C12260512895328","externalId":"ERP-PO-77832","name":"Concrete C25/30","status":"DRAFT","validFrom":"2026-04-01","validUntil":"2026-06-30","daysUntilExpiry":46,"supplierId":"S-CONCRETECO","supplierName":"ConcreteCo GmbH","priceListIds":["PL-CONCRETE-NORTH"]}],"total":2,"pageIndex":0,"pageSize":20}},"example-2-checkout-style-pricelistids-active-today-within-validity":{"summary":"Example 2, checkout-style (priceListIds + ACTIVE + today within validity)","value":{"data":[{"id":"C12260512895327","externalId":"ERP-PO-77831","name":"Steel rebar 2026 Q2","status":"ACTIVE","validFrom":"2026-04-01","validUntil":"2026-06-30","daysUntilExpiry":46,"supplierName":"Steelco GmbH","priceListIds":["PL-STEEL-NORTH"]}],"total":1,"pageIndex":0,"pageSize":50}},"example-3-filter-by-supplier-name-status":{"summary":"Example 3, filter by supplier name + status","value":{"data":[{"id":"C12260512895327","externalId":"ERP-PO-77831","name":"Steel rebar 2026 Q2","status":"ACTIVE","supplierName":"Steelco GmbH","daysUntilExpiry":46}],"total":1,"pageIndex":0,"pageSize":10}},"example-4-find-by-externalids-erp-reconciliation":{"summary":"Example 4, find by externalIds (ERP reconciliation)","value":{"data":[{"id":"C12260512895327","externalId":"ERP-PO-77831","name":"Logistic contract","status":"ACTIVE"},{"id":"C12260512895328","externalId":"ERP-PO-77832","name":"Concrete C25/30","status":"DRAFT"}],"total":2,"pageIndex":0,"pageSize":10}},"example-5-empty-result-no-matches":{"summary":"Example 5, empty result (no matches)","value":{"data":[],"total":0,"pageIndex":0,"pageSize":10}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"examples":{"example-6-401-invalid-api-key":{"summary":"Example 6, 401 invalid API-Key","value":{"timestamp":"2026-05-15T09:24:00Z","status":401,"error":"Unauthorized","message":"Invalid API key"}}}}}}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/documents":{"post":{"operationId":"createOneBusinessDocument","summary":"Create one business document","description":"### What this call does\n\nFiles one business document with Cathago, a single order, call-off, delivery note, invoice or credit note, and answers with the Cathago ID it was filed under.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- The Cathago `supplierAccountId` of a supplier already connected to your company.\n- Usually the `projectId` of the construction site, from the **Projects** section.\n\n**Start here.** One document in, one document out: no `mode` to choose and no list to assemble. It **always creates**, so send each document once. Use **Create or update business documents (bulk)** when you have many at a time, or when you need \"create it if it is new, change it if I have sent it before\"; use **Update one business document** to change one that is already stored.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID, in the address line. The document is filed under it, and the supplier and the construction site are looked up inside it. |\n\nThere is no `mode` on this call.\n\n### The fields\n\nThe data packet is a **single business document object**, not a list. Two fields are required.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `supplierAccountId` | text | **Yes** | none | The supplier account, already connected to your company. Missing → `400`, code `BUSINESS_DOCUMENT_1005`. |\n| `documentType` | choice | **Yes** | none | `ORDER`, `CALL_OFF`, `DELIVERY`, `RETURN_DELIVERY_NOTE`, `INVOICE`, `CREDIT_NOTE`. Missing **or misspelt** → `400`, code `BUSINESS_DOCUMENT_1004`. |\n| `externalId` | text | No | (none) | Your own document number. Never checked for uniqueness. |\n| `id` | text | No | (none) | Cathago ID. **Ignored here**, this call always creates. Only **Update one business document** uses it. |\n| `projectId` | text | No | (none) | The construction site. Sets the site **and** its tenant company. An unknown one makes the call return nothing at all. |\n| `businessDocumentStatus` | choice | No | see below | `OPEN`, `REQUESTED`, `CONFIRMED`, `DELIVERED`, `RECLAIM` and eleven more, listed in full on the bulk call. |\n| `contractIds` | list | No | `[]` | The framework contracts the document draws on. Filling it is what makes a document a call-off. |\n| `metadata` | object | No | (none) | Dates, payment terms, delivery details, buyer, receiver, notes. |\n| `additionalFields` | list | No | `[]` | Your own extra fields; `additionalFieldsMode` decides the merge. |\n| `additionalFieldsMode` | choice | No | `ADD` | `ADD`, `UPDATE`, `DELETE`, `REPLACE`. `ADD` keeps what is stored, `UPDATE` overwrites it. |\n| `attachments` | list | No | `[]` | Files, each given as an address or as the file itself. |\n| `documentReferences` | list | No | `[]` | Links to other documents, the order an invoice belongs to, the contract a call-off draws on. |\n| `signatures` | list | No | `[]` | Who signed, and the signature image. |\n| `lineItems` | list | No | `[]` | The line items. Each one gets its own Cathago ID in the answer. |\n\nEvery block holds the fields it holds in **Create or update business documents (bulk)**, where each one is explained in full, and the same rules apply: `taxRate` is a percentage, `19` means 19 %, never `0.19`; an attachment needs either `documentUrl` or `fileInBytes`, or the entry is dropped in silence; a date Cathago cannot read is stored as nothing rather than refused.\n\nLeft out, `businessDocumentStatus` becomes `REQUESTED` on an `ORDER` and `OPEN` on an `INVOICE`, `DELIVERY`, `RETURN_DELIVERY_NOTE` or `CREDIT_NOTE`. **A `CALL_OFF` gets none of these and fails with `500`, always send a status with a call-off.**\n\n### What you get back\n\n`200 OK`, not `201`, with the finished document, in the same shape as one entry of `data` in **Search business documents**. Anything empty is left out.\n\n**This answer is the only place you are given the document's Cathago ID**, and each line item carries its own `id`, needed to change or remove that line later. Write both down.\n\n### `sourcingType`, how the document was sourced\n\nEvery document that comes back carries `sourcingType` beside `documentType`.\n\n| Value | Meaning |\n| --- | --- |\n| `STANDARD` | An ordinary document |\n| `CALL_OFF` | Drawn down against a call-off agreement |\n| `CONCRETE` | Drawn down against a concrete agreement |\n\n> **`sourcingType` replaced `callOffType`.** `callOffType` was removed on 16.09.2026 and no longer comes back on any document. If your integration reads it, read `sourcingType` instead. The older spelling `CALLOFF` is still accepted on the way in and is stored as `CALL_OFF`.\n\n> `documentType` says what kind of document it is; `sourcingType` says where it was sourced from. A `CALL_OFF` document is normally `sourcingType: CALL_OFF`, but they are two separate fields and you should read the one you actually mean.\n\n### `additionalFields` in the answer\n\nEvery document comes back with the `additionalFields` you stored on it, in the same shape you sent:\n\n| Field | Meaning |\n| --- | --- |\n| `technicalName` | The key. This is what you match on. |\n| `displayName` | The label a person sees, frozen onto this document |\n| `required` | Stored, never enforced |\n| `showOnTopPdf` | `true` prints the field in the document header |\n| `value` | The value, always text |\n\n> **Fields you never sent can appear here.** Cathago fills a document's additional fields from the settings behind it as well as from your payload, so the list that comes back may be longer than the list you sent. Match on `technicalName` and ignore what you do not recognise; never assume position.\n\n> Empty fields are left out of the answer rather than returned as `null`, so a document with no additional fields simply has no `additionalFields` key.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `400`, code `BUSINESS_DOCUMENT_1005` | `supplierAccountId` missing | Every document needs one. |\n| `400`, code `BUSINESS_DOCUMENT_1004` | `documentType` missing or misspelt | A misspelt value counts as nothing sent, so `DELIVERY_NOTE` gives this error. The value is `DELIVERY`. |\n| `500` on a call-off | `CALL_OFF` sent with no `businessDocumentStatus` | Send a status explicitly, for example `CONFIRMED`. |\n| The same document is in Cathago twice | This call always creates | Delete the extra one, and use the bulk call with `mode=ADD_OR_UPDATE` for anything you send more than once. |\n| Tax is a hundred times too small | `taxRate` sent as `0.19` | It is a percentage: send `19`. |","tags":["Business Documents"],"parameters":[{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID, in the address line. The document is filed under it, and the supplier and the construction site are looked up inside it.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"example":{"id":null,"externalId":"RE-2026-051204","projectId":"b4TqR9wX","supplierAccountId":"m2LpK7dV","documentType":"INVOICE","businessDocumentStatus":"OPEN","contractIds":[],"additionalFieldsMode":"UPDATE","additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"}],"signatures":[],"metadata":{"invoiceDate":"2026-06-30","orderDate":"2026-06-01","orderId":"C0125051366449370","notes":"Rechnung über die Teillieferung LS-2026-010233 vom 16.06.2026: 480 Steine und 90 Sack.","paymentInformation":{"currency":"EUR","paymentTime":"30 DAYS","paymentDate":"2026-07-30","skontoTime":"10 DAYS","skontoPercent":2,"earlyPaymentDate":"2026-07-10","skontoDeadline":"10.07.2026","totalSkontoAmount":48.66,"taxUnit":"PERCENT","taxRate":19,"netAmount":2433,"taxAmount":462.27,"grossAmount":2895.27,"discount":0,"discountPercentage":0}},"documentReferences":[{"referenceType":"ORDER","documentReferenceId":"C112506010841072202","externalId":"BE-2026-004822","external":false},{"referenceType":"DELIVERY","documentReferenceId":"C112506160922410502","externalId":"LS-2026-010233","external":false}],"attachments":[{"externalId":"ANH-RE-2026-051204","documentUrl":"https://erp.hoffmann-hochbau.de/belege/RE-2026-051204.pdf","documentName":"rechnung-RE-2026-051204.pdf","documentFormat":"PDF"}],"lineItems":[{"title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":480,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":1848,"taxCode":"VAT19","taxRate":19,"tax":351.12,"grossPrice":2199.12,"position":"0010","costCentre":"KST-4711","lineItemSource":"INVOICE","lineItemChannel":"API","productType":"MATERIAL"},{"title":"Mauermörtel MG IIa, 40-kg-Sack","articleNumber":"MOE-MGIIA-40","quantity":90,"quantityUnit":"Sack","unitPrice":6.5,"netPrice":585,"taxCode":"VAT19","taxRate":19,"tax":111.15,"grossPrice":696.15,"position":"0020","costCentre":"KST-4711","lineItemSource":"INVOICE","lineItemChannel":"API","productType":"MATERIAL"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"order":{"summary":"Order","value":{"id":"C112506010841072202","externalId":"BE-2026-004822","documentType":"ORDER","sourcingType":"STANDARD","documentStatus":"REQUESTED","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506010841072204","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678"},"orderDate":"2026-06-01","orderId":"C0125051366449370","notes":"Gesamtbestellung Bauabschnitt B. Abruf in Tranchen aus Rahmenvertrag RV-2026-0042.","buyer":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551020","email":"sharif.malik@cathago.de"},"paymentInformation":{"currency":"EUR","paymentTime":"30 DAYS","skontoTime":"10 DAYS","skontoPercent":2,"taxRate":19,"netAmount":6180,"taxAmount":1174.2,"grossAmount":7354.2,"totalSkontoAmount":123.6},"deliveryInformation":{"startTime":"07:00","endTime":"11:00","deliveryType":"APPOINTMENT","deliveryDate":"2026-06-16T07:00:00.000Z","deliveryLocations":[{"id":"L4kR8vTz","title":"Hauptlager Tor 3","addressDetails":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Tor 3","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}}]}},"lineItems":[{"id":"C112506010841072211","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":1200,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":4620,"taxRate":19,"tax":877.8,"grossPrice":5497.8,"position":"0010","costCentre":"KST-4711","lineItemStatus":"REQUESTED","lineItemType":"ORDER","lineItemSource":"ORDER","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506010841072202","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"},{"id":"C112506010841072212","title":"Mauermörtel MG IIa, 40-kg-Sack","articleNumber":"MOE-MGIIA-40","quantity":240,"quantityUnit":"Sack","unitPrice":6.5,"netPrice":1560,"taxRate":19,"tax":296.4,"grossPrice":1856.4,"position":"0020","costCentre":"KST-4711","lineItemStatus":"REQUESTED","lineItemType":"ORDER","lineItemSource":"ORDER","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506010841072202","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-01T08:41:07.222Z","lastModifiedAt":"2026-06-01T08:41:07.222Z"}},"call-off":{"summary":"Call-off","value":{"id":"C112506050915330402","externalId":"AB-2026-000318","documentType":"CALL_OFF","sourcingType":"CALL_OFF","documentStatus":"CONFIRMED","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506050915330404","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678"},"orderDate":"2026-06-05","orderId":"C0125051366449370","notes":"Abruf 1 von 3 aus Rahmenvertrag RV-2026-0042 zur Bestellung BE-2026-004822.","buyer":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551020","email":"sharif.malik@cathago.de"},"paymentInformation":{"currency":"EUR","taxRate":19,"netAmount":2472,"taxAmount":469.68,"grossAmount":2941.68},"deliveryInformation":{"startTime":"07:00","endTime":"11:00","deliveryType":"APPOINTMENT","deliveryDate":"2026-06-16T07:00:00.000Z"}},"documentReferences":[{"id":"R112506050915330421","referenceType":"CONTRACT","documentReferenceId":"K8mQ3vRt","externalId":"RV-2026-0042","external":false,"referencedResolved":true,"referencedStatus":"ACTIVE","referencedDocumentType":"CONTRACT","referencedExternalId":"RV-2026-0042","referencedDate":"2026-01-15T00:00:00.000Z","referencedChannelType":"APP"},{"id":"R112506050915330422","referenceType":"ORDER","documentReferenceId":"C112506010841072202","externalId":"BE-2026-004822","external":false,"referencedResolved":true,"referencedStatus":"REQUESTED","referencedDocumentType":"ORDER","referencedExternalId":"BE-2026-004822","referencedDate":"2026-06-01T00:00:00.000Z","referencedChannelType":"API"}],"lineItems":[{"id":"C112506050915330411","callOffLineItemId":"AB-2026-000318-0010","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":480,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":1848,"taxRate":19,"tax":351.12,"grossPrice":2199.12,"position":"0010","costCentre":"KST-4711","lineItemStatus":"CONFIRMED","lineItemType":"CALL_OFF","lineItemSource":"ORDER","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506050915330402","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"},{"id":"C112506050915330412","callOffLineItemId":"AB-2026-000318-0020","title":"Mauermörtel MG IIa, 40-kg-Sack","articleNumber":"MOE-MGIIA-40","quantity":96,"quantityUnit":"Sack","unitPrice":6.5,"netPrice":624,"taxRate":19,"tax":118.56,"grossPrice":742.56,"position":"0020","costCentre":"KST-4711","lineItemStatus":"CONFIRMED","lineItemType":"CALL_OFF","lineItemSource":"ORDER","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506050915330402","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-05T09:15:33.040Z","lastModifiedAt":"2026-06-05T09:15:33.040Z"}},"delivery-note":{"summary":"Delivery note","value":{"id":"C112506160922410502","externalId":"LS-2026-010233","documentType":"DELIVERY","sourcingType":"STANDARD","documentStatus":"PARTIALLY_DELIVERED","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506160922410504","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678"},"orderId":"C0125051366449370","notes":"Teillieferung zu Abruf AB-2026-000318. 6 Sack Mörtel fehlen, Rest folgt.","receiver":{"fullName":"Anja Krause","contactNumber":"+49 341 5551044","email":"anja.krause@cathago.de"},"deliveryInformation":{"startTime":"07:30","endTime":"09:10","deliveryType":"STANDARD","deliveryId":"LF-2026-88231","trackingId":"SPED-2026-88231","totalWeight":15600,"totalWeightUnit":"KG","deliveryDate":"2026-06-16T07:30:00.000Z","deliveryEndDate":"2026-06-16T09:10:00.000Z","eDeliveryNote":true,"deliveryLocations":[{"id":"L4kR8vTz","title":"Hauptlager Tor 3","addressDetails":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Tor 3","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}}]}},"documentReferences":[{"id":"R112506160922410521","referenceType":"ORDER","documentReferenceId":"C112506010841072202","externalId":"BE-2026-004822","external":false,"referencedResolved":true,"referencedStatus":"REQUESTED","referencedDocumentType":"ORDER","referencedExternalId":"BE-2026-004822","referencedDate":"2026-06-01T00:00:00.000Z","referencedChannelType":"API"},{"id":"R112506160922410522","referenceType":"CALL_OFF","documentReferenceId":"C112506050915330402","externalId":"AB-2026-000318","external":false,"referencedResolved":true,"referencedStatus":"CONFIRMED","referencedDocumentType":"CALL_OFF","referencedExternalId":"AB-2026-000318","referencedDate":"2026-06-05T00:00:00.000Z","referencedChannelType":"API"}],"signatures":[{"id":"S112506160922410531","receivingPerson":"Anja Krause","emailAddress":"anja.krause@cathago.de","ipAddress":"203.0.113.45","attachmentOutDto":{"id":"A112506160922410532","externalId":"SIG-LS-2026-010233","url":"https://erp.hoffmann-hochbau.de/unterschriften/LS-2026-010233.png","fileName":"unterschrift-LS-2026-010233.png","attachmentType":"SIGNATURE","channel":"API","createdAt":"2026-06-16T09:22:41.050Z"},"createdAt":"2026-06-16T09:10:12.418Z"}],"lineItems":[{"id":"C112506160922410511","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":480,"shipmentQuantity":480,"quantityUnit":"Stück","position":"0010","costCentre":"KST-4711","lineItemStatus":"DELIVERED","lineItemType":"DELIVERY","lineItemSource":"DELIVERY_NOTE","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506160922410502","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"},{"id":"C112506160922410512","title":"Mauermörtel MG IIa, 40-kg-Sack","articleNumber":"MOE-MGIIA-40","quantity":96,"shipmentQuantity":90,"quantityUnit":"Sack","position":"0020","costCentre":"KST-4711","lineItemStatus":"PARTIALLY_DELIVERED","lineItemType":"DELIVERY","lineItemSource":"DELIVERY_NOTE","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506160922410502","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-16T09:22:41.050Z","lastModifiedAt":"2026-06-16T09:22:41.050Z"}},"return-delivery-note":{"summary":"Return delivery note","value":{"id":"C112506181035180602","externalId":"RLS-2026-000147","documentType":"RETURN_DELIVERY_NOTE","sourcingType":"STANDARD","documentStatus":"RECLAIM","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506181035180604","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678"},"orderId":"C0125051366449370","notes":"20 Steine beim Abladen gebrochen, Rückgabe an Lieferfahrzeug am 18.06.2026.","receiver":{"fullName":"Marco Weber","contactNumber":"+49 341 5559086","email":"marco.weber@weber-sohn.de"},"deliveryInformation":{"startTime":"13:00","endTime":"13:40","deliveryType":"STANDARD","deliveryId":"RLF-2026-88407","totalWeight":500,"totalWeightUnit":"KG","deliveryDate":"2026-06-18T13:00:00.000Z","deliveryEndDate":"2026-06-18T13:40:00.000Z","eDeliveryNote":true}},"documentReferences":[{"id":"R112506181035180621","referenceType":"DELIVERY","documentReferenceId":"C112506160922410502","externalId":"LS-2026-010233","external":false,"referencedResolved":true,"referencedStatus":"PARTIALLY_DELIVERED","referencedDocumentType":"DELIVERY","referencedExternalId":"LS-2026-010233","referencedDate":"2026-06-16T07:30:00.000Z","referencedChannelType":"API"}],"lineItems":[{"id":"C112506181035180611","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":20,"shipmentQuantity":20,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":77,"taxRate":19,"tax":14.63,"grossPrice":91.63,"position":"0010","costCentre":"KST-4711","lineItemStatus":"RECLAIM","lineItemType":"RETURN_DELIVERY_NOTE","lineItemSource":"RETURN_DELIVERY_NOTE","productType":"MATERIAL","reclaim":{"description":"20 Steine beim Abladen der Teillieferung LS-2026-010233 gebrochen.","reclaimType":"DAMAGED","quantity":20},"supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506181035180602","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-18T10:35:18.060Z","lastModifiedAt":"2026-06-18T10:35:18.060Z"}},"invoice":{"summary":"Invoice","value":{"id":"C112506301407520702","externalId":"RE-2026-051204","documentType":"INVOICE","sourcingType":"STANDARD","documentStatus":"OPEN","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506301407520704","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678"},"invoiceDate":"2026-06-30T00:00:00.000Z","orderDate":"2026-06-01","orderId":"C0125051366449370","notes":"Rechnung über die Teillieferung LS-2026-010233 vom 16.06.2026: 480 Steine und 90 Sack.","paymentInformation":{"currency":"EUR","paymentTime":"30 DAYS","paymentDate":"2026-07-30T00:00:00.000Z","skontoTime":"10 DAYS","skontoPercent":2,"earlyPaymentDate":"2026-07-10T00:00:00.000Z","skontoDeadline":"10.07.2026","totalSkontoAmount":48.66,"taxUnit":"PERCENT","taxRate":19,"netAmount":2433,"taxAmount":462.27,"grossAmount":2895.27,"discount":0,"discountPercentage":0}},"attachedFiles":[{"id":"A112506301407520731","externalId":"ANH-RE-2026-051204","documentId":"C0625063014075207","url":"https://erp.hoffmann-hochbau.de/belege/RE-2026-051204.pdf","fileName":"rechnung-RE-2026-051204.pdf","createdAt":"2026-06-30T14:07:52.070Z"}],"documentReferences":[{"id":"R112506301407520721","referenceType":"ORDER","documentReferenceId":"C112506010841072202","externalId":"BE-2026-004822","external":false,"referencedResolved":true,"referencedStatus":"REQUESTED","referencedDocumentType":"ORDER","referencedExternalId":"BE-2026-004822","referencedDate":"2026-06-01T00:00:00.000Z","referencedChannelType":"API"},{"id":"R112506301407520722","referenceType":"DELIVERY","documentReferenceId":"C112506160922410502","externalId":"LS-2026-010233","external":false,"referencedResolved":true,"referencedStatus":"PARTIALLY_DELIVERED","referencedDocumentType":"DELIVERY","referencedExternalId":"LS-2026-010233","referencedDate":"2026-06-16T07:30:00.000Z","referencedChannelType":"API"}],"lineItems":[{"id":"C112506301407520711","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":480,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":1848,"taxCode":"VAT19","taxRate":19,"tax":351.12,"grossPrice":2199.12,"position":"0010","costCentre":"KST-4711","lineItemStatus":"OPEN","lineItemType":"INVOICE","lineItemSource":"INVOICE","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506301407520702","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"},{"id":"C112506301407520712","title":"Mauermörtel MG IIa, 40-kg-Sack","articleNumber":"MOE-MGIIA-40","quantity":90,"quantityUnit":"Sack","unitPrice":6.5,"netPrice":585,"taxCode":"VAT19","taxRate":19,"tax":111.15,"grossPrice":696.15,"position":"0020","costCentre":"KST-4711","lineItemStatus":"OPEN","lineItemType":"INVOICE","lineItemSource":"INVOICE","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506301407520702","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-30T14:07:52.070Z","lastModifiedAt":"2026-06-30T14:07:52.070Z"}},"credit-note":{"summary":"Credit note","value":{"id":"C112507060948260802","externalId":"GS-2026-000412","documentType":"CREDIT_NOTE","sourcingType":"STANDARD","documentStatus":"OPEN","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112507060948260804","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678"},"invoiceDate":"2026-07-06T00:00:00.000Z","orderId":"C0125051366449370","notes":"Gutschrift für die 20 gebrochenen Steine aus Retoure RLS-2026-000147 zur Rechnung RE-2026-051204.","paymentInformation":{"currency":"EUR","taxRate":19,"netAmount":-77,"taxAmount":-14.63,"grossAmount":-91.63}},"documentReferences":[{"id":"R112507060948260821","referenceType":"INVOICE","documentReferenceId":"C112506301407520702","externalId":"RE-2026-051204","external":false,"referencedResolved":true,"referencedStatus":"OPEN","referencedDocumentType":"INVOICE","referencedExternalId":"RE-2026-051204","referencedDate":"2026-06-30T00:00:00.000Z","referencedChannelType":"API"},{"id":"R112507060948260822","referenceType":"RETURN_DELIVERY_NOTE","documentReferenceId":"C112506181035180602","externalId":"RLS-2026-000147","external":false,"referencedResolved":true,"referencedStatus":"RECLAIM","referencedDocumentType":"RETURN_DELIVERY_NOTE","referencedExternalId":"RLS-2026-000147","referencedDate":"2026-06-18T13:00:00.000Z","referencedChannelType":"API"}],"lineItems":[{"id":"C112507060948260811","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":-20,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":-77,"taxCode":"VAT19","taxRate":19,"tax":-14.63,"grossPrice":-91.63,"position":"0010","costCentre":"KST-4711","lineItemStatus":"OPEN","lineItemType":"CREDIT_NOTE","lineItemSource":"CREDIT_NOTE","productType":"MATERIAL","reclaim":{"description":"20 Steine beim Abladen gebrochen, zurückgegeben mit RLS-2026-000147.","reclaimType":"DAMAGED","quantity":20},"supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112507060948260802","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-07-06T09:48:26.080Z","lastModifiedAt":"2026-07-06T09:48:26.080Z"}}}}}}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/documents/{documentId}":{"delete":{"operationId":"deleteABusinessDocument","summary":"Delete a business document","description":"### What this call does\n\nPermanently deletes one business document, an order, delivery note, invoice or credit note, together with everything hanging off it.\n\n*Last updated: 15.05.2026*\n\n> **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.\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- The `documentId` from **Search business documents**. Never delete an ID you guessed.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `documentId` | **Yes** | none | In the path after `/documents/`. The Cathago ID of the document. |\n| `companyAccountId` | **Yes** | none | Your company ID, in the address line. |\n\n> 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.\n\n### The fields\n\nThis call has no data packet. Do not send one.\n\n### What you get back\n\n`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.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `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\". |\n| `401 Unauthorized` | Key missing, wrong, or not entitled to that `companyAccountId` | Check the key and the company. |\n| The line items are gone too | The delete takes everything on the document with it | Expected. There is no way to keep them. |\n| 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. |","tags":["Business Documents"],"parameters":[{"name":"documentId","in":"path","required":true,"description":"In the path after /documents/. The Cathago ID of the document.","schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID, in the address line.","schema":{"type":"string"}}],"responses":{"default":{"description":"No example response is published for this call."}}},"put":{"operationId":"updateOneBusinessDocument","summary":"Update one business document","description":"### What this call does\n\nChanges one business document that already exists, an order, delivery note, invoice or credit note, named by its Cathago ID in the address.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- The `documentId`, the `id` field from **Search business documents**.\n- The `supplierAccountId` and the `documentType`: **both are required on an update too**.\n- For every line item you want to change or remove: its Cathago `id`, from the same search call.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `documentId` | **Yes** | none | In the path after `/documents/`. The Cathago ID of the document. |\n| `companyAccountId` | **Yes** | none | Your company ID, in the address line. It is used to look up the supplier and the project, so a wrong one changes what the document points at. |\n\n### What an update leaves alone, and what it adds to\n\nThis is not a replace:\n\n| What you send | What happens |\n| --- | --- |\n| A field with a value | Overwrites the stored value. |\n| A field left out entirely | Left untouched. |\n| `attachments` | **Added** to the files already there. Nothing is removed. |\n| `signatures` | **Added**, with no duplicate check, send the same one twice and it is stored twice. |\n| `documentReferences` | **Added**; an identical link is not stored twice, and a link to this same document is dropped. |\n| `additionalFields` | Merged according to `additionalFieldsMode`. Left out, the stored list is untouched. |\n| `lineItems` | Each entry acts on its own `updateMode`: `ADD` creates, `UPDATE` changes the line named by `id`, `DELETE` removes it. Lines you do not mention are untouched. |\n\nTo remove a file, use **Remove files from a business document**. A signature or a reference cannot be removed through this call.\n\n### The fields\n\nThe data packet is a **single business document object**, not a list.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `id` | text | No | (none) | Cathago ID. The ID in the address is what decides which document is changed. |\n| `externalId` | text | No | (none) | Your own number. Overwrites what is stored. |\n| `projectId` | text | No | (none) | The construction site. A different one moves the document, tenant company included. An unknown one makes the call return nothing at all. |\n| `supplierAccountId` | text | **Yes** | none | The supplier account, already connected to your company. Missing → `400`, code `BUSINESS_DOCUMENT_1005`. |\n| `documentType` | choice | **Yes** | none | `ORDER`, `CALL_OFF`, `DELIVERY`, `RETURN_DELIVERY_NOTE`, `INVOICE`, `CREDIT_NOTE`. Missing **or misspelt** → `400`, code `BUSINESS_DOCUMENT_1004`. |\n| `businessDocumentStatus` | choice | No | derived from `documentType` | `OPEN`, `ASKED_FOR_CHANGE`, `IN_APPROVAL`, `REQUESTED`, `CONFIRMED`, `PROCESS_VERIFICATION`, `DECLINED`, `VERIFIED`, `VERIFICATION_FAILED`, `APPROVED`, `DELAYED`, `PARTIALLY_DELIVERED`, `DELIVERED`, `RECLAIM`, `MATCHED`, `REJECTED`. Left out, an `ORDER` becomes `REQUESTED` and an `INVOICE`, `DELIVERY`, `RETURN_DELIVERY_NOTE` or `CREDIT_NOTE` becomes `OPEN`; a `CALL_OFF` fails with `500`. |\n| `metadata` | object | No | (none) | Dates, payment, delivery, buyer, receiver, notes. |\n| `additionalFields` | list | No | `[]` | Your own extra fields. |\n| `additionalFieldsMode` | choice | No | `ADD` | `ADD`, `UPDATE`, `DELETE`, `REPLACE`. |\n| `attachments` | list | No | `[]` | Files, **added** to those already there. |\n| `documentReferences` | list | No | `[]` | Links to other documents, **added**. |\n| `signatures` | list | No | `[]` | Who signed, **added**. |\n| `lineItems` | list | No | `[]` | The line items. |\n\nThe blocks inside the document object hold exactly the fields they hold in **Create or update business documents (bulk)**, where each one is explained in full. Everything in them is optional:\n\n- **`metadata`**none`orderDate` (`YYYY-MM-DD`), `orderConfirmationDate`, `invoiceDate`, `notes`, `orderId`, `signatureDetected`, `buyer` and `receiver` (each `id`, `fullName`, `contactNumber`, `email`), `paymentInformation`, `deliveryInformation`. Never send `supplierAccount` or `company`, Cathago overwrites both.\n- **`metadata.paymentInformation`**none`currency`, `paymentTime`, `taxUnit`, `skontoTime`, `skontoDeadline` (text, never read as a date), `paymentDate` (the due date), `earlyPaymentDate`, `taxAmount`, `discount`, `netAmount`, `grossAmount`, `totalSkontoAmount`, `skontoPercent`, `discountPercentage`, and `taxRate`none**a percentage, not a fraction: `19` means 19 %**, and it defaults to `19.0`.\n- **`metadata.deliveryInformation`**none`deliveryDate`, `deliveryEndDate`, `startTime` and `endTime` (exactly `HH:mm`), `deliveryType` (free text; Cathago knows `STANDARD`, `EXPRESS`, `IMMEDIATE`, `APPOINTMENT`, `CLICK_AND_COLLECT`, `CUSTOM`), `trackingId`, `deliveryId`, `totalWeight`, `totalWeightUnit`, `eDeliveryNote`, `deliveryLocations` (`id`, `title`, and `addressDetails`: `addressLineOne`, `addressLineTwo`, `city`, `country`, `zipcode`, `mapLink`, `region`, `comments`).\n- **`additionalFields`**none`technicalName` (the key; a blank one is skipped without a word), `displayName`, `required`, `value`. `additionalFieldsMode`: `ADD` (default) keeps the stored entry and ignores yours, `UPDATE` overwrites it, `DELETE` removes it, `REPLACE` discards the whole stored list.\n- **`attachments`**none`documentUrl` (fetchable without a login) **or** `fileInBytes` (Base64), plus `documentName`, `documentFormat` (`PDF`, `DOC`, `DOCX`, `JPEG`, `JPG`, `PNG`, `CSV`, `XLSX`, `XLS`, `XML`, `JSON`, `DAT`, `WDA`) and `externalId`. Both → `fileInBytes` wins; **neither → the entry is dropped in silence.**\n- **`documentReferences`**none`referenceType` (`ORDER`, `CALL_OFF`, `DELIVERY`, `RETURN_DELIVERY_NOTE`, `INVOICE`, `CREDIT_NOTE`, `PRICELIST`, `CONTRACT`, `OTHER`), `documentReferenceId`, `externalId`, `customType`, `external` (default `false`). The answer adds `referencedStatus`, `referencedDate`, `referencedChannelType`, `referencedExternalId`, `referencedDocumentType`, `referencedResolved` and `referencedSigned`.\n- **`signatures`**none`receivingPerson`, `emailAddress`, `ipAddress`, `attachmentInDto` (`externalId`, `documentId`, `source`, `url`, `fileName`, `attachmentType`, `extractedData`, `referenceIncomingFileId`).\n- **`lineItems`**none`updateMode` (default `ADD`; `UPDATE` and `DELETE` need the line's `id` from the search call, `REPLACE` fails with `500`), `position`, `taxRate` (**a percentage**), `lineItemStatus` (default: the document's status, `OPEN`, `MATCHED`, `VERIFICATION_FAILED`, `VERIFIED`, `REJECTED`, `DELAYED`, `PARTIALLY_DELIVERED`, `DELIVERED`, `RECLAIM`, `DRAFT`, `IN_APPROVAL`, `REQUESTED`, `ASKED_FOR_CHANGE`, `CONFIRMED`, `PROCESS_VERIFICATION`, `PROCESSING_VERIFICATION`, `DECLINED`, `APPROVED`), `lineItemType` (**always overwritten** with `documentType`, do not send it), `lineItemChannel` (default `API`; `APP`, `EMAIL`, `EDI`, `API`, `NEVARIS`, `IN_APP`), `lineItemSource` (`ORDER`, `ORDER_CONFIRMATION`, `DELIVERY_NOTE`, `SIGNED_DELIVERY_NOTE`, `RETURN_DELIVERY_NOTE`, `RECEIVED_GOODS`, `INVOICE`, `CREDIT_NOTE`), `productType` (`MATERIAL`, `SERVICE`, `DEPOSIT_GOODS`), `depositGoodType` (`PALLETS`, `BOXES`, `LOOPS`, `BAGS`, `OTHERS`), `automationStatus` (`PROCESS_VERIFICATION`, `VERIFIED`, `VERIFICATION_FAILED`, `MATCHED`), `reclaim` (`description`, `reclaimType`, `quantity`), and the plain fields `title`, `articleNumber`, `ean`, `description`, `type`, `productId`, `taxCode`, `notes`, `comment`, `costCentre`, `documentUrl`, `imageUrl`, `quantityUnit`, `billingQuantityUnit`, `billingPriceUnit`, `quantity`, `billingQuantity`, `shipmentQuantity`, `unitPrice`, `productNetPrice`, `netPrice`, `billingPrice`, `grossPrice`, `tax`, `additionalCharges`, `additionalChargesInPercent`, `discountGrossAmount`, `discountPercent`, `productAttributes`, `itemAttributes`. Prices are **stored exactly as you send them; nothing is recalculated**.\n\n**Dates and times.** `orderConfirmationDate`, `invoiceDate`, `paymentDate`, `earlyPaymentDate`, `deliveryDate` and `deliveryEndDate` accept six shapes: `2026-05-11T07:30:00.000Z` · `2026-05-11T07:30:00` · `2026-05-11 07:30:00` · `2026-05-11T07:30` · `2026-05-11` · `11.05.2026`. `orderDate` takes `YYYY-MM-DD`; `startTime` and `endTime` take `HH:mm`. **A date Cathago cannot read becomes empty rather than an error**, so check the answer for the date you sent.\n\n### What you get back\n\n`200 OK` with the saved document, in the same shape as one entry of `data` in **Search business documents**: `id`, `externalId`, `documentType`, `documentStatus`, `customer`, `project`, `metadata`, `additionalFields`, `attachedFiles`, `documentReferences`, `lineItems`, `signatures`, `connectedDocuments`, `createdBy`, `createdAt`, `lastModifiedAt`. Anything empty is left out.\n\n`lineItems` shows the lines as they now stand, each with its Cathago `id`. A line removed with `updateMode: \"DELETE\"` is no longer in the list.\n\n> **Changing the status sends a notification.** A `businessDocumentStatus` different from the stored one tells the rest of Cathago that the document has moved on. Setting the same one again sends nothing.\n\n### `sourcingType`, how the document was sourced\n\nEvery document that comes back carries `sourcingType` beside `documentType`.\n\n| Value | Meaning |\n| --- | --- |\n| `STANDARD` | An ordinary document |\n| `CALL_OFF` | Drawn down against a call-off agreement |\n| `CONCRETE` | Drawn down against a concrete agreement |\n\n> **`sourcingType` replaced `callOffType`.** `callOffType` was removed on 16.09.2026 and no longer comes back on any document. If your integration reads it, read `sourcingType` instead. The older spelling `CALLOFF` is still accepted on the way in and is stored as `CALL_OFF`.\n\n> `documentType` says what kind of document it is; `sourcingType` says where it was sourced from. A `CALL_OFF` document is normally `sourcingType: CALL_OFF`, but they are two separate fields and you should read the one you actually mean.\n\n### `additionalFields` in the answer\n\nEvery document comes back with the `additionalFields` you stored on it, in the same shape you sent:\n\n| Field | Meaning |\n| --- | --- |\n| `technicalName` | The key. This is what you match on. |\n| `displayName` | The label a person sees, frozen onto this document |\n| `required` | Stored, never enforced |\n| `showOnTopPdf` | `true` prints the field in the document header |\n| `value` | The value, always text |\n\n> **Fields you never sent can appear here.** Cathago fills a document's additional fields from the settings behind it as well as from your payload, so the list that comes back may be longer than the list you sent. Match on `technicalName` and ignore what you do not recognise; never assume position.\n\n> Empty fields are left out of the answer rather than returned as `null`, so a document with no additional fields simply has no `additionalFields` key.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `404 Not Found` | The `documentId` in the path does not exist | Fetch it with **Search business documents**. |\n| `400`, code `BUSINESS_DOCUMENT_1005` | `supplierAccountId` left out because \"it is only an update\" | It is required on updates too. |\n| `400`, code `BUSINESS_DOCUMENT_1004` | `documentType` left out or misspelt | Required on updates too. A misspelt value counts as left out. |\n| A line item was duplicated instead of changed, or was not removed | `updateMode` was left out, so `ADD` applied, or the line's `id` was missing | `UPDATE` and `DELETE` both need `updateMode` **and** the line's Cathago `id`. |\n| Files piled up | `attachments` sent again on every update | They are added, never replaced. Send them once. |\n| A field you sent is missing from the answer | The name is misspelt, and unknown names are dropped without a word | Copy the names from the tables above. |\n| `additionalFields` did not change | `additionalFieldsMode` was left at its default `ADD` | Send `additionalFieldsMode: \"UPDATE\"` to overwrite by `technicalName`. |\n| Tax is a hundred times too small | `taxRate` sent as `0.19` | It is a percentage: send `19`. |","tags":["Business Documents"],"parameters":[{"name":"documentId","in":"path","required":true,"description":"In the path after /documents/. The Cathago ID of the document.","schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID, in the address line. It is used to look up the supplier and the project, so a wrong one changes what the document points at.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"example":{"externalId":"RE-2026-018223","projectId":"b4TqR9wX","supplierAccountId":"m2LpK7dV","documentType":"INVOICE","contractIds":[],"businessDocumentStatus":"IN_APPROVAL","metadata":{"orderDate":"2026-05-04","orderConfirmationDate":"2026-05-05 09:15:00","invoiceDate":"12.05.2026","notes":"Korrigierte Rechnung: Position 0020 storniert, Menge Position 0010 auf 26 m³ erhöht.","orderId":"C0125051366449370","signatureDetected":true,"buyer":{"id":"u9XmT3bF","fullName":"Sharif Malik","contactNumber":"+49 341 5551020","email":"sharif.malik@cathago.de"},"receiver":{"id":"u2FbQ8rM","fullName":"Anja Krause","contactNumber":"+49 341 5551044","email":"anja.krause@cathago.de"},"paymentInformation":{"paymentTime":"30 DAYS","currency":"EUR","taxUnit":"PERCENT","skontoTime":"10 DAYS","skontoDeadline":"2026-05-22","paymentDate":"2026-06-11 00:00:00","earlyPaymentDate":"2026-05-22 00:00:00","skontoPercent":2,"taxRate":19,"taxAmount":585.39,"discount":0,"netAmount":3081,"grossAmount":3666.39,"totalSkontoAmount":61.62,"discountPercentage":0},"deliveryInformation":{"startTime":"07:00","endTime":"11:00","trackingId":"SPED-2026-88231","deliveryId":"LF-2026-88231","deliveryType":"STANDARD","totalWeightUnit":"KG","totalWeight":62400,"deliveryDate":"2026-05-11 07:30:00","deliveryEndDate":"2026-05-11 11:00:00","eDeliveryNote":true,"deliveryLocations":[{"id":"L4kR8vTz","title":"Hauptlager Tor 3","addressDetails":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Tor 3","city":"Leipzig","country":"Deutschland","zipcode":"04103","mapLink":"https://maps.example.com/?q=Ottostrasse+14+Leipzig","region":"Sachsen","comments":"Zufahrt nur über die Ottostraße."}}]}},"additionalFields":[{"technicalName":"standard__customer_number","displayName":"Kundennummer","required":true,"value":"K-90231"},{"technicalName":"pruefvermerk","displayName":"Prüfvermerk","required":false,"value":"sachlich richtig, A. Krause, 13.05.2026"}],"additionalFieldsMode":"UPDATE","attachments":[{"externalId":"ANH-2026-018223-1","documentUrl":"https://erp.weber-bau.de/belege/RE-2026-018223.pdf","documentName":"rechnung-RE-2026-018223.pdf","documentFormat":"PDF"}],"documentReferences":[{"referenceType":"ORDER","documentReferenceId":"C112505041037112202","externalId":"BE-2026-004711","customType":"Bestellung aus dem ERP","external":false}],"signatures":[{"receivingPerson":"Anja Krause","emailAddress":"anja.krause@cathago.de","ipAddress":"203.0.113.45","attachmentInDto":{"externalId":"SIG-2026-018223-1","documentId":"C0625051306691163","source":"site-tablet","url":"https://erp.weber-bau.de/unterschriften/LS-2026-009914.png","fileName":"unterschrift-LS-2026-009914.png","attachmentType":"SIGNATURE","extractedData":"Anja Krause, 11.05.2026 07:45","referenceIncomingFileId":"IF-2026-77120"}}],"lineItems":[{"updateMode":"UPDATE","id":"C092501271727426247","title":"Transportbeton C25/30 XC1 F3","articleNumber":"TB-C2530-XC1-F3","ean":"4048962011234","description":"Transportbeton C25/30, Expositionsklasse XC1, Konsistenz F3, Größtkorn 16 mm.","type":"MATERIAL","productId":"P3nQ7wLc","productAttributes":{"hersteller":"Heidelberg Materials","festigkeitsklasse":"C25/30"},"itemAttributes":{"einbauort":"Bodenplatte Haus B"},"quantity":26,"billingQuantity":26,"shipmentQuantity":26,"quantityUnit":"m³","billingQuantityUnit":"m³","billingPriceUnit":"m³","unitPrice":118.5,"productNetPrice":118.5,"netPrice":3081,"billingPrice":3081,"grossPrice":3666.39,"additionalCharges":0,"additionalChargesInPercent":0,"discountGrossAmount":0,"discountPercent":0,"taxCode":"VAT19","taxRate":19,"tax":585.39,"position":"0010","notes":"Menge nach Aufmaß korrigiert.","comment":"Freigabe Bauleitung 13.05.2026.","documentUrl":"https://erp.weber-bau.de/datenblaetter/TB-C2530.pdf","imageUrl":"https://erp.weber-bau.de/bilder/TB-C2530.jpg","costCentre":"KST-4711","lineItemStatus":"DELIVERED","lineItemSource":"ORDER","lineItemChannel":"API","productType":"MATERIAL","depositGoodType":"PALLETS","automationStatus":"VERIFIED","reclaim":{"description":"Erste Fuhre 30 Minuten zu spät, keine Mängel an der Ware.","reclaimType":"LATE_DELIVERY","quantity":1}},{"updateMode":"DELETE","id":"C092501271727426301"}]}}}},"responses":{"default":{"description":"No example response is published for this call."}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/documents/{documentId}/attachments":{"post":{"operationId":"attachFilesToABusinessDocument","summary":"Attach files to a business document","description":"### What this call does\n\nAttaches one or more files to a business document that already exists, the signed delivery note as a PDF, a photo of damaged goods, the scanned invoice.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- The `businessDocumentId`, the `id` field from **Search business documents**.\n- Per file either an address Cathago can fetch (`documentUrl`) **or** the file itself (`fileInBytes`).\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `businessDocumentId` | **Yes** | none | In the path after `/documents/`. The Cathago ID of the document. |\n| `companyAccountId` | **Yes** | none | Your company ID, in the address line. |\n\n### The fields\n\nThe data packet is a **list**; each entry is one file. The example shows both ways: once through an address, once with the file itself.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `documentUrl` | text | One of the two | (none) | An address Cathago can fetch **without logging in**. A link inside your own network will not work. |\n| `fileInBytes` | text | One of the two | (none) | The file itself, as a Base64 string. |\n| `documentName` | text | No | (none) | File name with extension. |\n| `documentFormat` | choice | No | (none) | `PDF`, `DOC`, `DOCX`, `JPEG`, `JPG`, `PNG`, `CSV`, `XLSX`, `XLS`, `XML`, `JSON`, `DAT`, `WDA`. |\n| `externalId` | text | No | (none) | Your own number for this file, handed straight back. |\n\n> Send both and `fileInBytes` wins. **Send neither and the entry is dropped in silence:** the call returns `200` and the file never appears. There is no `attachmentType` field to send.\n\n### What you get back\n\n`200 OK` with the document's **whole** file list, not just the files you added, pick out your new ones by `externalId`. Each entry carries `id`, `externalId`, `documentId`, `url`, `fileName`, `attachmentType`, `createdAt` and `lastModifiedAt`. Anything empty is left out.\n\n> **`id` is the attachment's Cathago ID and the only value Remove files from a business document accepts**, not `externalId` (your own number), not `documentId` (the file's ID in the file store). `url` is where the file now lives; `attachmentType` is set by Cathago, with values such as `PDF`, `INVOICE` and `ORDER_DELIVERY_NOTE`.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `404 Not Found` | The `businessDocumentId` does not exist | Fetch the ID with **Search business documents**. |\n| `401 Unauthorized` | Key missing, wrong, or not entitled to that `companyAccountId` | Check the key and the company. |\n| `200 OK` but the file is not in the list | The entry had neither `documentUrl` nor `fileInBytes` | Send one of the two. |\n| The file never arrives from `documentUrl` | The address needs a login, or is only reachable inside your network | Open it in a private browser window with no session. If it does not open there, Cathago cannot fetch it either. |\n| The delete call does not find the attachment | The `documentId` or the `externalId` was used instead of `id` | Only `id` identifies an attachment for deletion. |\n| The same file is attached twice | Nothing checks `externalId` for uniqueness | Check `attachedFiles` before re-sending. |\n\n### What we could not confirm\n\n- The largest file `fileInBytes` will carry. Nothing here caps it, so a very large file can still be refused for its size. Serving big files through `documentUrl` avoids the question.","tags":["Business Documents"],"parameters":[{"name":"documentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID, in the address line.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array"},"example":[{"externalId":"ANH-2026-018223-3","documentUrl":"https://erp.weber-bau.de/belege/lieferschein-LS-2026-009914.pdf","documentName":"lieferschein-LS-2026-009914.pdf","documentFormat":"PDF"},{"externalId":"ANH-2026-018223-4","fileInBytes":"/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQ==","documentName":"schadensfoto-matte-01.jpg","documentFormat":"JPG"}]}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"add-files-in-document":{"summary":"Add files in document","value":[{"externalId":"<string>","documentId":"<string>","url":"<string>","fileName":"<string>","attachmentType":"<string>","id":"<string>","createdAt":"<2025-12-02T04:56:10.270Z>","lastModifiedAt":"<2025-12-02T04:56:10.270Z>"}]}}}}}}},"delete":{"operationId":"removeFilesFromABusinessDocument","summary":"Remove files from a business document","description":"### What this call does\n\nRemoves one or more files from a business document, an order, delivery note or invoice. The document itself stays.\n\n*Last updated: 15.05.2026*\n\n> **Careful, the file is deleted, not just unlinked.** It is taken off the document *and* removed from Cathago's file store. There is no restore. Download anything you might still need first.\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- The `businessDocumentId`, from **Search business documents**.\n- The attachment `id` values, the `id` of each entry under `attachedFiles` in **Search business documents**, or the `id` in the answer of **Attach files to a business document**.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `businessDocumentId` | **Yes** | none | In the path after `/documents/`. The Cathago ID of the document. |\n| `companyAccountId` | **Yes** | none | Your company ID, in the address line. |\n\n### The fields\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `attachmentIds` | list of text | **Yes** | none | The `id` values of the attachments to remove. One or more. |\n\n> **It must be `id`**, not the `externalId` (your own number) and not the `documentId` (the file's ID in the file store). An ID that does not belong to this document is skipped without a word. Leaving `attachmentIds` out on a document that has attachments fails with `500 Internal Server Error`.\n\n### What you get back\n\n`204 No Content`, an empty answer with no text at all. If you see nothing, the call went through. It does not say how many attachments were removed; to check, call **Search business documents** with this document's ID in `ids` and read `attachedFiles`.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `404 Not Found` | The `businessDocumentId` does not exist | Fetch the ID with **Search business documents**. |\n| `401 Unauthorized` | Key missing, wrong, or not entitled to that `companyAccountId` | Check the key and the company. |\n| `500 Internal Server Error` | `attachmentIds` missing on a document that has files | The field is required. Send at least one ID. |\n| `204` but the attachment is still there | The IDs were `externalId` or `documentId` values, or belong to another document | Read the `id` values out of `attachedFiles` for this document. |\n| The file is gone from your own links too | The file is deleted from storage, not only unlinked | Expected. Download first if you need a copy. |","tags":["Business Documents"],"parameters":[{"name":"documentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID, in the address line.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"example":{"attachmentIds":["C0625051306220422","C0625051306691163"]}}}},"responses":{"204":{"description":"No Content"}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/documents/{documentId}/download":{"post":{"tags":["Business Documents"],"operationId":"download","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"}},{"name":"documentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}}},"summary":"Download the file of a business document (old v1 address)","description":"### What this call does\n\nDownloads every file attached to one business document, an order, delivery note or invoice, as a single ZIP archive.\n\n*Last updated: 15.05.2026*\n\n> **The address saved in this entry does not work.** It is saved as `POST /api/gateways/integration/documents/{documentId}/download`. The address that answers is **`GET /api/documents/{businessDocumentId}/attachments/download`**, a `GET`, and it takes no `companyAccountId`.\n\n### What you need first\n\n- A valid API key in the `API-Key` header.\n- The `businessDocumentId`, the `id` field from **Search business documents**.\n- A client that can save a binary answer as a file.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `businessDocumentId` | **Yes** | none | In the path, between `/documents/` and `/attachments/download`. The Cathago ID of the document. |\n\nThere are no query parameters.\n\n### The fields\n\nThis call has no data packet. Do not send one.\n\n### What you get back\n\n`200 OK`, content type `application/zip`, with the header `Content-Disposition: attachment; filename=\"documents-{businessDocumentId}.zip\"`.\n\nOne entry per attachment, named after its `fileName`; a file with no name is stored as `file`, and a repeated name gets ` (1)`, ` (2)` … before the extension. An `ORDER` in status `IN_APPROVAL` carries one extra file, an order preview named `Vorschau Bestellung {externalId}.pdf`. A document with no attachments returns `200` and a valid, empty archive.\n\n> **A `200` does not promise that every attachment is in the archive.** A file that cannot be fetched is skipped in silence.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `404 Not Found` | The saved `POST …/download` address was used, or the document does not exist | Use the `GET` address above, with an ID from **Search business documents**. |\n| `405 Method Not Allowed` | Called with `POST` | It is a `GET`. |\n| `401 Unauthorized` | Key missing or wrong | A staging key does not work in production. |\n| The file will not open | The answer was saved as text | It is a ZIP archive. Save the bytes as they arrive. |\n| A file you expected is missing | It could not be fetched, so it was skipped | Read `attachedFiles` from **Search business documents** and fetch that file's `url` directly. |"},"servers":[{"url":"https://api.cathago.de"}]},"/api/gateways/integration/documents/bulk":{"post":{"operationId":"createOrUpdateBusinessDocuments","summary":"Create or update business documents (bulk)","description":"### What this call does\n\nCreates or updates several business documents in one call, orders, call-offs, delivery notes, invoices and credit notes, each with its metadata, files, references, signatures and line items.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header.\n- Your `companyAccountId`, and the `mode`.\n- Per document, the Cathago `supplierAccountId` of a supplier already connected to your company, and usually the `projectId` of the construction site.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID, in the address line. |\n| `mode` | **Yes** | none | `ADD`, `ADD_OR_UPDATE` or `PATCH`. |\n\n| `mode` | What happens | When to use it |\n| --- | --- | --- |\n| `ADD_OR_UPDATE` | Looks for the document by `id`, and without an `id` by `externalId` plus your `companyAccountId`. Found → updated. Not found → created. | **The everyday choice.** |\n| `ADD` | Always creates, even when the same `externalId` exists. | First import only. Otherwise it makes duplicates. |\n| `PATCH` | Updates the document named by `id`. Creates nothing. | Correcting documents you already have. |\n\n> **`mode` has no usable default, always send it.** Left out, the call fails with `400 Bad Request` before any document is looked at. The saved address already carries `mode=ADD_OR_UPDATE`; keep it. Unlike the values inside the packet, `mode` is strict about spelling and capitalisation.\n\nThe same address without `mode`, `POST /v3/api/gateways/integration/documents?companyAccountId=…`, takes a **single** document object instead of a list and always creates.\n\n### The fields\n\nThe data packet is a **list**; each entry is one business document.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `id` | text | No | (none) | Cathago ID. `PATCH` needs it; ignored on a create. |\n| `externalId` | text | No | (none) | Your own number. Matched when there is no `id`. Not checked for uniqueness. |\n| `projectId` | text | No | (none) | The construction site. Sets the site **and** its tenant company. An unknown one makes the call return nothing at all. |\n| `supplierAccountId` | text | **Yes** | none | The supplier account, already connected to your company. Missing → `400`, code `BUSINESS_DOCUMENT_1005`. |\n| `documentType` | choice | **Yes** | none | `ORDER`, `CALL_OFF`, `DELIVERY`, `RETURN_DELIVERY_NOTE`, `INVOICE`, `CREDIT_NOTE`. Missing **or misspelt** → `400`, code `BUSINESS_DOCUMENT_1004`. `PRICELIST`, `CONTRACT` and `OTHER` fail with `400`. |\n| `businessDocumentStatus` | choice | No | see below | `OPEN`, `ASKED_FOR_CHANGE`, `IN_APPROVAL`, `REQUESTED`, `CONFIRMED`, `PROCESS_VERIFICATION`, `DECLINED`, `VERIFIED`, `VERIFICATION_FAILED`, `APPROVED`, `DELAYED`, `PARTIALLY_DELIVERED`, `DELIVERED`, `RECLAIM`, `MATCHED`, `REJECTED`. |\n| `metadata` | object | No | (none) | Dates, payment, delivery, buyer, receiver, notes. |\n| `additionalFields` | list | No | `[]` | Your own extra fields. |\n| `additionalFieldsMode` | choice | No | `ADD` | `ADD`, `UPDATE`, `DELETE`, `REPLACE`. |\n| `attachments` | list | No | `[]` | Files. On an update **added** to those already there. |\n| `documentReferences` | list | No | `[]` | Links to other documents. **Added**; identical links are not stored twice. |\n| `signatures` | list | No | `[]` | Who signed. **Added**, no duplicate check. |\n| `lineItems` | list | No | `[]` | The line items. |\n\nLeft out, `businessDocumentStatus` becomes `REQUESTED` on an `ORDER` and `OPEN` on an `INVOICE`, `DELIVERY`, `RETURN_DELIVERY_NOTE` or `CREDIT_NOTE`. A `CALL_OFF` gets nothing and fails with `500`.\n\nEverything inside these blocks is optional and has no default, apart from `taxRate`:\n\n- **`metadata`**none`orderDate` (`YYYY-MM-DD`), `orderConfirmationDate`, `invoiceDate`, `notes` (findable through `searchText`), `orderId`, `signatureDetected`, `buyer` and `receiver` (each `id`, `fullName`, `contactNumber`, `email`), `paymentInformation`, `deliveryInformation`. Never send `supplierAccount` or `company`, Cathago overwrites both with what it has on file.\n- **`metadata.paymentInformation`**, free text: `currency`, `paymentTime`, `taxUnit`, `skontoTime`, and `skontoDeadline`, which is **text and is never read as a date**. Dates: `paymentDate` (the due date), `earlyPaymentDate`. Amounts, as numbers with a decimal point and no currency symbol: `taxAmount`, `discount`, `netAmount`, `grossAmount`, `totalSkontoAmount`. Percentages: `skontoPercent`, `discountPercentage`, `taxRate`.\n- **`metadata.deliveryInformation`**none`deliveryDate`, `deliveryEndDate`, `startTime` and `endTime` (exactly `HH:mm`), `deliveryType` (**free text**; Cathago itself knows `STANDARD`, `EXPRESS`, `IMMEDIATE`, `APPOINTMENT`, `CLICK_AND_COLLECT`, `CUSTOM`), `trackingId`, `deliveryId`, `totalWeight`, `totalWeightUnit`, `eDeliveryNote`, `deliveryLocations`, each with `id`, `title` and an `addressDetails` block of `addressLineOne`, `addressLineTwo`, `city`, `country`, `zipcode`, `mapLink`, `region`, `comments`.\n- **`additionalFields`**none`technicalName` (the key; a blank one is skipped without a word), `displayName` (frozen onto the document, so renaming the field later does not relabel old documents), `required` (stored, not enforced), `value`. `additionalFieldsMode` decides the merge: `ADD` (the default) keeps the stored entry and ignores your value, `UPDATE` overwrites it, `DELETE` removes it, `REPLACE` throws the whole stored list away.\n- **`attachments`**, per file `documentUrl` (an address Cathago can fetch without logging in) **or** `fileInBytes` (the file as Base64), plus `documentName`, `documentFormat` (`PDF`, `DOC`, `DOCX`, `JPEG`, `JPG`, `PNG`, `CSV`, `XLSX`, `XLS`, `XML`, `JSON`, `DAT`, `WDA`) and `externalId`.\n- **`documentReferences`**none`referenceType` (`ORDER`, `CALL_OFF`, `DELIVERY`, `RETURN_DELIVERY_NOTE`, `INVOICE`, `CREDIT_NOTE`, `PRICELIST`, `CONTRACT`, `OTHER`), `documentReferenceId` (the target's Cathago ID, or the supplier's own number when `external` is `true`), `externalId`, `customType` (the label used when `referenceType` is `OTHER`), `external` (default `false`, a link inside Cathago). The answer adds `referencedStatus`, `referencedDate`, `referencedChannelType`, `referencedExternalId`, `referencedDocumentType`, `referencedResolved` and `referencedSigned`. **Trust `referencedResolved`** for \"a real link or just a number\".\n- **`signatures`**none`receivingPerson`, `emailAddress`, `ipAddress`, `attachmentInDto` (the signature file: `externalId`, `documentId`, `source`, `url`, `fileName`, `attachmentType`, `extractedData`, `referenceIncomingFileId`).\n\n> **`taxRate` is a percentage, not a fraction: `19` means 19 %.** It defaults to `19.0`, so any `paymentInformation` block sent without it comes back carrying `19.0`.\n\n> Per attachment, send **one** of `documentUrl` and `fileInBytes`. Send both and `fileInBytes` wins. **Send neither and the entry is dropped in silence**, the call succeeds and the file never appears.\n\n**`lineItems`**, every field is optional. `updateMode` (default `ADD`) decides what an entry does: `ADD` creates a line, `UPDATE` changes the line named by `id`, `DELETE` removes it. `REPLACE` is **not** supported and fails with `500`. `UPDATE` and `DELETE` both need the line's Cathago `id`, which an `ADD` ignores. The fields with a rule of their own:\n\n- `position`, the number printed on the paper document. Left out, Cathago counts your lines from `1`.\n- `taxRate`, a **percentage**: `19` means 19 %, never `0.19`.\n- `lineItemStatus`, default: the document's own status. `OPEN`, `MATCHED`, `VERIFICATION_FAILED`, `VERIFIED`, `REJECTED`, `DELAYED`, `PARTIALLY_DELIVERED`, `DELIVERED`, `RECLAIM`, `DRAFT`, `IN_APPROVAL`, `REQUESTED`, `ASKED_FOR_CHANGE`, `CONFIRMED`, `PROCESS_VERIFICATION`, `PROCESSING_VERIFICATION`, `DECLINED`, `APPROVED`.\n- `lineItemType`none**always overwritten** with the document's `documentType`. Do not send it.\n- `lineItemChannel`, default `API`. `APP`, `EMAIL`, `EDI`, `API`, `NEVARIS`, `IN_APP`.\n- `lineItemSource`none`ORDER`, `ORDER_CONFIRMATION`, `DELIVERY_NOTE`, `SIGNED_DELIVERY_NOTE`, `RETURN_DELIVERY_NOTE`, `RECEIVED_GOODS`, `INVOICE`, `CREDIT_NOTE`.\n- `productType`none`MATERIAL`, `SERVICE`, `DEPOSIT_GOODS`. `depositGoodType` (`PALLETS`, `BOXES`, `LOOPS`, `BAGS`, `OTHERS`) is only meaningful with `DEPOSIT_GOODS`.\n- `automationStatus`none`PROCESS_VERIFICATION`, `VERIFIED`, `VERIFICATION_FAILED`, `MATCHED`.\n- `reclaim`, a complaint on the line: `description`, `reclaimType` (free text), `quantity` (whole number).\n\nThe rest of a line has no default. Text: `title`, `articleNumber`, `ean`, `description`, `type` (free text), `productId`, `taxCode`, `notes`, `comment`, `costCentre`, `documentUrl` (a data sheet), `imageUrl` (a picture), and the free-text units `quantityUnit`, `billingQuantityUnit`, `billingPriceUnit`. Numbers: `quantity`, `billingQuantity`, `shipmentQuantity`, `unitPrice`, `productNetPrice`, `netPrice`, `billingPrice`, `grossPrice`, `tax`, `additionalCharges`, `additionalChargesInPercent`, `discountGrossAmount`, `discountPercent`, the `…Percent` fields are percentages, and **prices are stored exactly as you send them; nothing is recalculated**. `productAttributes` and `itemAttributes` hold free text pairs with keys you choose.\n\n**Dates and times.** `orderConfirmationDate`, `invoiceDate`, `paymentDate`, `earlyPaymentDate`, `deliveryDate` and `deliveryEndDate` accept six shapes: `2026-05-11T07:30:00.000Z` · `2026-05-11T07:30:00` · `2026-05-11 07:30:00` · `2026-05-11T07:30` · `2026-05-11` · `11.05.2026`. `orderDate` takes `YYYY-MM-DD`; `startTime` and `endTime` take exactly `HH:mm`.\n\n> **A date Cathago cannot read becomes empty, it is not an error.** `2026/05/11`, `11-05-2026` and `2026-05-11T07:30:00+02:00` are stored as nothing, and the call still returns `200`.\n\n### What you get back\n\n`200 OK`, not `201`, with one entry per document you sent, each in the same shape as one entry of `data` in **Search business documents**: `id`, `externalId`, `documentType`, `documentStatus`, `customer`, `project`, `metadata`, `additionalFields`, `attachedFiles`, `documentReferences`, `lineItems`, `signatures`, `connectedDocuments`, `createdBy`, `createdAt`, `lastModifiedAt`. Anything empty is left out.\n\n**On a create, that `id` is the only place you get the document's Cathago ID**, and each line item carries its own `id`, needed for a later `UPDATE` or `DELETE`. Write them down.\n\n> **A `200` does not mean every document went in.** The first one that fails ends the call, and everything saved before it stays saved. Afterwards, search on your `externalId` values to see which ones landed, then resend the rest. Match answers by `externalId` or `id`, never by position. Send at most a few hundred documents per call.\n\n### `sourcingType`, how the document was sourced\n\nEvery document that comes back carries `sourcingType` beside `documentType`.\n\n| Value | Meaning |\n| --- | --- |\n| `STANDARD` | An ordinary document |\n| `CALL_OFF` | Drawn down against a call-off agreement |\n| `CONCRETE` | Drawn down against a concrete agreement |\n\n> **`sourcingType` replaced `callOffType`.** `callOffType` was removed on 16.09.2026 and no longer comes back on any document. If your integration reads it, read `sourcingType` instead. The older spelling `CALLOFF` is still accepted on the way in and is stored as `CALL_OFF`.\n\n> `documentType` says what kind of document it is; `sourcingType` says where it was sourced from. A `CALL_OFF` document is normally `sourcingType: CALL_OFF`, but they are two separate fields and you should read the one you actually mean.\n\n### `additionalFields` in the answer\n\nEvery document comes back with the `additionalFields` you stored on it, in the same shape you sent:\n\n| Field | Meaning |\n| --- | --- |\n| `technicalName` | The key. This is what you match on. |\n| `displayName` | The label a person sees, frozen onto this document |\n| `required` | Stored, never enforced |\n| `showOnTopPdf` | `true` prints the field in the document header |\n| `value` | The value, always text |\n\n> **Fields you never sent can appear here.** Cathago fills a document's additional fields from the settings behind it as well as from your payload, so the list that comes back may be longer than the list you sent. Match on `technicalName` and ignore what you do not recognise; never assume position.\n\n> Empty fields are left out of the answer rather than returned as `null`, so a document with no additional fields simply has no `additionalFields` key.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `400 Bad Request` | `mode` was left out of the address line | Send `mode=ADD_OR_UPDATE`, `ADD` or `PATCH`. |\n| `400`, code `BUSINESS_DOCUMENT_1005` | `supplierAccountId` missing | Every document needs one, on updates as well. |\n| `400`, code `BUSINESS_DOCUMENT_1004` | `documentType` missing **or misspelt** | A misspelt value counts as nothing sent, so `PROFORMA_INVOICE` gives this error. |\n| `500` on a call-off | `CALL_OFF` with no `businessDocumentStatus` | Send a status explicitly with `CALL_OFF`. |\n| Success, but a field you sent is missing | The name is misspelt, and unknown names are dropped without a word | Copy the names from the tables above. |\n| Tax is a hundred times too small | `taxRate` sent as `0.19` | It is a percentage: send `19`. |\n| An attachment never appears | The entry had neither `documentUrl` nor `fileInBytes` | Send one of the two. |\n| A date came back empty | The shape was not one of the six accepted | See the date shapes above. |\n| Duplicates appear | `mode=ADD` used for the everyday import | Use `ADD_OR_UPDATE`. |","tags":["Business Documents"],"parameters":[{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID, in the address line.","schema":{"type":"string"}},{"name":"mode","in":"query","required":true,"description":"ADD, ADD_OR_UPDATE or PATCH.","schema":{"type":"string"},"example":"ADD_OR_UPDATE"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array"},"example":[{"id":"C112505041037112202","externalId":"BE-2026-004711","projectId":"b4TqR9wX","supplierAccountId":"m2LpK7dV","documentType":"ORDER","contractIds":[],"businessDocumentStatus":"REQUESTED","metadata":{"orderDate":"2026-05-04","orderConfirmationDate":"2026-05-05 09:15:00","invoiceDate":"2026-05-12T00:00:00.000Z","notes":"Anlieferung nur über Baustellentor 3. Kranstellplatz bitte freihalten.","orderId":"C0125051366449370","signatureDetected":false,"buyer":{"id":"u9XmT3bF","fullName":"Sharif Malik","contactNumber":"+49 341 5551020","email":"sharif.malik@cathago.de"},"receiver":{"id":"u2FbQ8rM","fullName":"Anja Krause","contactNumber":"+49 341 5551044","email":"anja.krause@cathago.de"},"paymentInformation":{"paymentTime":"30 DAYS","currency":"EUR","taxUnit":"PERCENT","skontoTime":"10 DAYS","skontoDeadline":"2026-05-14","paymentDate":"2026-06-03 00:00:00","earlyPaymentDate":"2026-05-14 00:00:00","skontoPercent":2,"taxRate":19,"taxAmount":597.36,"discount":0,"netAmount":3144,"grossAmount":3741.36,"totalSkontoAmount":62.88,"discountPercentage":0},"deliveryInformation":{"startTime":"07:00","endTime":"11:00","trackingId":"SPED-2026-88231","deliveryId":"LF-2026-88231","deliveryType":"CUSTOM","totalWeightUnit":"KG","totalWeight":57600,"deliveryDate":"2026-05-11 07:30:00","deliveryEndDate":"2026-05-11 11:00:00","eDeliveryNote":true,"deliveryLocations":[{"id":"L4kR8vTz","title":"Hauptlager Tor 3","addressDetails":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Tor 3","city":"Leipzig","country":"Deutschland","zipcode":"04103","mapLink":"https://maps.example.com/?q=Ottostrasse+14+Leipzig","region":"Sachsen","comments":"Zufahrt nur über die Ottostraße."}},{"id":"L7pW2nQd","title":"Kranstellplatz Nord","addressDetails":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Tor 1","city":"Leipzig","country":"Deutschland","zipcode":"04103","mapLink":"https://maps.example.com/?q=Ottostrasse+14+Leipzig","region":"Sachsen","comments":"Nur mit Anmeldung beim Bauleiter."}}]}},"additionalFields":[{"technicalName":"standard__customer_number","displayName":"Kundennummer","required":true,"value":"K-90231"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"additionalFieldsMode":"UPDATE","attachments":[{"externalId":"ANH-2026-004711-1","documentUrl":"https://erp.weber-bau.de/belege/BE-2026-004711.pdf","documentName":"bestellung-BE-2026-004711.pdf","documentFormat":"PDF"},{"externalId":"ANH-2026-004711-2","fileInBytes":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==","documentName":"anfahrtsskizze-tor-3.png","documentFormat":"PNG"}],"documentReferences":[{"referenceType":"PRICELIST","documentReferenceId":"PL-2026-0417","externalId":"WEBER-PL-2026-Q2","customType":"Rahmenpreisliste Q2","external":false}],"signatures":[{"receivingPerson":"Anja Krause","emailAddress":"anja.krause@cathago.de","ipAddress":"203.0.113.45","attachmentInDto":{"externalId":"SIG-2026-004711-1","documentId":"C0625051306220422","source":"site-tablet","url":"https://erp.weber-bau.de/unterschriften/BE-2026-004711.png","fileName":"unterschrift-BE-2026-004711.png","attachmentType":"SIGNATURE","extractedData":"Anja Krause, 11.05.2026 07:45","referenceIncomingFileId":"IF-2026-77120"}}],"lineItems":[{"updateMode":"ADD","title":"Transportbeton C25/30 XC1 F3","articleNumber":"TB-C2530-XC1-F3","ean":"4048962011234","description":"Transportbeton C25/30, Expositionsklasse XC1, Konsistenz F3, Größtkorn 16 mm.","type":"MATERIAL","productId":"P3nQ7wLc","productAttributes":{"hersteller":"Heidelberg Materials","festigkeitsklasse":"C25/30"},"itemAttributes":{"einbauort":"Bodenplatte Haus B"},"quantity":24,"billingQuantity":24,"shipmentQuantity":0,"quantityUnit":"m³","billingQuantityUnit":"m³","billingPriceUnit":"m³","unitPrice":118.5,"productNetPrice":118.5,"netPrice":2844,"billingPrice":2844,"grossPrice":3384.36,"additionalCharges":0,"additionalChargesInPercent":0,"discountGrossAmount":0,"discountPercent":0,"taxCode":"VAT19","taxRate":19,"tax":540.36,"position":"0010","notes":"Anlieferung nur mit Fahrmischer.","comment":"Erste Charge Montag früh.","documentUrl":"https://erp.weber-bau.de/datenblaetter/TB-C2530.pdf","imageUrl":"https://erp.weber-bau.de/bilder/TB-C2530.jpg","costCentre":"KST-4711","lineItemStatus":"OPEN","lineItemSource":"ORDER","lineItemChannel":"API","productType":"MATERIAL","automationStatus":"PROCESS_VERIFICATION"},{"updateMode":"ADD","title":"Europalette, Pfand","articleNumber":"PAL-EUR-800x1200","description":"Europalette 800 x 1200 mm, Pfandgebinde.","type":"DEPOSIT","quantity":12,"billingQuantity":12,"quantityUnit":"Stück","unitPrice":25,"netPrice":300,"grossPrice":357,"taxCode":"VAT19","taxRate":19,"tax":57,"position":"0020","costCentre":"KST-4711","lineItemStatus":"OPEN","lineItemSource":"ORDER","lineItemChannel":"API","productType":"DEPOSIT_GOODS","depositGoodType":"PALLETS"}]},{"externalId":"LS-2026-009914","projectId":"b4TqR9wX","supplierAccountId":"m2LpK7dV","documentType":"DELIVERY","businessDocumentStatus":"RECLAIM","metadata":{"notes":"Eine Matte war beim Abladen verbogen. Reklamation aufgenommen.","orderId":"C0125051366449370","deliveryInformation":{"startTime":"07:15","endTime":"07:45","trackingId":"SPED-2026-88231","deliveryType":"STANDARD","totalWeightUnit":"KG","totalWeight":1316,"deliveryDate":"11.05.2026","eDeliveryNote":true}},"documentReferences":[{"referenceType":"ORDER","documentReferenceId":"C112505041037112202","externalId":"BE-2026-004711","external":false}],"lineItems":[{"updateMode":"ADD","title":"Betonstahlmatte Q188A","articleNumber":"BSM-Q188A-600230","quantity":40,"shipmentQuantity":39,"quantityUnit":"Stück","position":"0010","costCentre":"KST-4711","lineItemStatus":"RECLAIM","lineItemSource":"DELIVERY_NOTE","lineItemChannel":"API","productType":"MATERIAL","reclaim":{"description":"Eine Matte verbogen, nicht verwendbar.","reclaimType":"DAMAGED","quantity":1}}]}]}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"order":{"summary":"Order","value":[{"id":"C112506010841072202","externalId":"BE-2026-004822","documentType":"ORDER","sourcingType":"STANDARD","documentStatus":"REQUESTED","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506010841072204","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678"},"orderDate":"2026-06-01","orderId":"C0125051366449370","notes":"Gesamtbestellung Bauabschnitt B. Abruf in Tranchen aus Rahmenvertrag RV-2026-0042.","buyer":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551020","email":"sharif.malik@cathago.de"},"paymentInformation":{"currency":"EUR","paymentTime":"30 DAYS","skontoTime":"10 DAYS","skontoPercent":2,"taxRate":19,"netAmount":6180,"taxAmount":1174.2,"grossAmount":7354.2,"totalSkontoAmount":123.6},"deliveryInformation":{"startTime":"07:00","endTime":"11:00","deliveryType":"APPOINTMENT","deliveryDate":"2026-06-16T07:00:00.000Z","deliveryLocations":[{"id":"L4kR8vTz","title":"Hauptlager Tor 3","addressDetails":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Tor 3","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}}]}},"lineItems":[{"id":"C112506010841072211","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":1200,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":4620,"taxRate":19,"tax":877.8,"grossPrice":5497.8,"position":"0010","costCentre":"KST-4711","lineItemStatus":"REQUESTED","lineItemType":"ORDER","lineItemSource":"ORDER","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506010841072202","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"},{"id":"C112506010841072212","title":"Mauermörtel MG IIa, 40-kg-Sack","articleNumber":"MOE-MGIIA-40","quantity":240,"quantityUnit":"Sack","unitPrice":6.5,"netPrice":1560,"taxRate":19,"tax":296.4,"grossPrice":1856.4,"position":"0020","costCentre":"KST-4711","lineItemStatus":"REQUESTED","lineItemType":"ORDER","lineItemSource":"ORDER","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506010841072202","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-01T08:41:07.222Z","lastModifiedAt":"2026-06-01T08:41:07.222Z"}]},"call-off":{"summary":"Call-off","value":[{"id":"C112506050915330402","externalId":"AB-2026-000318","documentType":"CALL_OFF","sourcingType":"CALL_OFF","documentStatus":"CONFIRMED","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506050915330404","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678"},"orderDate":"2026-06-05","orderId":"C0125051366449370","notes":"Abruf 1 von 3 aus Rahmenvertrag RV-2026-0042 zur Bestellung BE-2026-004822.","buyer":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551020","email":"sharif.malik@cathago.de"},"paymentInformation":{"currency":"EUR","taxRate":19,"netAmount":2472,"taxAmount":469.68,"grossAmount":2941.68},"deliveryInformation":{"startTime":"07:00","endTime":"11:00","deliveryType":"APPOINTMENT","deliveryDate":"2026-06-16T07:00:00.000Z"}},"documentReferences":[{"id":"R112506050915330421","referenceType":"CONTRACT","documentReferenceId":"K8mQ3vRt","externalId":"RV-2026-0042","external":false,"referencedResolved":true,"referencedStatus":"ACTIVE","referencedDocumentType":"CONTRACT","referencedExternalId":"RV-2026-0042","referencedDate":"2026-01-15T00:00:00.000Z","referencedChannelType":"APP"},{"id":"R112506050915330422","referenceType":"ORDER","documentReferenceId":"C112506010841072202","externalId":"BE-2026-004822","external":false,"referencedResolved":true,"referencedStatus":"REQUESTED","referencedDocumentType":"ORDER","referencedExternalId":"BE-2026-004822","referencedDate":"2026-06-01T00:00:00.000Z","referencedChannelType":"API"}],"lineItems":[{"id":"C112506050915330411","callOffLineItemId":"AB-2026-000318-0010","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":480,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":1848,"taxRate":19,"tax":351.12,"grossPrice":2199.12,"position":"0010","costCentre":"KST-4711","lineItemStatus":"CONFIRMED","lineItemType":"CALL_OFF","lineItemSource":"ORDER","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506050915330402","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"},{"id":"C112506050915330412","callOffLineItemId":"AB-2026-000318-0020","title":"Mauermörtel MG IIa, 40-kg-Sack","articleNumber":"MOE-MGIIA-40","quantity":96,"quantityUnit":"Sack","unitPrice":6.5,"netPrice":624,"taxRate":19,"tax":118.56,"grossPrice":742.56,"position":"0020","costCentre":"KST-4711","lineItemStatus":"CONFIRMED","lineItemType":"CALL_OFF","lineItemSource":"ORDER","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506050915330402","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-05T09:15:33.040Z","lastModifiedAt":"2026-06-05T09:15:33.040Z"}]},"delivery-note":{"summary":"Delivery note","value":[{"id":"C112506160922410502","externalId":"LS-2026-010233","documentType":"DELIVERY","sourcingType":"STANDARD","documentStatus":"PARTIALLY_DELIVERED","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506160922410504","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678"},"orderId":"C0125051366449370","notes":"Teillieferung zu Abruf AB-2026-000318. 6 Sack Mörtel fehlen, Rest folgt.","receiver":{"fullName":"Anja Krause","contactNumber":"+49 341 5551044","email":"anja.krause@cathago.de"},"deliveryInformation":{"startTime":"07:30","endTime":"09:10","deliveryType":"STANDARD","deliveryId":"LF-2026-88231","trackingId":"SPED-2026-88231","totalWeight":15600,"totalWeightUnit":"KG","deliveryDate":"2026-06-16T07:30:00.000Z","deliveryEndDate":"2026-06-16T09:10:00.000Z","eDeliveryNote":true,"deliveryLocations":[{"id":"L4kR8vTz","title":"Hauptlager Tor 3","addressDetails":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Tor 3","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}}]}},"documentReferences":[{"id":"R112506160922410521","referenceType":"ORDER","documentReferenceId":"C112506010841072202","externalId":"BE-2026-004822","external":false,"referencedResolved":true,"referencedStatus":"REQUESTED","referencedDocumentType":"ORDER","referencedExternalId":"BE-2026-004822","referencedDate":"2026-06-01T00:00:00.000Z","referencedChannelType":"API"},{"id":"R112506160922410522","referenceType":"CALL_OFF","documentReferenceId":"C112506050915330402","externalId":"AB-2026-000318","external":false,"referencedResolved":true,"referencedStatus":"CONFIRMED","referencedDocumentType":"CALL_OFF","referencedExternalId":"AB-2026-000318","referencedDate":"2026-06-05T00:00:00.000Z","referencedChannelType":"API"}],"signatures":[{"id":"S112506160922410531","receivingPerson":"Anja Krause","emailAddress":"anja.krause@cathago.de","ipAddress":"203.0.113.45","attachmentOutDto":{"id":"A112506160922410532","externalId":"SIG-LS-2026-010233","url":"https://erp.hoffmann-hochbau.de/unterschriften/LS-2026-010233.png","fileName":"unterschrift-LS-2026-010233.png","attachmentType":"SIGNATURE","channel":"API","createdAt":"2026-06-16T09:22:41.050Z"},"createdAt":"2026-06-16T09:10:12.418Z"}],"lineItems":[{"id":"C112506160922410511","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":480,"shipmentQuantity":480,"quantityUnit":"Stück","position":"0010","costCentre":"KST-4711","lineItemStatus":"DELIVERED","lineItemType":"DELIVERY","lineItemSource":"DELIVERY_NOTE","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506160922410502","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"},{"id":"C112506160922410512","title":"Mauermörtel MG IIa, 40-kg-Sack","articleNumber":"MOE-MGIIA-40","quantity":96,"shipmentQuantity":90,"quantityUnit":"Sack","position":"0020","costCentre":"KST-4711","lineItemStatus":"PARTIALLY_DELIVERED","lineItemType":"DELIVERY","lineItemSource":"DELIVERY_NOTE","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506160922410502","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-16T09:22:41.050Z","lastModifiedAt":"2026-06-16T09:22:41.050Z"}]},"return-delivery-note":{"summary":"Return delivery note","value":[{"id":"C112506181035180602","externalId":"RLS-2026-000147","documentType":"RETURN_DELIVERY_NOTE","sourcingType":"STANDARD","documentStatus":"RECLAIM","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506181035180604","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678"},"orderId":"C0125051366449370","notes":"20 Steine beim Abladen gebrochen, Rückgabe an Lieferfahrzeug am 18.06.2026.","receiver":{"fullName":"Marco Weber","contactNumber":"+49 341 5559086","email":"marco.weber@weber-sohn.de"},"deliveryInformation":{"startTime":"13:00","endTime":"13:40","deliveryType":"STANDARD","deliveryId":"RLF-2026-88407","totalWeight":500,"totalWeightUnit":"KG","deliveryDate":"2026-06-18T13:00:00.000Z","deliveryEndDate":"2026-06-18T13:40:00.000Z","eDeliveryNote":true}},"documentReferences":[{"id":"R112506181035180621","referenceType":"DELIVERY","documentReferenceId":"C112506160922410502","externalId":"LS-2026-010233","external":false,"referencedResolved":true,"referencedStatus":"PARTIALLY_DELIVERED","referencedDocumentType":"DELIVERY","referencedExternalId":"LS-2026-010233","referencedDate":"2026-06-16T07:30:00.000Z","referencedChannelType":"API"}],"lineItems":[{"id":"C112506181035180611","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":20,"shipmentQuantity":20,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":77,"taxRate":19,"tax":14.63,"grossPrice":91.63,"position":"0010","costCentre":"KST-4711","lineItemStatus":"RECLAIM","lineItemType":"RETURN_DELIVERY_NOTE","lineItemSource":"RETURN_DELIVERY_NOTE","productType":"MATERIAL","reclaim":{"description":"20 Steine beim Abladen der Teillieferung LS-2026-010233 gebrochen.","reclaimType":"DAMAGED","quantity":20},"supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506181035180602","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-18T10:35:18.060Z","lastModifiedAt":"2026-06-18T10:35:18.060Z"}]},"invoice":{"summary":"Invoice","value":[{"id":"C112506301407520702","externalId":"RE-2026-051204","documentType":"INVOICE","sourcingType":"STANDARD","documentStatus":"OPEN","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506301407520704","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678"},"invoiceDate":"2026-06-30T00:00:00.000Z","orderDate":"2026-06-01","orderId":"C0125051366449370","notes":"Rechnung über die Teillieferung LS-2026-010233 vom 16.06.2026: 480 Steine und 90 Sack.","paymentInformation":{"currency":"EUR","paymentTime":"30 DAYS","paymentDate":"2026-07-30T00:00:00.000Z","skontoTime":"10 DAYS","skontoPercent":2,"earlyPaymentDate":"2026-07-10T00:00:00.000Z","skontoDeadline":"10.07.2026","totalSkontoAmount":48.66,"taxUnit":"PERCENT","taxRate":19,"netAmount":2433,"taxAmount":462.27,"grossAmount":2895.27,"discount":0,"discountPercentage":0}},"attachedFiles":[{"id":"A112506301407520731","externalId":"ANH-RE-2026-051204","documentId":"C0625063014075207","url":"https://erp.hoffmann-hochbau.de/belege/RE-2026-051204.pdf","fileName":"rechnung-RE-2026-051204.pdf","createdAt":"2026-06-30T14:07:52.070Z"}],"documentReferences":[{"id":"R112506301407520721","referenceType":"ORDER","documentReferenceId":"C112506010841072202","externalId":"BE-2026-004822","external":false,"referencedResolved":true,"referencedStatus":"REQUESTED","referencedDocumentType":"ORDER","referencedExternalId":"BE-2026-004822","referencedDate":"2026-06-01T00:00:00.000Z","referencedChannelType":"API"},{"id":"R112506301407520722","referenceType":"DELIVERY","documentReferenceId":"C112506160922410502","externalId":"LS-2026-010233","external":false,"referencedResolved":true,"referencedStatus":"PARTIALLY_DELIVERED","referencedDocumentType":"DELIVERY","referencedExternalId":"LS-2026-010233","referencedDate":"2026-06-16T07:30:00.000Z","referencedChannelType":"API"}],"lineItems":[{"id":"C112506301407520711","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":480,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":1848,"taxCode":"VAT19","taxRate":19,"tax":351.12,"grossPrice":2199.12,"position":"0010","costCentre":"KST-4711","lineItemStatus":"OPEN","lineItemType":"INVOICE","lineItemSource":"INVOICE","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506301407520702","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"},{"id":"C112506301407520712","title":"Mauermörtel MG IIa, 40-kg-Sack","articleNumber":"MOE-MGIIA-40","quantity":90,"quantityUnit":"Sack","unitPrice":6.5,"netPrice":585,"taxCode":"VAT19","taxRate":19,"tax":111.15,"grossPrice":696.15,"position":"0020","costCentre":"KST-4711","lineItemStatus":"OPEN","lineItemType":"INVOICE","lineItemSource":"INVOICE","productType":"MATERIAL","supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112506301407520702","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-30T14:07:52.070Z","lastModifiedAt":"2026-06-30T14:07:52.070Z"}]},"credit-note":{"summary":"Credit note","value":[{"id":"C112507060948260802","externalId":"GS-2026-000412","documentType":"CREDIT_NOTE","sourcingType":"STANDARD","documentStatus":"OPEN","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112507060948260804","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678"},"invoiceDate":"2026-07-06T00:00:00.000Z","orderId":"C0125051366449370","notes":"Gutschrift für die 20 gebrochenen Steine aus Retoure RLS-2026-000147 zur Rechnung RE-2026-051204.","paymentInformation":{"currency":"EUR","taxRate":19,"netAmount":-77,"taxAmount":-14.63,"grossAmount":-91.63}},"documentReferences":[{"id":"R112507060948260821","referenceType":"INVOICE","documentReferenceId":"C112506301407520702","externalId":"RE-2026-051204","external":false,"referencedResolved":true,"referencedStatus":"OPEN","referencedDocumentType":"INVOICE","referencedExternalId":"RE-2026-051204","referencedDate":"2026-06-30T00:00:00.000Z","referencedChannelType":"API"},{"id":"R112507060948260822","referenceType":"RETURN_DELIVERY_NOTE","documentReferenceId":"C112506181035180602","externalId":"RLS-2026-000147","external":false,"referencedResolved":true,"referencedStatus":"RECLAIM","referencedDocumentType":"RETURN_DELIVERY_NOTE","referencedExternalId":"RLS-2026-000147","referencedDate":"2026-06-18T13:00:00.000Z","referencedChannelType":"API"}],"lineItems":[{"id":"C112507060948260811","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":-20,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":-77,"taxCode":"VAT19","taxRate":19,"tax":-14.63,"grossPrice":-91.63,"position":"0010","costCentre":"KST-4711","lineItemStatus":"OPEN","lineItemType":"CREDIT_NOTE","lineItemSource":"CREDIT_NOTE","productType":"MATERIAL","reclaim":{"description":"20 Steine beim Abladen gebrochen, zurückgegeben mit RLS-2026-000147.","reclaimType":"DAMAGED","quantity":20},"supplierAccountId":"m2LpK7dV","lineItemChannel":"API","documentId":"C112507060948260802","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-07-06T09:48:26.080Z","lastModifiedAt":"2026-07-06T09:48:26.080Z"}]}}}}}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/master-articles/pricelists":{"post":{"operationId":"createOneAgreement","summary":"Create one agreement","description":"### What this call does\n\nCreates one call-off agreement.\n\n*Last updated: 29.09.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- The supplier's `supplierId` from the **Suppliers** section.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID. It is stamped onto the new agreement. |\n| `type` | **Yes** | none | `CALL_OFF` |\n\n### The fields\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `id` | text | No, **Yes** when `mode=PATCH` | (none) | Leave it out to create |\n| `name` | text | **Yes** | (none) | The agreement's name. Must be unique in your company account. |\n| `supplierId` | text | **Yes when creating** | (none) | Id from the **Suppliers** section |\n| `supplierName` | text | No | (none) | Stored as sent. It is not looked up from `supplierId`. |\n| `hidePrice` | true / false | No | (leave as stored) | `true` hides the agreement's prices from the people using it |\n| `validFrom` / `validTo` | date | No | (none) | **`YYYY-MM-DD`**, a date, with no time. `validTo` before `validFrom` is a `400`. |\n| `type` | choice | No | `CALL_OFF` | `CALL_OFF`. `CONCRETE` exists and is not covered here. |\n| `status` | choice | No | `INACTIVE` | `ACTIVE` or `INACTIVE`. **Ignored on create**, see below. |\n| `tenantProjectAssignments` | list | No | (leave as stored) | Who may call off against it. Each entry has `tenantId`, `allProjects` and `projectIds`. |\n\n> **`status` is ignored when you create.** A new agreement is always `INACTIVE` with an import status of `DRAFT`, whatever you send, it has no positions yet, so it could not be activated even if the field were honoured. Write the positions, then use \"Set an agreement active or inactive\".\n\n> **Omitting `tenantProjectAssignments` on an update leaves the stored list alone.** This is the opposite of a price list, where omitting it clears the list. An empty list here is also treated as \"not stated\", so there is no way to clear the assignments through this call.\n\n### What you get back\n\nThe whole agreement:\n\n| Field | Meaning |\n| --- | --- |\n| `id`, `companyAccountId`, `name` | Identity |\n| `supplierId`, `supplierName`, `hidePrice` | The supplier and price visibility |\n| `type` | `CALL_OFF` |\n| `status` | `ACTIVE` or `INACTIVE`, whether it can be called off |\n| `importStatus` | Where the file import stands: `DRAFT`, `PROCESSING`, `PROCESSED`, `PARTIAL`, `FAILED` and others. Not the same thing as `status`. |\n| `validFrom`, `validTo` | `YYYY-MM-DD` |\n| `totalCount` | How many positions it has |\n| `errorCount`, `errorMessage` | Rows the last import could not read |\n| `documentId`, `publicUrl`, `originalFilename`, `uploadedByName` | The agreement file, once one is uploaded |\n| `tenantProjectAssignments` | Who may call off against it |\n| `attachments` | Supporting documents. Empty until something is attached. |\n| `createdAt`, `lastModifiedAt` | Timestamps, `YYYY-MM-DDThh:mm:ss` |\n\n> Empty fields are left out of the answer rather than returned as `null`.\n\n### What happens next\n\nThe agreement exists but is `INACTIVE` and has no positions. Write the positions with \"Create or update positions (bulk)\", then activate it.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `400`none`supplierId is required when creating a call-off through the public API` | No `supplierId` | Fetch one from the **Suppliers** section. |\n| `400`none`name is required` | No `name` | Every agreement needs one. |\n| `400`none`validTo must not be before validFrom` | The dates are the wrong way round | Check both. |\n| `400`, the dates were rejected | You sent `2026-07-01T00:00:00` | An agreement takes `2026-07-01`. The date-and-time form is the price list's. |\n| `409`none`Call-off with name '…' already exists for this company` | The name is taken | Names must be unique per company account. |\n| The agreement came back `INACTIVE` although you sent `ACTIVE` | `status` is ignored on create | Use \"Set an agreement active or inactive\" after writing the positions. |\n\n### What we could not confirm\n\nNothing. Everything on this page was read off the interface.","tags":["Price Lists"],"parameters":[{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID. It is stamped onto the new agreement.","schema":{"type":"string"}},{"name":"type","in":"query","required":true,"description":"CALL_OFF","schema":{"type":"string"},"example":"CALL_OFF"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"example":{"name":"Bewehrungsstahl Rahmenabruf 2026","supplierId":"S-001","supplierName":"Stahlhandel Rheinland GmbH","hidePrice":false,"type":"CALL_OFF","validFrom":"2026-07-01","validTo":"2026-12-31","tenantProjectAssignments":[{"tenantId":"T-001","allProjects":true,"projectIds":[]},{"tenantId":"T-002","allProjects":false,"projectIds":["P-100","P-101"]}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"200-ok-the-new-agreement-inactive":{"summary":"200 OK, the new agreement, INACTIVE","value":{"id":"CO-2026072914001","companyAccountId":"C0325110620407662","name":"Bewehrungsstahl Rahmenabruf 2026","supplierId":"S-001","supplierName":"Stahlhandel Rheinland GmbH","hidePrice":false,"type":"CALL_OFF","status":"INACTIVE","importStatus":"DRAFT","validFrom":"2026-07-01","validTo":"2026-12-31","totalCount":0,"tenantProjectAssignments":[{"tenantId":"T-001","allProjects":true}],"createdAt":"2026-09-29T11:04:12","lastModifiedAt":"2026-09-29T11:04:12"}}}}}}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/master-articles/pricelists/{pricelistId}":{"get":{"operationId":"lookUpOnePriceList","summary":"Look up one price list / Look up one agreement","description":"#### Look up one price list\n\n### What this call does\n\nFetches one price list by its id. New in version 3.8.0.\n\n*Last updated: 29.09.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- The price list `id`, from \"Find price lists\" or from the answer to a create.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID. The price list must belong to it. |\n| `PL-2026042421572` (in the path) | **Yes** | none | The price list you want |\n\n### What you get back\n\n`200 OK` with the single price list, the same shape as one entry of `data` in \"Find price lists\".\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `404`none`PriceList not found` | The id does not exist, belongs to another company account, **or is a call-off agreement's** | Try the same id on \"Look up one agreement\" in **Price Lists → Call-Off**. |\n\n### What we could not confirm\n\nNothing. Everything on this page was read off the interface.\n\n#### Look up one agreement\n\n### What this call does\n\nFetches one call-off agreement by its id.\n\n*Last updated: 29.09.2026*\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `type` | **Yes** | none | `CALL_OFF` |\n| `CO-2026072914001` (in the path) | **Yes** | none | The agreement you want |\n\n### What you get back\n\nThe whole agreement:\n\n| Field | Meaning |\n| --- | --- |\n| `id`, `companyAccountId`, `name` | Identity |\n| `supplierId`, `supplierName`, `hidePrice` | The supplier and price visibility |\n| `type` | `CALL_OFF` |\n| `status` | `ACTIVE` or `INACTIVE`, whether it can be called off |\n| `importStatus` | Where the file import stands: `DRAFT`, `PROCESSING`, `PROCESSED`, `PARTIAL`, `FAILED` and others. Not the same thing as `status`. |\n| `validFrom`, `validTo` | `YYYY-MM-DD` |\n| `totalCount` | How many positions it has |\n| `errorCount`, `errorMessage` | Rows the last import could not read |\n| `documentId`, `publicUrl`, `originalFilename`, `uploadedByName` | The agreement file, once one is uploaded |\n| `tenantProjectAssignments` | Who may call off against it |\n| `attachments` | Supporting documents. Empty until something is attached. |\n| `createdAt`, `lastModifiedAt` | Timestamps, `YYYY-MM-DDThh:mm:ss` |\n\n> Empty fields are left out of the answer rather than returned as `null`.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `404`none`CALL_OFF_1001` | Unknown id, another company's, **or a price list's** | Try \"Look up one price list\" with the same id. |\n| `400`none`type … is not a draw-down kind` | Wrong `type` in the address line | Use `CALL_OFF`. |\n\n### What we could not confirm\n\nNothing. Everything on this page was read off the interface.","tags":["Price Lists"],"parameters":[{"name":"pricelistId","in":"path","required":true,"schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID. The price list must belong to it.","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"CALL_OFF","schema":{"type":"string"},"example":"CALL_OFF"}],"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"200-ok-the-price-list":{"summary":"200 OK, the price list","value":{"id":"C242607014839210567","companyAccountId":"C0325110620407662","name":"Betonstahl Rahmenpreise 2026 Q3","description":"Rahmenvereinbarung Bewehrungsstahl, Werk Leipzig","type":"STANDARD","priority":10,"supplierId":"S-001","supplierName":"Stahlhandel Rheinland GmbH","hidePrice":false,"currency":"EUR","status":"ACTIVE","validFrom":"2026-07-01T00:00:00","validTo":"2026-09-30T23:59:59","totalCount":1284,"totalVariants":96,"tenantProjectAssignments":[{"tenantId":"T-001","allProjects":true}],"variantConfig":{"source":"USER_DIFFERENTIATOR","differentiatorFields":["packagingSize","quantityPerPackage"]},"createdAt":"2026-06-28T10:30:00","lastModifiedAt":"2026-07-01T09:15:00"}},"200-ok-the-agreement":{"summary":"200 OK, the agreement","value":{"id":"CO-2026072914001","companyAccountId":"C0325110620407662","name":"Bewehrungsstahl Rahmenabruf 2026","supplierId":"S-001","supplierName":"Stahlhandel Rheinland GmbH","hidePrice":false,"type":"CALL_OFF","status":"INACTIVE","importStatus":"DRAFT","validFrom":"2026-07-01","validTo":"2026-12-31","totalCount":0,"tenantProjectAssignments":[{"tenantId":"T-001","allProjects":true}],"createdAt":"2026-09-29T11:04:12","lastModifiedAt":"2026-09-29T11:04:12"}}}}}}}},"patch":{"operationId":"changeOneAgreement","summary":"Change one agreement","description":"### What this call does\n\nChanges one call-off agreement. Only the fields you send are written.\n\n*Last updated: 29.09.2026*\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `type` | **Yes** | none | `CALL_OFF` |\n| `CO-2026072914001` (in the path) | **Yes** | none | The agreement to change |\n\n### The fields\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `id` | text | No, **Yes** when `mode=PATCH` | (none) | Leave it out to create |\n| `name` | text | **Yes** | (none) | The agreement's name. Must be unique in your company account. |\n| `supplierId` | text | **Yes when creating** | (none) | Id from the **Suppliers** section |\n| `supplierName` | text | No | (none) | Stored as sent. It is not looked up from `supplierId`. |\n| `hidePrice` | true / false | No | (leave as stored) | `true` hides the agreement's prices from the people using it |\n| `validFrom` / `validTo` | date | No | (none) | **`YYYY-MM-DD`**, a date, with no time. `validTo` before `validFrom` is a `400`. |\n| `type` | choice | No | `CALL_OFF` | `CALL_OFF`. `CONCRETE` exists and is not covered here. |\n| `status` | choice | No | `INACTIVE` | `ACTIVE` or `INACTIVE`. **Ignored on create**, see below. |\n| `tenantProjectAssignments` | list | No | (leave as stored) | Who may call off against it. Each entry has `tenantId`, `allProjects` and `projectIds`. |\n\n> **`status` is ignored when you create.** A new agreement is always `INACTIVE` with an import status of `DRAFT`, whatever you send, it has no positions yet, so it could not be activated even if the field were honoured. Write the positions, then use \"Set an agreement active or inactive\".\n\n> **Omitting `tenantProjectAssignments` on an update leaves the stored list alone.** This is the opposite of a price list, where omitting it clears the list. An empty list here is also treated as \"not stated\", so there is no way to clear the assignments through this call.\n\n> **This call does not change the status.** `status` in the payload is not what switches an agreement on. Use \"Set an agreement active or inactive\".\n\n### What you get back\n\nThe whole agreement:\n\n| Field | Meaning |\n| --- | --- |\n| `id`, `companyAccountId`, `name` | Identity |\n| `supplierId`, `supplierName`, `hidePrice` | The supplier and price visibility |\n| `type` | `CALL_OFF` |\n| `status` | `ACTIVE` or `INACTIVE`, whether it can be called off |\n| `importStatus` | Where the file import stands: `DRAFT`, `PROCESSING`, `PROCESSED`, `PARTIAL`, `FAILED` and others. Not the same thing as `status`. |\n| `validFrom`, `validTo` | `YYYY-MM-DD` |\n| `totalCount` | How many positions it has |\n| `errorCount`, `errorMessage` | Rows the last import could not read |\n| `documentId`, `publicUrl`, `originalFilename`, `uploadedByName` | The agreement file, once one is uploaded |\n| `tenantProjectAssignments` | Who may call off against it |\n| `attachments` | Supporting documents. Empty until something is attached. |\n| `createdAt`, `lastModifiedAt` | Timestamps, `YYYY-MM-DDThh:mm:ss` |\n\n> Empty fields are left out of the answer rather than returned as `null`.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `404`none`CALL_OFF_1001` | Unknown id, another company's, or a price list's | Check it with \"Find call-off agreements\". |\n| `400`none`validTo must not be before validFrom` | The dates are the wrong way round | Check both. |\n| `409`none`Call-off with name '…' already exists` | The new name is taken | Names are unique per company account. |\n| The tenant assignments did not change | An empty list counts as \"not stated\" here | There is no way to clear them through this call; ask your Cathago contact. |\n\n### What we could not confirm\n\nNothing. Everything on this page was read off the interface.","tags":["Price Lists"],"parameters":[{"name":"pricelistId","in":"path","required":true,"schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID","schema":{"type":"string"}},{"name":"type","in":"query","required":true,"description":"CALL_OFF","schema":{"type":"string"},"example":"CALL_OFF"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"example":{"name":"Bewehrungsstahl Rahmenabruf 2026","supplierId":"S-001","supplierName":"Stahlhandel Rheinland GmbH","hidePrice":false,"type":"CALL_OFF","validFrom":"2026-07-01","validTo":"2026-12-31","tenantProjectAssignments":[{"tenantId":"T-001","allProjects":true,"projectIds":[]},{"tenantId":"T-002","allProjects":false,"projectIds":["P-100","P-101"]}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"200-ok-the-agreement-as-it-now-stands":{"summary":"200 OK, the agreement as it now stands","value":{"id":"CO-2026072914001","companyAccountId":"C0325110620407662","name":"Bewehrungsstahl Rahmenabruf 2026","supplierId":"S-001","supplierName":"Stahlhandel Rheinland GmbH","hidePrice":false,"type":"CALL_OFF","status":"INACTIVE","importStatus":"DRAFT","validFrom":"2026-07-01","validTo":"2026-12-31","totalCount":0,"tenantProjectAssignments":[{"tenantId":"T-001","allProjects":true}],"createdAt":"2026-09-29T11:04:12","lastModifiedAt":"2026-09-29T11:04:12"}}}}}}}},"delete":{"operationId":"deleteOneAgreement","summary":"Delete one agreement","description":"### What this call does\n\nDeletes one call-off agreement, its positions and the articles projected from them.\n\n*Last updated: 29.09.2026*\n\n> **This cannot be undone.**\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `type` | **Yes** | none | `CALL_OFF` |\n| `CO-2026072914001` (in the path) | **Yes** | none | The agreement to delete |\n\n### Two conditions, both of them absolute\n\n| Condition | If it is not met |\n| --- | --- |\n| The agreement is `INACTIVE` | `409`none`Call-off … cannot be deleted: it is ACTIVE — deactivate it first` |\n| Nothing has ever been called off against it | `409`none`CALL_OFF_1011` |\n\n> **A drawn-against agreement can never be deleted, not even after it is deactivated.** It is the record behind call-off documents that have already gone out. Deactivate it and leave it.\n\n### What you get back\n\n`204 No Content` with an empty body.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `409`none`… it is ACTIVE — deactivate it first` | It is switched on | Set it `INACTIVE`, then delete. |\n| `409` after deactivating it | Something has been called off against it | It cannot be deleted at all. Leave it `INACTIVE`. |\n| `404`none`CALL_OFF_1001` | Unknown id, another company's, or a price list's | Use \"Delete price lists (bulk)\" for a price list. |\n\n### What we could not confirm\n\nNothing. Everything on this page was read off the interface.","tags":["Price Lists"],"parameters":[{"name":"pricelistId","in":"path","required":true,"schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID","schema":{"type":"string"}},{"name":"type","in":"query","required":true,"description":"CALL_OFF","schema":{"type":"string"},"example":"CALL_OFF"}],"responses":{"default":{"description":"No example response is published for this call."}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/master-articles/pricelists/{pricelistId}/attachments":{"post":{"operationId":"addSupportingDocuments","summary":"Add supporting documents","description":"### What this call does\n\nAttaches supporting documents to an agreement, drawings, specifications, correspondence. As many as you like, unlike the agreement's own file.\n\n*Last updated: 29.09.2026*\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `type` | **Yes** | none | `CALL_OFF` |\n| `CO-2026072914001` (in the path) | **Yes** | none | The agreement |\n\n### The fields\n\nYou send a **list** of attachments, even when there is only one.\n\n| Field | Type | Required | Meaning |\n| --- | --- | --- | --- |\n| `documentId` | text | one of three | A file already stored in Cathago |\n| `documentUrl` | text | one of three | A web address Cathago fetches the file from |\n| `fileInBytes` | text (Base64) | one of three | The file itself, Base64-encoded |\n| `documentName` | text | No | The file name to show |\n| `documentFormat` | choice | No | `PDF`, `DOC`, `DOCX`, `JPEG`, `JPG`, `PNG`, `CSV`, `XLSX`, `XLS`, `XML`, `JSON`, `DAT`, `WDA` |\n| `attachmentType` | text | No | Your own label for what kind of document it is |\n| `externalId` | text | No | Your own id for it, echoed back |\n\n> **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.\n\n> `fileInBytes` is Base64 inside JSON, so the payload is about a third larger than the file. `documentUrl` is the better choice for anything big.\n\n### They are stored one at a time, in the order you sent them\n\nEach one is appended to the agreement before the next is started. The order in the answer is the order you sent.\n\n### What you get back\n\n`200 OK` with one entry per attachment: `id`, `externalId`, `documentId`, `fileName`, `url`, `attachmentType`, `createdAt` and `lastModifiedAt`.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `404`none`CALL_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. |\n| 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. |\n| 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. |\n\n### What we could not confirm\n\nWhether sending two of `documentId`, `documentUrl` and `fileInBytes` together is refused or whether one silently wins. Send exactly one.","tags":["Price Lists"],"parameters":[{"name":"pricelistId","in":"path","required":true,"schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID","schema":{"type":"string"}},{"name":"type","in":"query","required":true,"description":"CALL_OFF","schema":{"type":"string"},"example":"CALL_OFF"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array"},"example":[{"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"}]}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"200-ok-the-stored-attachments":{"summary":"200 OK, the stored attachments","value":[{"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"}]}}}}}}},"delete":{"operationId":"removeSupportingDocuments","summary":"Remove supporting documents","description":"### What this call does\n\nRemoves supporting documents from an agreement.\n\n*Last updated: 29.09.2026*\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `type` | **Yes** | none | `CALL_OFF` |\n| `CO-2026072914001` (in the path) | **Yes** | none | The agreement |\n\n### The fields\n\n| Field | Type | Required | Meaning |\n| --- | --- | --- | --- |\n| `attachmentIds` | list of text | **Yes** | The `id` field of each attachment, from \"Look up one agreement\". Empty gives `400`none`attachmentIds must not be empty`. |\n\n> These are the attachment ids (`ATT-…`), not the `documentId`s.\n\n### What you get back\n\n`204 No Content` with an empty body.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `400`none`attachmentIds must not be empty` | The list is empty or missing | Name at least one id. |\n| `204` but the attachment is still there | You sent `documentId`s instead of attachment ids | Read `attachments[].id` from \"Look up one agreement\". |\n| `404`none`CALL_OFF_1001` | Unknown agreement id, another company's, or a price list's | Check it with \"Find call-off agreements\". |\n\n### What we could not confirm\n\nNothing. Everything on this page was read off the interface.","tags":["Price Lists"],"parameters":[{"name":"pricelistId","in":"path","required":true,"schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID","schema":{"type":"string"}},{"name":"type","in":"query","required":true,"description":"CALL_OFF","schema":{"type":"string"},"example":"CALL_OFF"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"example":{"attachmentIds":["ATT-2026092911501","ATT-2026092911502"]}}}},"responses":{"default":{"description":"No example response is published for this call."}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/master-articles/pricelists/{pricelistId}/file":{"post":{"operationId":"uploadAFileToAPriceList","summary":"Upload a file to a price list / Upload the agreement file","description":"#### Upload a file to a price list\n\n### What this call does\n\nStores your supplier's price file on the price list.\n\n*Last updated: 29.09.2026*\n\n> **This stores the file. It does not read it in.** The parts do not appear from this call. Either maintain them through **Products → Standard**, or have somebody start the import in the Cathago web app. `totalCount` stays where it was until then.\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- The price list `id`.\n- The file itself.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `PL-2026042421572` (in the path) | **Yes** | none | The price list to attach the file to |\n\n### How to send it\n\nThis is the one call in the section that is **not** JSON. Send it as `multipart/form-data` with a single part named `file`.\n\n- **In Postman:** the **Body** tab is already set to `form-data` with a `file` key. Click **Select Files** and pick your file.\n- **In your own program:** set `Content-Type: multipart/form-data` and name the part `file` exactly. Do not set the `Content-Type` header by hand in Postman, it has to carry the multipart boundary, and Postman writes that for you.\n\n### What you get back\n\n`200 OK` with the price list, now carrying `documentId`, `publicUrl`, `originalFilename`, `fileType`, `fileTypeCategory` and `fileSize`.\n\n### Uploading a second time replaces the first file\n\nThe previous file is deleted after the new one is stored. There is no version history and no way to get the old file back through this interface.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `400`, the part was not found | The form field is not named `file` | Name it exactly `file`, lower case. |\n| `404`none`PriceList not found` | Unknown id, another company's, or a call-off agreement's | Check it with \"Find price lists\". |\n| The upload worked but `totalCount` is still `0` | The file is stored, not read | This call never imports. See the note at the top. |\n\n### What we could not confirm\n\nWhich file types are refused, and whether there is an upper size limit. Spreadsheets, CSV, PDF and Datanorm files are all accepted; we could not establish where the boundary is.\n\n#### Upload the agreement file\n\n### What this call does\n\nStores the agreement document, the signed agreement, the supplier's price sheet, on the agreement.\n\n*Last updated: 29.09.2026*\n\n> **This stores the file. It does not read it in.** No positions appear from this call. Write them with \"Create or update call-off products (bulk)\" in **Products → Call-Off**, or have somebody start the import in the Cathago web app.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `type` | **Yes** | none | `CALL_OFF` |\n| `CO-2026072914001` (in the path) | **Yes** | none | The agreement |\n\n### How to send it\n\n`multipart/form-data` with a single part named `file`.\n\n- **In Postman:** the **Body** tab is already set to `form-data` with a `file` key. Click **Select Files**.\n- **In your own program:** name the part `file` exactly, and do not set `Content-Type` by hand, it has to carry the multipart boundary.\n\n### What you get back\n\n`200 OK` with the agreement, now carrying `documentId`, `publicUrl` and `originalFilename`.\n\n### Uploading a second time replaces the first file\n\nThe previous file is deleted once the new one is stored. There is no version history.\n\n> **This is the agreement's *own* document, of which there is exactly one.** Supporting documents, drawings, specifications, correspondence, go through \"Add supporting documents\" instead, and there can be many of those.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `400`, the part was not found | The form field is not named `file` | Name it exactly `file`, lower case. |\n| `404`none`CALL_OFF_1001` | Unknown id, another company's, or a price list's | Use \"Upload a file to a price list\" for a price list. |\n| The upload worked but `totalCount` is still `0` | The file is stored, not read | This call never imports. |\n\n### What we could not confirm\n\nWhich file types are refused, and whether there is an upper size limit.","tags":["Price Lists"],"parameters":[{"name":"pricelistId","in":"path","required":true,"schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"CALL_OFF","schema":{"type":"string"},"example":"CALL_OFF"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"Required. The file itself."}}},"examples":{}}}},"responses":{"default":{"description":"No example response is published for this call."}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/master-articles/pricelists/{pricelistId}/products/bulk":{"post":{"operationId":"createOrUpdateProductsInAPriceList","summary":"Create or update products in a price list (bulk) / Create or update call-off products (bulk)","description":"#### Create or update products in a price list (bulk)\n\n### What this call does\n\nCreates or updates parts on one price list, the list named in the address line, in a single call.\n\n*Last updated: 29.09.2026*\n\n### Read this first: two answer shapes\n\n| You send | You get | Behaviour on a bad row |\n| --- | --- | --- |\n| nothing extra | A plain array of the written products | **The whole call fails** with a `4xx`, and the rows that already succeeded **stay written**. You cannot tell from the answer which ones those were. |\n| `response=summary` | `{ \"summary\": …, \"products\": […], \"errors\": […], \"warnings\": […] }` | `200`, always. Every rejected row is named with its position in your payload. |\n\n**The write itself is identical.** Neither shape is transactional. `response=summary` only changes what you are told about it, which is why it is the one to use for anything unattended.\n\n> Any other value of `response` is a `400`. Treating a typo as \"not set\" would silently hand you back the shape you were trying to avoid.\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- The price list `id` for the address line, from the **Price Lists** section.\n- That price list must already have a `supplierId` on it.\n\n### The three modes (`mode`)\n\n| `mode` | What happens | What each row needs |\n| --- | --- | --- |\n| `ADD_OR_UPDATE` | **Default.** Known part = update, unknown = create. | Nothing in particular |\n| `ADD` | Create only. An existing article gives `409`. | `id` **or** `articleNumber` |\n| `PATCH` | Update only. An unknown article gives `404`. | `id` **or** `articleNumber` |\n\nA row in `ADD` or `PATCH` mode with neither is rejected before anything is written: `400 <mode> mode requires id or articleNumber on each product`.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `PL-2026042421572` (in the path) | **Yes** | none | The price list these parts go on |\n| `mode` | No | `ADD_OR_UPDATE` | One of the three modes above |\n| `response` | No | (plain array) | `summary` for the per-row report |\n\n### How a row is matched to an existing part\n\n`id` first, then `articleNumber` within the price list's supplier. An `articleNumber` is fixed once the part exists, you cannot rename one through this call.\n\n### The fields\n\nYou send a **list** of parts, even when there is only one. Everything is optional except what the mode requires.\n\n**Identity**\n\n| Field | Type | Meaning |\n| --- | --- | --- |\n| `id` | text | Cathago product ID, tried before `articleNumber` |\n| `articleNumber` | text | Your article number. Fixed once created. |\n| `ean` | text | EAN / GTIN, free text |\n\n**Description**\n\n`productTitle`, `description`, `keywords`, `imageUrl`, `dataSheetName`, `dataSheetUrl`, `category`, `subcategory`, `subcategory2`, `subcategory3`, `manufacturers` (a list of manufacturer **names**, not ids), `attributes` (your own key/value pairs, values always text).\n\n> A blank category level ends the chain. `subcategory3` under a blank `subcategory2` is dropped.\n\n**Packaging and quantity**\n\n`packagingUnit`, `packagingSize`, `quantityUnit`, `quantityUnitPerPackage`, `billingUnit`, `inventory`, `quantityPerPackage`, `billingQuantity`.\n\n> `quantityUnitPerPackage` is read for variant grouping only. It is never stored and never comes back.\n\n**Price**\n\n| Field | Meaning |\n| --- | --- |\n| `price`, `pricePerUnit`, `pricePerPackage`, `grossPricePerPackage`, `billingPrice` | The figures themselves |\n| `taxes` | A VAT **percentage rate**, not an amount |\n| `discount` | A single discount percentage, the older way |\n| `discounts`, `surcharges` | The newer way, a named stack, see below |\n| `minOrderQty`, `maxOrderQty` | Ordering limits. Leave `maxOrderQty` out for unlimited; `0` means zero. |\n| `leadTimeDays` | Whole days |\n| `validFrom`, `validTo` | Price validity |\n\n**Hire**\n\n`rentalPricePerDay`, `rentalPricePerWeek`, `rentalPricePerMonth`, `rentalDeposit`, `rentalMinDurationDays`, `rentalMaxDurationDays`.\n\n**Kind**\n\n| Field | Values | Default |\n| --- | --- | --- |\n| `type` | `STANDARD`, `CALL_OFF`, `CONCRETE` | `STANDARD` **on create only**, left as stored on an update |\n\n> An unknown value of `type` is **dropped without an error**, unlike `type` on a price list which is rejected. This is the silent half of the rule on the start page. Check the answer.\n\n### Discounts and surcharges\n\nEach entry is `{ \"label\": …, \"type\": …, \"value\": … }`.\n\n| Field | Required | Meaning |\n| --- | --- | --- |\n| `label` | No | Your own name for it. At most 100 characters. |\n| `type` | **Yes** | `PERCENT` or `FIXED_AMOUNT` |\n| `value` | **Yes** | Zero or more. **Never negative**, which array it sits in is what makes it a deduction or an addition. |\n\n- A `PERCENT` discount above `100` is rejected.\n- A `FIXED_AMOUNT` is stated in the basis of `listPrice` and scaled to the other list figures.\n- They are applied in order: every discount, then every surcharge, each on the previous result.\n\n**How the two arrays behave on an update:**\n\n| What you send | What happens |\n| --- | --- |\n| The field left out entirely | The stored stack is kept |\n| `[]` | The stored stack is cleared |\n| A list | The stored stack is replaced by it |\n\nThe two are independent. Sending `discounts` alone never touches `surcharges`.\n\n### Two things that only happen when a row creates a part\n\n- **The data sheet is inherited from the price list.** A new part with no `dataSheetName` / `dataSheetUrl` gets the price list's uploaded file. On an update the fields are left alone, otherwise a partial update would overwrite the part's own data sheet with the list's file.\n- **`type` defaults to `STANDARD`.** On an update, an omitted `type` leaves the stored kind alone.\n\n### What you get back, `response=summary`\n\n`200 OK`, always, whenever the batch was processed.\n\n```\n{\n  \"summary\": {\n    \"rowsSubmitted\": 500,\n    \"created\": 412,\n    \"updated\": 80,\n    \"errors\": 11,\n    \"variantStubParentsCreated\": 3,\n    \"errorsListed\": 11\n  },\n  \"products\": [ … ],\n  \"errors\":   [ … ],\n  \"warnings\": [ … ]\n}\n```\n\n| Field | Meaning |\n| --- | --- |\n| `rowsSubmitted` | How many rows you sent |\n| `created` | Parts created |\n| `updated` | Parts updated |\n| `errors` | Rows rejected |\n| `variantStubParentsCreated` | Parent parts the variant grouping had to invent. They land in `created` with no row of yours behind them. |\n| `errorsListed` | How many of `errors` are actually named in `errors[]`. Equal to `errors` unless the batch was big enough for the detail to be capped. |\n\n> **Check the arithmetic:** `rowsSubmitted = created − variantStubParentsCreated + updated + errors` If it does not add up, a row went missing and you should re-read the parts before trusting the import.\n\nEach entry of `errors[]` and `warnings[]`:\n\n| Field | Meaning |\n| --- | --- |\n| `row` | The 1-based position in the array **you sent**. `0` means the failure happened at write time, after the row was read, then `articleNumber` is your handle back to it. |\n| `articleNumber` | The row's article number |\n| `errorType` | `DUPLICATE_ARTICLE`, `ARTICLE_NOT_FOUND`, `SAVE_FAILED`, and others |\n| `message` | What went wrong, in plain text |\n\n> **`warnings` are not failures.** A reused or ambiguous category is recorded there and the row is still written. Warnings never move any counter.\n\n> **When `errorsListed` is below `errors`, `products` may contain a part whose rejection you cannot see.** Re-read the price list rather than trusting the list.\n\n### What you get back, without `response=summary`\n\n`200 OK` with a plain array of the written parts, or a `4xx` naming the **first** rejection: `<n> row(s) rejected; first: <message>`. The status comes from that first rejection:\n\n| First rejection | Status |\n| --- | --- |\n| `DUPLICATE_ARTICLE`none`ADD` onto a part that exists | `409` |\n| `ARTICLE_NOT_FOUND`none`PATCH` of a part that does not | `404` |\n| `SAVE_FAILED`, the database refused the write | `500`. Worth retrying unchanged; your payload was not the problem. |\n| anything else | `400` |\n\n> **The rows that succeeded before the failure are already saved.** That is the whole reason `response=summary` exists.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `404`none`PriceList not found` | Unknown id, another company's, or a call-off agreement's | Create the list first, or add `?type=CALL_OFF` if it is an agreement. |\n| `400`none`PriceList has no supplierId set` | The list was created without a supplier | Set `supplierId` on the price list first. |\n| `400 <mode> mode requires id or articleNumber` | A row in `ADD` or `PATCH` mode has neither | Nothing was written. Fix the row and resend. |\n| `400 Row 7: …` | That row's discount or surcharge is invalid | A modifier needs a `type` and a `value` of zero or more; a percentage discount cannot exceed 100. |\n| `409` on a row | `ADD` onto a part that already exists | Use `ADD_OR_UPDATE`. |\n| A field you sent was not saved | The field name is misspelled, or `type` held an unknown value | Both are dropped silently. Read the answer back. |\n| The part's data sheet was replaced | The row created the part and named no data sheet | Send `dataSheetName` and `dataSheetUrl` explicitly on create. |\n| Variants came out wrong | The price list's `variantConfig` decides grouping, not your rows | Check `variantConfig` on the price list. |\n\n### What we could not confirm\n\nThe full list of `errorType` values. Four are named above; others exist and carry a readable `message`. Also the exact size at which `errorsListed` starts falling below `errors`.\n\n#### Create or update call-off products (bulk)\n\n### What this call does\n\nWrites the agreement's positions, one row per article, with the quantity you agreed and the price you agreed for it.\n\n*Last updated: 29.09.2026*\n\n### The address is the product address with `?type=CALL_OFF`\n\n`/pricelists/{id}/products/bulk` is the same address **Products → Standard** uses. Adding `type=CALL_OFF` makes it write positions on an agreement instead of parts on a price list. **The fields are completely different**, a position is not a product row.\n\n| You send | You are writing |\n| --- | --- |\n| A price-list id, no `type` | A price-list product, see **Products → Standard** |\n| An agreement id and `?type=CALL_OFF` | Positions, this page |\n| An agreement id, no `type` | `404`none`PriceList not found` |\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `type` | **Yes** | none | `CALL_OFF` |\n| `CO-2026072914001` (in the path) | **Yes** | none | The agreement these positions belong to |\n| `mode` | No | `ADD_OR_UPDATE` | `ADD_OR_UPDATE`, `ADD` or `PATCH` |\n\n### The three modes (`mode`)\n\n| `mode` | What happens |\n| --- | --- |\n| `ADD_OR_UPDATE` | **Default.** Entry without `id` = create, entry with an `id` = update |\n| `ADD` | Create only. An existing `id` gives `409`none`CALL_OFF_1009`. |\n| `PATCH` | Update only. **Every** entry needs an `id`. |\n\n### The fields\n\nYou send a **list** of positions, even when there is only one.\n\n| Field | Type | Required | Meaning |\n| --- | --- | --- | --- |\n| `id` | text | **Yes** when `mode=PATCH` | The position's id. Leave it out to create. |\n| `position` | text | No | The position number as the agreement prints it, for example `01.02.030`. Free text, it is a label, not a number. |\n| `articleNumber` | text | No, but always send it | Your article number. This is what ties the position to an article. |\n| `title` | text | No | What the position is |\n| `description` | text | No | Longer text |\n| `unit` | text | No | The unit the quantity is in, for example `t`, `m²`, `Stk` |\n| `quantity` | number | No | **What you agreed.** This is what gets drawn down. |\n| `minQuantity` / `maxQuantity` | number | No | Limits per single draw-down |\n| `unitPrice` | number | No | The agreed price for one unit |\n| `discount` | number | No | A discount percentage on the position |\n| `vatRate` | number | No | A VAT **percentage rate**, not an amount |\n| `currency` | text | No | Currency code |\n| `weight` / `weightUnit` | number / text | No | Weight per unit, and its unit |\n| `attributes` | key/value | No | Your own pairs. Values are always text. |\n\n> **You never send `calledOffQty` or `openQty`.** They are the agreement's own count, and they come back on the answer. Sending them does nothing.\n\n> **`listUnitPrice` is not yours to send either.** It is the price before the position's discount, kept so that changing a position does not apply the discount a second time.\n\n### What you get back\n\n`200 OK` with one entry per position, each carrying what you sent plus:\n\n| Field | Meaning |\n| --- | --- |\n| `id` | The position's id, what a draw-down addresses |\n| `callOffId` | The agreement it belongs to |\n| `listUnitPrice` | The price before the discount |\n| `calledOffQty` | How much has been called off. Absent until the first draw. |\n| `openQty` | What is left. Absent where the position commits to no quantity. |\n| `createdAt`, `lastModifiedAt` | Timestamps |\n\n> **The entries are written one after another.** If the seventh fails, the first six stay written. After an error, read them back through \"Search call-off products\" with the agreement's id in `priceListIds`.\n\n### Reading them back\n\nUse **\"Search call-off products\"** on the page before this one, with the agreement's id in `priceListIds`. Each position comes back as an entry in the part's `prices[]`, with `priceSourceKind` = `CALL_OFF`.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `404`none`CALL_OFF_1001` | The agreement id is unknown, another company's, or a price list's | Check it with \"Find call-off agreements\". |\n| `404`none`PriceList not found` | You left `type=CALL_OFF` off the address | Add it. |\n| `400`none`PATCH mode requires id on each call-off line item` | An entry has no `id` in `PATCH` mode | Add the id, or use `ADD_OR_UPDATE`. |\n| `409`none`CALL_OFF_1009` | `mode=ADD` onto a position id that exists | Drop the `id`, or use `ADD_OR_UPDATE`. |\n| A field you sent was not saved | The field name is misspelled | Unknown fields are dropped silently. Read the answer back. |\n| `calledOffQty` came back different from what you sent | You cannot set it | It is the agreement's count. |\n\n### What we could not confirm\n\nWhat happens when you lower `quantity` below what has already been called off. It was not refused in our reading of the interface, and `openQty` would go negative.","tags":["Products"],"parameters":[{"name":"pricelistId","in":"path","required":true,"schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID","schema":{"type":"string"}},{"name":"mode","in":"query","required":false,"description":"One of the three modes above","schema":{"type":"string"},"example":"ADD_OR_UPDATE"},{"name":"response","in":"query","required":false,"description":"summary for the per-row report","schema":{"type":"string"},"example":"summary"},{"name":"type","in":"query","required":false,"description":"CALL_OFF","schema":{"type":"string"},"example":"CALL_OFF"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array"},"examples":{"create-or-update-products-in-a-price-list-bulk":{"summary":"Create or update products in a price list (bulk)","value":[{"id":"AR-2026052712307","articleNumber":"MIET-BT-LT180","ean":"4260456789012","productTitle":"Bautrockner LT 180, Kondenstrockner","description":"Kondenstrockner für Neubautrocknung, 180 l/24 h, 230 V, fahrbar.","manufacturers":["Trotec GmbH","Dantherm Group"],"category":"Mietgeräte","subcategory":"Trocknung","subcategory2":"Bautrockner","subcategory3":"Kondenstrockner","keywords":"Bautrockner, Kondenstrockner, Neubautrocknung, Mietgerät","imageUrl":"https://cdn.sander-baustoffe.de/bilder/miet-bt-lt180.jpg","dataSheetName":"Datenblatt-Bautrockner-LT180.pdf","dataSheetUrl":"https://cdn.sander-baustoffe.de/datenblaetter/miet-bt-lt180.pdf","type":"STANDARD","inventory":12,"packagingUnit":"PCS","packagingSize":"1 Gerät je Transportkiste","quantityUnit":"PCS","quantityUnitPerPackage":"PCS","billingUnit":"PCS","quantityPerPackage":1,"billingQuantity":1,"price":1890,"pricePerUnit":1890,"pricePerPackage":1890,"grossPricePerPackage":2249.1,"taxes":19,"billingPrice":1890,"discounts":[{"label":"Rahmenvertrag","type":"PERCENT","value":5}],"surcharges":[{"label":"Kleinmengenzuschlag","type":"FIXED_AMOUNT","value":12.5}],"minOrderQty":1,"maxOrderQty":4,"leadTimeDays":3,"rentalPricePerDay":24.5,"rentalPricePerWeek":132,"rentalPricePerMonth":420,"rentalDeposit":350,"rentalMinDurationDays":3,"rentalMaxDurationDays":180,"validFrom":"2026-01-01T00:00:00","validTo":"2026-12-31T23:59:59","attributes":{"Entfeuchtungsleistung":"180 l/24 h","Anschluss":"230 V / 16 A","Gewicht":"58 kg"}},{"articleNumber":"DAEM-MW-140","ean":"4260456789029","productTitle":"Mineralwolle-Dämmplatte WLG 035, 140 mm","description":"Nicht brennbare Steinwolle-Dämmplatte, Wärmeleitgruppe 035, Format 1000 x 600 mm.","manufacturers":["Rockwool","Knauf Insulation"],"category":"Dämmstoffe","subcategory":"Mineralwolle","subcategory2":"Zwischensparrendämmung","keywords":"Dämmung, Steinwolle, WLG 035, nicht brennbar","imageUrl":"https://cdn.sander-baustoffe.de/bilder/daem-mw-140.jpg","type":"STANDARD","inventory":96,"packagingUnit":"PAL","packagingSize":"43,20 m² je Palette","quantityUnit":"PCS","quantityPerPackage":72,"billingUnit":"PCS","billingQuantity":72,"price":7.8,"pricePerUnit":7.8,"pricePerPackage":561.6,"grossPricePerPackage":668.3,"taxes":19,"discounts":[],"minOrderQty":1,"maxOrderQty":24,"leadTimeDays":5,"validFrom":"2026-01-01T00:00:00","validTo":"2026-12-31T23:59:59","attributes":{"Wärmeleitgruppe":"035","Dicke":"140 mm","Brandverhalten":"A1"}},{"articleNumber":"BST-Q188A-600","productTitle":"Betonstahlmatte Q188A, 6,00 x 2,30 m","category":"Rohbau","subcategory":"Bewehrung","pricePerUnit":46.8,"pricePerPackage":46.8,"taxes":19,"minOrderQty":10}]},"create-or-update-call-off-products-bulk":{"summary":"Create or update call-off products (bulk)","value":[{"position":"01.02.030","articleNumber":"BST-B500B-12","title":"Betonstabstahl B500B, d = 12 mm","description":"Ringmaterial, gerichtet und geschnitten, Werk Leipzig.","unit":"t","quantity":400,"minQuantity":2.5,"maxQuantity":25,"unitPrice":742.5,"discount":3,"vatRate":19,"currency":"EUR","weight":1000,"weightUnit":"kg","attributes":{"Werk":"Leipzig","Lieferform":"Ring"}},{"id":"POS-2026072914330","position":"01.02.040","articleNumber":"BST-Q188A-600","title":"Betonstahlmatte Q188A, 6,00 x 2,30 m","unit":"Stk","quantity":1200,"unitPrice":46.8}]}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"200-ok-response-summary-every-row-written":{"summary":"200 OK, response=summary, every row written","value":{"summary":{"rowsSubmitted":3,"created":2,"updated":1,"errors":0,"variantStubParentsCreated":0,"errorsListed":0},"products":[{"id":"AR-2026052712307","articleNumber":"MIET-BT-LT180","productTitle":"Bautrockner LT 180, Kondenstrockner","type":"STANDARD","supplierId":"S-001","prices":[{"id":"PE-2026092911402","priceListId":"PL-2026042421572","type":"STANDARD","priceSourceKind":"PRICELIST","listPrice":1890,"price":1808,"discounts":[{"label":"Rahmenvertrag","type":"PERCENT","value":5}],"surcharges":[{"label":"Kleinmengenzuschlag","type":"FIXED_AMOUNT","value":12.5}],"taxes":19}]}],"errors":[],"warnings":[]}},"200-ok-response-summary-two-rows-rejected":{"summary":"200 OK, response=summary, two rows rejected","value":{"summary":{"rowsSubmitted":3,"created":1,"updated":0,"errors":2,"variantStubParentsCreated":0,"errorsListed":2},"products":[{"id":"AR-2026052712307","articleNumber":"MIET-BT-LT180","productTitle":"Bautrockner LT 180, Kondenstrockner","type":"STANDARD"}],"errors":[{"row":2,"articleNumber":"DAEM-MW-140","errorType":"DUPLICATE_ARTICLE","message":"Article DAEM-MW-140 already exists for supplier S-001"},{"row":0,"articleNumber":"BST-Q188A-600","errorType":"SAVE_FAILED","message":"Write timed out; the row can be sent again unchanged"}],"warnings":[{"row":1,"articleNumber":"MIET-BT-LT180","errorType":"CATEGORY_REUSED","message":"Category 'Mietgeräte' already exists and was reused"}]}},"200-ok-the-stored-call-off-products":{"summary":"200 OK, the stored call-off products","value":[{"id":"POS-2026072914329","callOffId":"CO-2026072914001","companyAccountId":"C0325110620407662","position":"01.02.030","articleNumber":"BST-B500B-12","title":"Betonstabstahl B500B, d = 12 mm","description":"Ringmaterial, gerichtet und geschnitten, Werk Leipzig.","unit":"t","quantity":400,"minQuantity":2.5,"maxQuantity":25,"listUnitPrice":765.46,"unitPrice":742.5,"discount":3,"vatRate":19,"currency":"EUR","weight":1000,"weightUnit":"kg","calledOffQty":62.5,"openQty":337.5,"attributes":{"Werk":"Leipzig","Lieferform":"Ring"},"createdAt":"2026-07-29T14:33:02","lastModifiedAt":"2026-09-29T11:58:40"}]}}}}}}},"delete":{"operationId":"deleteProductsFromAPriceList","summary":"Delete products from a price list (bulk) / Delete call-off products (bulk)","description":"#### Delete products from a price list (bulk)\n\n### What this call does\n\nTakes parts off one price list.\n\n*Last updated: 29.09.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- The price list `id` for the address line.\n- The Cathago product ids.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `PL-2026042421572` (in the path) | **Yes** | none | The price list to take them off |\n\n### The fields\n\n| Field | Type | Required | Meaning |\n| --- | --- | --- | --- |\n| `productIds` | list of text | **Yes** | Cathago product ids, the `id` field, not your `articleNumber`. |\n\n> **They must be Cathago ids.** `articleNumber` is not accepted here. Look the ids up with \"Search products\" first.\n\n### What you get back\n\n`204 No Content` with an empty body.\n\n### What \"delete\" means here\n\nThe part's **price on this list** goes. The part itself survives as long as it is priced on another list. A part that was only on this one list goes with it.\n\n> This is the same rule as deleting the price list itself, applied to a few parts instead of all of them.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `204` but the part is still there | It is priced on another price list too | Delete it from that list as well. |\n| `204` and nothing happened | The ids were `articleNumber`s, or belong to a different price list | Use the `id` from \"Search products\". |\n| `404`none`PriceList not found` | Unknown id, another company's, or a call-off agreement's | Use \"Delete call-off products (bulk)\" in **Products → Call-Off**. |\n\n### What we could not confirm\n\nWhether an unknown product id in the list stops the call or is skipped. In testing the call answered `204` either way.\n\n#### Delete call-off products (bulk)\n\n### What this call does\n\nRemoves positions from an agreement.\n\n*Last updated: 29.09.2026*\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `type` | **Yes** | none | `CALL_OFF` |\n| `CO-2026072914001` (in the path) | **Yes** | none | The agreement |\n\n### The fields\n\n| Field | Type | Required | Meaning |\n| --- | --- | --- | --- |\n| `lineItemIds` | list of text | **Yes** | The position ids. Empty gives `400`none`lineItemIds must not be empty`. |\n\n### A position that has been drawn against cannot be removed\n\n`409`none`CALL_OFF_1010`. The check runs over the whole list **before** anything is deleted, so a single drawn position stops the call and nothing is removed.\n\n> This is stricter than the agreement delete, which works through the ids one at a time.\n\n### What you get back\n\n`204 No Content` with an empty body.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `400`none`lineItemIds must not be empty` | The list is empty or missing | Name at least one id. |\n| `409`none`CALL_OFF_1010` | One of them has been called off against | Take that id out of the list and send it again. Nothing was deleted. |\n| `404`none`CALL_OFF_1001` | The agreement id is unknown, another company's, or a price list's | Check it with \"Find call-off agreements\". |\n| `204` and nothing happened | The ids belong to a different agreement | Read them from \"Search call-off products\" with this agreement's id. |\n\n### What we could not confirm\n\nNothing. Everything on this page was read off the interface.","tags":["Products"],"parameters":[{"name":"pricelistId","in":"path","required":true,"schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"CALL_OFF","schema":{"type":"string"},"example":"CALL_OFF"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"examples":{"delete-products-from-a-price-list-bulk":{"summary":"Delete products from a price list (bulk)","value":{"productIds":["AR-2026052712307","AR-2026052712308"]}},"delete-call-off-products-bulk":{"summary":"Delete call-off products (bulk)","value":{"lineItemIds":["POS-2026072914329","POS-2026072914330"]}}}}}},"responses":{"default":{"description":"No example response is published for this call."}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/master-articles/pricelists/{pricelistId}/status":{"patch":{"operationId":"setAPriceListActiveOrInactive","summary":"Set a price list active or inactive / Set an agreement active or inactive","description":"#### Set a price list active or inactive\n\n### What this call does\n\nSwitches one price list to `ACTIVE` or `INACTIVE` without touching anything else on it.\n\n*Last updated: 29.09.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- The price list `id`.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `status` | **Yes** | none | `ACTIVE` or `INACTIVE` |\n| `PL-2026042421572` (in the path) | **Yes** | none | The price list to switch |\n\n> `status` goes in the address line here, not in a payload. There is no body. The equivalent call in **Price Lists → Call-Off** takes it in a body instead, the two are not interchangeable.\n\n### What you get back\n\n`200 OK` with the whole price list as it now stands.\n\n### Why you would use this instead of a bulk update\n\nA bulk `PATCH` resets `currency` and `tenantProjectAssignments` when you leave them out. This call does not, it changes the one field and nothing else.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `400` on `status` | A value other than `ACTIVE` or `INACTIVE` | Capitalisation does not matter; spelling does. |\n| `404`none`PriceList not found` | Unknown id, another company's, or a call-off agreement's | Check it with \"Find price lists\". |\n| The list is `ACTIVE` but still wins no prices | Its validity period has passed, or it has no tenant assignment | Check `validFrom` / `validTo` and `tenantProjectAssignments`. |\n\n### What we could not confirm\n\nNothing. Everything on this page was read off the interface.\n\n#### Set an agreement active or inactive\n\n### What this call does\n\nSwitches one agreement to `ACTIVE` or `INACTIVE`. This is what makes an agreement usable.\n\n*Last updated: 29.09.2026*\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `type` | **Yes** | none | `CALL_OFF` |\n| `CO-2026072914001` (in the path) | **Yes** | none | The agreement to switch |\n\n### The fields\n\n| Field | Type | Required | Meaning |\n| --- | --- | --- | --- |\n| `status` | choice | **Yes** | `ACTIVE` or `INACTIVE` |\n\n> **The status goes in the body here.** The matching call in **Price Lists → Standard** takes it in the address line instead. The two look alike and are not interchangeable.\n\n### An agreement with no positions cannot be activated\n\n`400 This call-off has no imported positions, so it cannot be made active.`\n\nWrite the positions first. An agreement that is switched on with nothing in it would show up as callable and then refuse every draw-down.\n\n### What you get back\n\n`200 OK` with the whole agreement.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `400`none`status is required` | The body is empty, or `status` is missing | Send `{ \"status\": \"ACTIVE\" }`. |\n| `400`none`This call-off has no imported positions …` | It has no positions | Write them first. |\n| `404`none`CALL_OFF_1001` | Unknown id, another company's, or a price list's | Check it with \"Find call-off agreements\". |\n| It is `ACTIVE` but nobody can call off against it | Its validity period has passed, or it has no tenant assignment | Check `validFrom` / `validTo` and `tenantProjectAssignments`. |\n\n### What we could not confirm\n\nNothing. Everything on this page was read off the interface.","tags":["Price Lists"],"parameters":[{"name":"pricelistId","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"ACTIVE or INACTIVE","schema":{"type":"string"},"example":"INACTIVE"},{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"CALL_OFF","schema":{"type":"string"},"example":"CALL_OFF"}],"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"200-ok-status-set-to-inactive":{"summary":"200 OK, status set to INACTIVE","value":{"id":"C242607014839210567","companyAccountId":"C0325110620407662","name":"Betonstahl Rahmenpreise 2026 Q3","type":"STANDARD","priority":10,"supplierId":"S-001","supplierName":"Stahlhandel Rheinland GmbH","hidePrice":false,"currency":"EUR","status":"INACTIVE","validFrom":"2026-07-01T00:00:00","validTo":"2026-09-30T23:59:59","createdAt":"2026-06-28T10:30:00","lastModifiedAt":"2026-09-29T11:20:44"}}}}}},"default":{"description":"No example response is published for this call."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"examples":{"set-an-agreement-active-or-inactive":{"summary":"Set an agreement active or inactive","value":{"status":"ACTIVE"}}}}}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/master-articles/pricelists/bulk":{"post":{"operationId":"createOrUpdatePriceLists","summary":"Create or update price lists (bulk) / Create or update agreements (bulk)","description":"#### Create or update price lists (bulk)\n\n### What this call does\n\nCreates or updates several price lists at once, in a single call.\n\n*Last updated: 29.09.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- For every new price list, the supplier's `supplierId` from the **Suppliers** section.\n- For updates, the price list `id` from \"Find price lists\".\n\n### The three modes (`mode`)\n\n`mode` is a query parameter, not a payload field.\n\n| `mode` | What happens |\n| --- | --- |\n| `ADD_OR_UPDATE` | **Default.** Entry without `id` = create, entry with an `id` = update. Unknown id gives `404`. |\n| `ADD` | Create only. An existing `id` gives `409`, and an id you invent is ignored, ids are always generated for you. |\n| `PATCH` | Update only. **Every** entry needs an `id`. No `id` = `400`, unknown `id` = `404`. |\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID. On create it is stamped onto the new price list. |\n| `mode` | No | `ADD_OR_UPDATE` | One of the three modes above |\n\n### The fields\n\nYou send a **list** of price lists, even when there is only one.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `id` | text | No, **Yes** when `mode=PATCH` | (none) | Leave it out to create; with an id it updates. |\n| `companyAccountId` | text | No | (none) | **Leave this out.** |\n| `name` | text | No | (none) | Name of the price list. Not required. |\n| `description` | text | No | (none) | Free text |\n| `supplierId` | text | **Yes when creating** | (none) | The only required field. Missing or blank on create gives `400`. |\n| `supplierName` | text | No | (none) | Stored as sent. It is not looked up from `supplierId`. |\n| `priority` | number | No | (leave as stored) | Tie-break when a part is priced on several price lists: the **smaller** number wins. It counts last, after `ACTIVE`, the validity period, the price entry's own `precedence` and a price from the part's own supplier. |\n| `hidePrice` | true / false | No | (leave as stored) | `true` hides this list's prices from the people using it. Leave it out on an update and the stored setting is kept; leave it out on a create and the list shows its prices. |\n| `type` | choice | No | `STANDARD` **on create only** | `STANDARD`, `CALL_OFF`, `CONCRETE`, `RENTAL`. Leave it out on an update and the stored value is kept. |\n| `currency` | text | No | `EUR` | Currency code, stored as sent |\n| `status` | choice | No | `INACTIVE` | `ACTIVE` or `INACTIVE`. Without a status a new price list is **inactive** and wins no prices. |\n| `validFrom` / `validTo` | date + time | No | (none) | `YYYY-MM-DDThh:mm:ss`, no time zone |\n| `tenantProjectAssignments` | list | No | empty list | Who may use the price list. Each entry has `tenantId`, `allProjects` and `projectIds`, and an order matches when the `tenantId` is the same and either `allProjects` is `true` or the order's project id is listed in `projectIds`. An empty list matches no order at all. |\n| `variantConfig` | object | No | (none) | Variant grouping rule, see below |\n\n> **An update overwrites three omitted fields instead of leaving them alone:** `currency` becomes `EUR`, `status` becomes `INACTIVE`, and `tenantProjectAssignments` is cleared. `type`, `priority` and `hidePrice` are kept. **So with `mode=PATCH`, send every one of those three that you want to keep.**\n\n> **This is a change from version 3.7.1, and it is in your favour.** `type` used to be reset as well, so any `PATCH` that did not repeat it turned a `RENTAL` or `CALL_OFF` list into a `STANDARD` one without saying so. If your integration repeats `type` on every update to work around that, you can leave it out now, but repeating it does no harm.\n\n### The four kinds (`type`)\n\n| Value | What it is |\n| --- | --- |\n| `STANDARD` | An ordinary supplier price list. This is what the section is about. |\n| `RENTAL` | Priced per day, week or month instead of per unit. |\n| `CALL_OFF` | A call-off agreement. Create these in **Price Lists → Call-Off**, not here. |\n| `CONCRETE` | Ready-mix concrete. Not covered by these pages. |\n\n> Five older spellings are still accepted and all mean `CALL_OFF`: `ARTICLE`, `CALLOFF`, `FRAMEWORK`, `PROJECT` and `SUPPLIER`. They exist for integrations written before call-offs had their own kind. Do not use them in anything new.\n\n> **Setting `type` to `CALL_OFF` or `CONCRETE` here makes the list disappear from this section.** It becomes a call-off agreement: \"Find price lists\" stops returning it and \"Look up one price list\" answers `404` for its id. That is not a fault, it moved. Manage it from **Call-Off Agreements** afterwards.\n\n### Variants (`variantConfig`)\n\nMany parts come in several pack sizes, the same bolt in a 10 kg and a 25 kg bucket. `variantConfig` decides how such rows are grouped into one family.\n\n| `source` | What happens | What you fill in |\n| --- | --- | --- |\n| `USER_DIFFERENTIATOR` | Rows with the same `articleNumber` are grouped, and told apart by the fields you name. | `differentiatorFields`: at least one field name |\n| `SUPPLIER_COLUMN` | Rows are grouped by the value of one supplier column. | `supplierColumnField`: the column name |\n| `NONE` | No grouping. Every row stays its own part. | nothing |\n\n> It can be set **once** only: sending it again gives `409`, even with identical content, and clearing it needs your Cathago representative. Changing it does not re-group parts already read in, upload the price file again afterwards.\n\nSending `variantConfig` without `source` is a `400`, as is `USER_DIFFERENTIATOR` with an empty `differentiatorFields` or `SUPPLIER_COLUMN` with a blank `supplierColumnField`. Half a config is never stored.\n\n### What you get back\n\n`200 OK` with a JSON array, one entry per price list you sent, each showing the stored price list including the `id` it was given. The order may differ from the order you sent, so match the entries up by `id` or `name`, not by position.\n\n> **A success answer does not mean every entry succeeded.** If one entry fails you get that entry's error status instead of the array, and the entries already written **stay written**. After an error, run \"Find price lists\" and see what actually landed.\n\n### Common mistakes\n\nEvery error answer has the same shape: `code`, `message`, `timestamp` and `path`.\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| The payload is rejected | The `//` comments are still in it | Remove them, see the start page. |\n| A field you sent was not saved | The field name is misspelled. Unknown fields are dropped silently and the call still reports success. | Check the spelling above. |\n| `400`, message names a field | `supplierId` missing on create; no `id` with `mode=PATCH`; or `variantConfig` incomplete | Fill in the field the message names, or leave `variantConfig` out. |\n| `400` on `type` or `status` | A value outside the allowed list | `type`: `STANDARD`, `CALL_OFF`, `CONCRETE`, `RENTAL`. `status`: `ACTIVE`, `INACTIVE`. |\n| `404`none`PriceList not found` | The `id` does not exist, belongs to another company account, or is a call-off agreement's | Check it with \"Find price lists\". |\n| `409`none`PriceList already exists for ADD` | The id already exists and `mode=ADD` | Drop the `id`, or use `ADD_OR_UPDATE`. |\n| `409`none`variantConfig already set` | It was set once before | Leave `variantConfig` out; ask your Cathago contact to clear it. |\n| `409`none`supplierId cannot be changed` | The list already has parts on it | Delete the parts first, then re-point the supplier. |\n| The price list is suddenly `INACTIVE`, or `currency` reset to `EUR` | A `PATCH` that omitted those fields | Send every field you want kept. |\n| The price list vanished from \"Find price lists\" | `type` was set to `CALL_OFF` or `CONCRETE` | It is an agreement now. Look for it in **Price Lists → Call-Off**. |\n\n### What we could not confirm\n\nNothing. Everything on this page was read off the interface.\n\n#### Create or update agreements (bulk)\n\n### What this call does\n\nCreates or updates several call-off agreements at once.\n\n*Last updated: 29.09.2026*\n\n### The three modes (`mode`)\n\n`mode` is a query parameter, not a payload field.\n\n| `mode` | What happens |\n| --- | --- |\n| `ADD_OR_UPDATE` | **Default.** Entry without `id` = create, entry with an `id` = update |\n| `ADD` | Create only. An existing `id` gives `409`none`CALL_OFF_1009`. |\n| `PATCH` | Update only. **Every** entry needs an `id`: no `id` gives `400`none`PATCH mode requires id on each call-off`. |\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `type` | **Yes** | none | `CALL_OFF` |\n| `mode` | No | `ADD_OR_UPDATE` | One of the three modes above |\n\nYou send a **list** of agreements, even when there is only one. The fields are the same as on \"Create one agreement\".\n\n### The fields\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `id` | text | No, **Yes** when `mode=PATCH` | (none) | Leave it out to create |\n| `name` | text | **Yes** | (none) | The agreement's name. Must be unique in your company account. |\n| `supplierId` | text | **Yes when creating** | (none) | Id from the **Suppliers** section |\n| `supplierName` | text | No | (none) | Stored as sent. It is not looked up from `supplierId`. |\n| `hidePrice` | true / false | No | (leave as stored) | `true` hides the agreement's prices from the people using it |\n| `validFrom` / `validTo` | date | No | (none) | **`YYYY-MM-DD`**, a date, with no time. `validTo` before `validFrom` is a `400`. |\n| `type` | choice | No | `CALL_OFF` | `CALL_OFF`. `CONCRETE` exists and is not covered here. |\n| `status` | choice | No | `INACTIVE` | `ACTIVE` or `INACTIVE`. **Ignored on create**, see below. |\n| `tenantProjectAssignments` | list | No | (leave as stored) | Who may call off against it. Each entry has `tenantId`, `allProjects` and `projectIds`. |\n\n> **`status` is ignored when you create.** A new agreement is always `INACTIVE` with an import status of `DRAFT`, whatever you send, it has no positions yet, so it could not be activated even if the field were honoured. Write the positions, then use \"Set an agreement active or inactive\".\n\n> **Omitting `tenantProjectAssignments` on an update leaves the stored list alone.** This is the opposite of a price list, where omitting it clears the list. An empty list here is also treated as \"not stated\", so there is no way to clear the assignments through this call.\n\n### What you get back\n\n`200 OK` with a JSON array, one entry per agreement you sent. The order may differ from the order you sent, so match the entries up by `id` or `name`, not by position.\n\n> **A success answer does not mean every entry succeeded.** The entries are written one after another. If the third fails you get that entry's error, and the first two **stay written**. After an error, run \"Find call-off agreements\" and see what actually landed.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `400`none`PATCH mode requires id on each call-off` | An entry has no `id` in `PATCH` mode | Add the id, or use `ADD_OR_UPDATE`. |\n| `400`none`supplierId is required …` | A create entry has no supplier | Only updates may leave it out. |\n| `409`none`Call-off already exists for ADD: id=…` | `mode=ADD` onto an id that is taken | Drop the `id`, or use `ADD_OR_UPDATE`. |\n| `409`none`Call-off with name '…' already exists` | Two entries share a name, or the name is already used | Names are unique per company account. |\n| Only some of the agreements landed | An entry failed part way through | The ones before it stay written. Re-read with the search. |\n\n### What we could not confirm\n\nNothing. Everything on this page was read off the interface.","tags":["Price Lists"],"parameters":[{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID. On create it is stamped onto the new price list.","schema":{"type":"string"}},{"name":"mode","in":"query","required":false,"description":"One of the three modes above","schema":{"type":"string"},"example":"ADD_OR_UPDATE"},{"name":"type","in":"query","required":false,"description":"CALL_OFF","schema":{"type":"string"},"example":"CALL_OFF"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array"},"examples":{"create-or-update-price-lists-bulk":{"summary":"Create or update price lists (bulk)","value":[{"name":"Betonstahl Rahmenpreise 2026 Q3","description":"Rahmenvereinbarung Bewehrungsstahl, Werk Leipzig","supplierId":"S-001","supplierName":"Stahlhandel Rheinland GmbH","priority":10,"hidePrice":false,"type":"STANDARD","currency":"EUR","status":"ACTIVE","validFrom":"2026-07-01T00:00:00","validTo":"2026-09-30T23:59:59","variantConfig":{"source":"USER_DIFFERENTIATOR","differentiatorFields":["packagingSize","quantityPerPackage"],"supplierColumnField":null},"tenantProjectAssignments":[{"tenantId":"T-001","allProjects":true,"projectIds":[]},{"tenantId":"T-002","allProjects":false,"projectIds":["P-100","P-101"]}]},{"id":"C242607014839210567","name":"Betonstahl Rahmenpreise 2026 Q3 (korrigiert)","currency":"EUR","status":"ACTIVE","tenantProjectAssignments":[{"tenantId":"T-001","allProjects":true,"projectIds":[]}]}]},"create-or-update-agreements-bulk":{"summary":"Create or update agreements (bulk)","value":[{"name":"Bewehrungsstahl Rahmenabruf 2026","supplierId":"S-001","supplierName":"Stahlhandel Rheinland GmbH","type":"CALL_OFF","validFrom":"2026-07-01","validTo":"2026-12-31","tenantProjectAssignments":[{"tenantId":"T-001","allProjects":true,"projectIds":[]}]},{"id":"CO-2026072914001","name":"Bewehrungsstahl Rahmenabruf 2026 (verlängert)","validTo":"2027-03-31"}]}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"200-ok-the-stored-price-lists":{"summary":"200 OK, the stored price lists","value":[{"id":"C242607014839210567","companyAccountId":"C0325110620407662","name":"Betonstahl Rahmenpreise 2026 Q3","description":"Rahmenvereinbarung Bewehrungsstahl, Werk Leipzig","type":"STANDARD","priority":10,"supplierId":"S-001","supplierName":"Stahlhandel Rheinland GmbH","hidePrice":false,"currency":"EUR","status":"ACTIVE","validFrom":"2026-07-01T00:00:00","validTo":"2026-09-30T23:59:59","totalCount":0,"totalVariants":0,"tenantProjectAssignments":[{"tenantId":"T-001","allProjects":true},{"tenantId":"T-002","allProjects":false,"projectIds":["P-100","P-101"]}],"variantConfig":{"source":"USER_DIFFERENTIATOR","differentiatorFields":["packagingSize","quantityPerPackage"]},"createdAt":"2026-09-29T11:04:12","lastModifiedAt":"2026-09-29T11:04:12"}]},"200-ok-the-stored-agreements":{"summary":"200 OK, the stored agreements","value":[{"id":"CO-2026072914001","companyAccountId":"C0325110620407662","name":"Bewehrungsstahl Rahmenabruf 2026","supplierId":"S-001","supplierName":"Stahlhandel Rheinland GmbH","hidePrice":false,"type":"CALL_OFF","status":"INACTIVE","importStatus":"DRAFT","validFrom":"2026-07-01","validTo":"2026-12-31","totalCount":0,"tenantProjectAssignments":[{"tenantId":"T-001","allProjects":true}],"createdAt":"2026-09-29T11:04:12","lastModifiedAt":"2026-09-29T11:04:12"}]}}}}}}},"delete":{"operationId":"deletePriceLists","summary":"Delete price lists (bulk) / Delete agreements (bulk)","description":"#### Delete price lists (bulk)\n\n### What this call does\n\nDeletes one or more price lists, and the parts that belong to them.\n\n*Last updated: 29.09.2026*\n\n> **This cannot be undone.** Deleting a price list also deletes every part that exists only on this list, together with its prices. A part that also sits on another price list survives, and keeps that other list's price. Switch the list to `INACTIVE` instead if you only want it out of the way.\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- The price list ids.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n\n### The fields\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `priceListIds` | list of text | **Yes** | none | The price lists to delete. An empty list gives `400`none`priceListIds must not be empty`. |\n\n### What you get back\n\n`204 No Content` with an empty body.\n\n> **The ids are deleted one after another, not all at once.** If the fourth id fails, the first three are already gone and stay gone. There is no roll-back. After an error, run \"Find price lists\" and see what is left.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `400`none`priceListIds must not be empty` | The list is empty, missing, or holds only blank strings | Name at least one id. |\n| `404`none`PriceList not found` | One of the ids is unknown, another company's, or a call-off agreement's | The ids before it in the list are already deleted. |\n| Parts you expected to survive are gone | They existed only on this price list | Put them on a second price list before deleting. |\n\n### What we could not confirm\n\nNothing. Everything on this page was read off the interface.\n\n#### Delete agreements (bulk)\n\n### What this call does\n\nDeletes several call-off agreements.\n\n*Last updated: 29.09.2026*\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `type` | **Yes** | none | `CALL_OFF` |\n\n### The fields\n\n| Field | Type | Required | Meaning |\n| --- | --- | --- | --- |\n| `callOffIds` | list of text | **Yes** | The agreements to delete. Empty gives `400`none`callOffIds must not be empty`. |\n\n### The same two conditions apply to every id\n\nEach agreement must be `INACTIVE` and must never have been drawn against. See \"Delete one agreement\".\n\n> **The ids are deleted one after another.** If the fourth fails, the first three are already gone and stay gone. There is no roll-back. After an error, run \"Find call-off agreements\" and see what is left.\n\n### What you get back\n\n`204 No Content` with an empty body.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `400`none`callOffIds must not be empty` | The list is empty, missing, or holds only blanks | Name at least one id. |\n| `409` part way through | One of them is active or has been drawn against | The ids before it are already deleted. |\n| `404`none`CALL_OFF_1001` | One id is unknown, another company's, or a price list's | Same, the ids before it are gone. |\n\n### What we could not confirm\n\nNothing. Everything on this page was read off the interface.","tags":["Price Lists"],"parameters":[{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"CALL_OFF","schema":{"type":"string"},"example":"CALL_OFF"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"examples":{"delete-price-lists-bulk":{"summary":"Delete price lists (bulk)","value":{"priceListIds":["C242607014839210567","C242607014839210568"]}},"delete-agreements-bulk":{"summary":"Delete agreements (bulk)","value":{"callOffIds":["CO-2026072914001","CO-2026072914002"]}}}}}},"responses":{"default":{"description":"No example response is published for this call."}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/master-articles/pricelists/search":{"post":{"operationId":"findPriceLists","summary":"Find price lists / Find call-off agreements","description":"#### Find price lists\n\n### What this call does\n\nFinds price lists in your company account, with paging.\n\n*Last updated: 29.09.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n\n### The fields\n\nThe whole payload is optional. Sending `{}`, or no body at all, returns the first page of every price list in the account.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `search` | text | No | (none) | Free text. Matches the name, the supplier name and the file name. |\n| `statuses` | list of choices | No | empty = all | `ACTIVE`, `INACTIVE` |\n| `types` | list of choices | No | empty = all price lists | `STANDARD`, `RENTAL`. See the warning below. |\n| `supplierIds` | list of text | No | empty = all | Supplier ids from the **Suppliers** section |\n| `currencies` | list of text | No | empty = all | Currency codes as they were stored |\n| `pageNumber` | number | No | `0` | First page is `0`, not `1` |\n| `pageSize` | number | No | `10` | How many per page |\n| `sortField` | text | No | (server default) | Field name to sort on, for example `lastModifiedAt` |\n| `sortOrder` | text | No | (server default) | `ASC` or `DESC` |\n\n> **`types` cannot reach a call-off agreement.** `CALL_OFF` and `CONCRETE` are valid values of the field, and this call still leaves those agreements out, you get `200` and an empty list, not an error. Use **Price Lists → Call-Off** for them.\n\n### What you get back\n\n`200 OK` with four fields:\n\n| Field | Meaning |\n| --- | --- |\n| `data` | The price lists on this page |\n| `total` | How many matched in all, across every page |\n| `pageNumber` | The page you asked for |\n| `pageSize` | The size you asked for |\n\nEach entry in `data` carries, among others: `id`, `name`, `description`, `type`, `priority`, `supplierId`, `supplierName`, `hidePrice`, `currency`, `status`, `validFrom`, `validTo`, `totalCount` (parts on the list), `totalVariants`, `tenantProjectAssignments`, `documentId`, `publicUrl`, `originalFilename`, `fileType`, `fileSize`, `variantConfig`, `createdAt` and `lastModifiedAt`.\n\n> Empty fields are left out of the answer entirely rather than returned as `null`. A field you do not see was not set.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `200` with an empty `data`, and you expected rows | You filtered on `CALL_OFF` or `CONCRETE`, or the account really has no price lists | Call \"Find call-off agreements\" in **Price Lists → Call-Off** instead. |\n| Page 2 is empty but `total` is large | `pageNumber` starts at `0` | Ask for `0`, then `1`, then `2`. |\n\n### What we could not confirm\n\nWhich values `sortField` accepts. Field names that exist on the price list work; there is no list of the ones that do not.\n\n#### Find call-off agreements\n\n### What this call does\n\nFinds call-off agreements in your company account, with paging.\n\n*Last updated: 29.09.2026*\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n| `type` | **Yes** | none | `CALL_OFF` |\n\n### The fields\n\nThe whole payload is optional. Sending `{}` returns the first page of every agreement.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `search` | text | No | (none) | Free text over the name, the supplier name and the file name |\n| `callOffIds` | list of text | No | empty = all | Specific agreements |\n| `supplierIds` | list of text | No | empty = all | Supplier ids |\n| `statuses` | list of choices | No | empty = all | `ACTIVE`, `INACTIVE` |\n| `types` | list of choices | No | the `type` in the address | `CALL_OFF`. A value that is not a call-off kind matches nothing. |\n| `tenantId` | text | No | (none) | Only agreements this tenant may use |\n| `projectId` | text | No | (none) | Only agreements this site may use. **Needs `tenantId` as well.** |\n| `pageNumber` | number | No | `0` | First page is `0` |\n| `pageSize` | number | No | `10` | How many per page |\n| `sortField` / `sortOrder` | text | No | (server default) | Field name, and `ASC` or `DESC` |\n\n> **`projectId` without `tenantId` gives an empty page, not an error.** A site cannot be resolved without knowing whose it is, and the interface will not fall back to the company-wide list.\n\n> **`types` cannot reach a price list.** Putting `STANDARD` in it returns nothing. Use the **Price Lists** section.\n\n### What you get back\n\n`200 OK` with `data`, `total`, `pageNumber` and `pageSize`. Each entry is a whole agreement.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| `400`none`type … is not a draw-down kind` | `type` in the address line is `STANDARD` or `RENTAL` | Use `CALL_OFF`, or drop `type` and call \"Find price lists\". |\n| `200` with an empty `data` | `projectId` without `tenantId`, or `types` naming a price-list kind | Send both, or use the **Price Lists** section. |\n\n### What we could not confirm\n\nWhich values `sortField` accepts.","tags":["Price Lists"],"parameters":[{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"CALL_OFF","schema":{"type":"string"},"example":"CALL_OFF"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"examples":{"find-price-lists":{"summary":"Find price lists","value":{"search":"Betonstahl","statuses":["ACTIVE"],"types":["STANDARD"],"supplierIds":["S-001"],"currencies":["EUR"],"pageNumber":0,"pageSize":20,"sortField":"lastModifiedAt","sortOrder":"DESC"}},"find-call-off-agreements":{"summary":"Find call-off agreements","value":{"search":"Bewehrungsstahl","callOffIds":[],"supplierIds":["S-001"],"statuses":["ACTIVE"],"types":["CALL_OFF"],"tenantId":"T-001","projectId":"P-100","pageNumber":0,"pageSize":20,"sortField":"lastModifiedAt","sortOrder":"DESC"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"200-ok-one-page-of-price-lists":{"summary":"200 OK, one page of price lists","value":{"data":[{"id":"C242607014839210567","companyAccountId":"C0325110620407662","name":"Betonstahl Rahmenpreise 2026 Q3","description":"Rahmenvereinbarung Bewehrungsstahl, Werk Leipzig","type":"STANDARD","priority":10,"supplierId":"S-001","supplierName":"Stahlhandel Rheinland GmbH","hidePrice":false,"currency":"EUR","status":"ACTIVE","validFrom":"2026-07-01T00:00:00","validTo":"2026-09-30T23:59:59","totalCount":1284,"totalVariants":96,"tenantProjectAssignments":[{"tenantId":"T-001","allProjects":true}],"documentId":"D-2026070112044","publicUrl":"https://files.cathago.de/pricelists/betonstahl-q3.xlsx","originalFilename":"betonstahl-q3.xlsx","fileType":"xlsx","fileTypeCategory":"SPREADSHEET","fileSize":418223,"createdAt":"2026-06-28T10:30:00","lastModifiedAt":"2026-07-01T09:15:00"}],"total":1,"pageNumber":0,"pageSize":20}},"200-ok-one-page-of-agreements":{"summary":"200 OK, one page of agreements","value":{"data":[{"id":"CO-2026072914001","companyAccountId":"C0325110620407662","name":"Bewehrungsstahl Rahmenabruf 2026","supplierId":"S-001","supplierName":"Stahlhandel Rheinland GmbH","hidePrice":false,"type":"CALL_OFF","status":"ACTIVE","importStatus":"PROCESSED","validFrom":"2026-07-01","validTo":"2026-12-31","totalCount":42,"originalFilename":"rahmenabruf-2026.xlsx","documentId":"D-2026072914055","publicUrl":"https://files.cathago.de/call-offs/rahmenabruf-2026.xlsx","uploadedByName":"Anna Berger","tenantProjectAssignments":[{"tenantId":"T-001","allProjects":true}],"attachments":[],"createdAt":"2026-07-29T14:00:10","lastModifiedAt":"2026-09-12T08:41:33"}],"total":1,"pageNumber":0,"pageSize":20}}}}}}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/master-articles/products/search":{"post":{"operationId":"searchProducts","summary":"Search products / Search call-off products","description":"#### Search products\n\n### What this call does\n\nFinds parts across your whole company account, with paging. Unlike the other two calls on this page, it is not tied to one price list.\n\n*Last updated: 29.09.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n\n### The fields\n\nThe whole payload is optional.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `search` | text | No | (none) | Free text over the article number, the title and the description |\n| `type` | choice | No | (every kind) | `STANDARD`, `CALL_OFF` or `CONCRETE`. See the note below. |\n| `priceListIds` | list of text | No | empty = all | Only parts priced on these lists. **An agreement's id belongs here too**, that is how you read its positions back. |\n| `categoryIds` | list of text | No | empty = all | Category ids |\n| `manufacturerIds` | list of text | No | empty = all | Manufacturer ids |\n| `supplierIds` | list of text | No | empty = all | Supplier ids |\n| `pageNumber` | number | No | `0` | First page is `0` |\n| `pageSize` | number | No | `10` | How many per page |\n| `sortField` / `sortOrder` | text | No | (server default) | Field name, and `ASC` or `DESC` |\n\n> **`type` and `priceListIds` are not two filters that stack.** `type` narrows a search that names **no** `priceListIds`. Once you name ids, the ids decide, because a part can sit on a price list and on an agreement at once and is typed for only one of the two.\n\n### What you get back\n\n`200 OK` with `data`, `total`, `pageNumber` and `pageSize`.\n\nThe part itself carries the description fields, `articleNumber`, `productTitle`, `description`, `ean`, `keywords`, `imageUrl`, `categories`, `manufacturers`, `attributes`, and the **prices sit in `prices[]`, one entry per price list the part is on.** Everything to do with money is there, not on the part.\n\nEach entry of `prices[]` carries:\n\n| Field | Meaning |\n| --- | --- |\n| `priceListId`, `priceListName` | Which list this price is from |\n| `type` | The kind of list: `STANDARD`, `CALL_OFF` or `CONCRETE` |\n| `priceSourceKind` | `PRICELIST` for a price list's entry, `CALL_OFF` for an agreement's |\n| `price`, `pricePerUnit`, `pricePerPackage`, `grossPricePerPackage`, `billingPrice` | The **effective** figures, what every order and cart reads |\n| `listPrice`, `listPricePerUnit`, `listPricePerPackage`, … | The figures the price list states, **before** discounts and surcharges. Left out when the price has no separate list figures. |\n| `discounts[]`, `surcharges[]` | The stack that turns the list figures into the effective ones. Applied in order: every discount first, then every surcharge, each on the previous result. |\n| `taxes`, `discount`, `billingUnit`, `billingQuantity` | As stored |\n| `minOrderQty`, `maxOrderQty`, `leadTimeDays` | Ordering limits |\n| `rentalPricePerDay` / `Week` / `Month`, `rentalDeposit`, `rentalMinDurationDays`, `rentalMaxDurationDays` | Hire figures |\n| `validFrom`, `validTo`, `precedence` | Validity and tie-break |\n| `positionLabel`, `agreedQty`, `calledOffQty`, `openQty`, `sourcePosition` | **Agreement entries only**, see **Products → Call-Off** |\n| `tenantProjectAssignments` | Only on a price without a price list. A price-list price takes its list's assignment. |\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| The part is there but `prices` is empty | It is on no price list, or on none you can see | Check with \"Find price lists\". |\n| `type` seems to be ignored | You also sent `priceListIds` | Send one or the other, not both. |\n| Page 2 is empty but `total` is large | `pageNumber` starts at `0` | Ask for `0`, then `1`. |\n\n### What we could not confirm\n\nWhich values `sortField` accepts.\n\n#### Search call-off products\n\n### What this call does\n\nReads an agreement's call-off products back.\n\n*Last updated: 30.09.2026*\n\n> **This is the same endpoint as \"Search products\" in the Standard subfolder.** There is only one product search and it covers every kind. What makes it answer call-off products is the **agreement's id in `priceListIds`**. It is listed here separately because otherwise these pages would have three ways to write a call-off product and no way to read one.\n\n### What you need first\n\n- A valid API key in the `API-Key` header, and your `companyAccountId`.\n- The agreement's `id`, from \"Find call-off agreements\".\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID |\n\n> **No `type` in the address line here.** The `?type=CALL_OFF` switch applies to the write calls on `/pricelists/...`. This search lives at `/products/search` and is selected by what you put in the body.\n\n### The fields\n\n| Field | Type | Required | Meaning |\n| --- | --- | --- | --- |\n| `priceListIds` | list of text | **Yes, in practice** | Put the **agreement's id** here. Leave it out and you get every product in the account, price-list ones included. |\n| `search` | text | No | Free text over article number, title and description |\n| `type` | choice | No | `CALL_OFF`. Only read when you name no `priceListIds`, so with an id it does nothing. |\n| `supplierIds`, `categoryIds`, `manufacturerIds` | lists | No | Further narrowing |\n| `pageNumber` / `pageSize` | number | No | `0` and `10` |\n| `sortField` / `sortOrder` | text | No | Field name, and `ASC` or `DESC` |\n\n### What you get back\n\n`200 OK` with `data`, `total`, `pageNumber` and `pageSize`.\n\n**The call-off product is an entry in the article's `prices[]`, not the article itself.** The article carries the description, `articleNumber`, `productTitle`, `description`, and the agreement's own figures sit in the price entry:\n\n| Field | Meaning |\n| --- | --- |\n| `id` | **The call-off product's id.** This is what a draw-down addresses and what you send to update or delete it. |\n| `priceSourceKind` | `CALL_OFF` for an agreement's entry, `PRICELIST` for a price list's |\n| `priceListId` | The agreement it belongs to |\n| `type` | `CALL_OFF` |\n| `positionLabel` | The position as the agreement printed it, e.g. `01.02.030` |\n| `agreedQty` | What the agreement commits to |\n| `calledOffQty` | How much has been called off. Absent until the first draw. |\n| `openQty` | What is left |\n| `price`, `pricePerUnit` | The agreed price |\n\n> **Read `prices[].id`, not the article's `id`,** when you want to change a call-off product. The article's id addresses the article; the price entry's id addresses the agreement's row on it.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized`, empty body | Key missing, wrong, or not valid for this `companyAccountId` | A staging key does not work in production. |\n| Price-list products came back too | `priceListIds` was empty | Name the agreement's id. |\n| `prices` has two entries for one article | The article is on a price list **and** on this agreement | Take the one whose `priceSourceKind` is `CALL_OFF`. |\n| An update using the article's `id` did nothing | That is the article, not the agreement's row | Use `prices[].id`. |\n| `calledOffQty` and `openQty` are missing | Nothing has been drawn yet, or the product commits to no quantity | Not an error. |\n\n### What we could not confirm\n\nWhich values `sortField` accepts.","tags":["Products"],"parameters":[{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"examples":{"search-products":{"summary":"Search products","value":{"search":"Bautrockner","type":"STANDARD","priceListIds":["PL-2026042421572"],"categoryIds":[],"manufacturerIds":[],"supplierIds":["S-001"],"pageNumber":0,"pageSize":20,"sortField":"articleNumber","sortOrder":"ASC"}},"search-call-off-products":{"summary":"Search call-off products","value":{"priceListIds":["CO-2026072914001"],"search":"Betonstabstahl","type":"CALL_OFF","supplierIds":[],"pageNumber":0,"pageSize":20,"sortField":"articleNumber","sortOrder":"ASC"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"200-ok-one-page-of-parts":{"summary":"200 OK, one page of parts","value":{"data":[{"id":"AR-2026052712307","companyAccountId":"C0325110620407662","articleNumber":"MIET-BT-LT180","ean":"4260456789012","productTitle":"Bautrockner LT 180, Kondenstrockner","description":"Kondenstrockner für Neubautrocknung, 180 l/24 h, 230 V, fahrbar.","supplierId":"S-001","supplierName":"Sander Baustoffe GmbH","type":"STANDARD","isVariant":false,"hasVariants":false,"variantsCount":0,"completenessScore":86,"packagingUnit":"PCS","quantityUnit":"PCS","quantityPerPackage":1,"attributes":{"Entfeuchtungsleistung":"180 l/24 h","Anschluss":"230 V / 16 A"},"categories":[{"id":"CAT-118","name":"Mietgeräte"}],"manufacturers":[{"id":"MAN-42","name":"Trotec GmbH"}],"prices":[{"id":"PE-2026070113388","priceListId":"PL-2026042421572","priceListName":"Mietgeräte 2026","type":"STANDARD","priceSourceKind":"PRICELIST","precedence":0,"billingUnit":"PCS","billingQuantity":1,"listPrice":1890,"listPricePerUnit":1890,"price":1795.5,"pricePerUnit":1795.5,"pricePerPackage":1795.5,"grossPricePerPackage":2136.65,"taxes":19,"discounts":[{"label":"Rahmenvertrag","type":"PERCENT","value":5}],"surcharges":[],"minOrderQty":1,"maxOrderQty":4,"leadTimeDays":3,"rentalPricePerDay":24.5,"rentalPricePerWeek":132,"rentalPricePerMonth":420,"rentalDeposit":350,"validFrom":"2026-01-01T00:00:00","validTo":"2026-12-31T23:59:59"}],"createdAt":"2026-05-27T12:30:07","lastModifiedAt":"2026-07-01T09:15:00"}],"total":1,"pageNumber":0,"pageSize":20}},"200-ok-one-page-of-call-off-products":{"summary":"200 OK, one page of call-off products","value":{"data":[{"id":"AR-2026072914800","companyAccountId":"C0325110620407662","articleNumber":"BST-B500B-12","productTitle":"Betonstabstahl B500B, d = 12 mm","description":"Ringmaterial, gerichtet und geschnitten, Werk Leipzig.","supplierId":"S-001","supplierName":"Stahlhandel Rheinland GmbH","type":"CALL_OFF","prices":[{"id":"POS-2026072914329","priceListId":"CO-2026072914001","priceListName":"Bewehrungsstahl Rahmenabruf 2026","type":"CALL_OFF","priceSourceKind":"CALL_OFF","positionLabel":"01.02.030","sourcePosition":3,"agreedQty":400,"calledOffQty":62.5,"openQty":337.5,"price":742.5,"pricePerUnit":742.5,"taxes":19,"billingUnit":"t"}],"createdAt":"2026-07-29T14:33:02","lastModifiedAt":"2026-09-29T11:58:40"}],"total":1,"pageNumber":0,"pageSize":20}}}}}}}},"servers":[{"url":"https://api.cathago.de/v3"}]},"/api/gateways/integration/members":{"get":{"tags":["Members"],"operationId":"findAll_2","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiMemberOutDto"}}},"application/json":{"examples":{"ok":{"summary":"OK","value":[{"id":"","emailAddress":"","role":{"roleName":"","roleType":""},"invitationSentDate":"","contactPerson":{"id":"","fullName":"","emailAddress":"","contactNumber":"","alternateContactNumber":""},"memberStatus":"","username":"","tenants":[{"id":"","memberId":"","allProjects":false,"tenant":{"id":"","taxId":"","companyId":"","companyName":"","mandant":"","description":"","logoUrl":"","addressOutDto":{"id":"","addressLineOne":"","addressLineTwo":"","city":"","country":"","zipcode":"","comments":"","mapLink":"","region":""}}}]},{"id":"","emailAddress":"","role":{"roleName":"","roleType":""},"invitationSentDate":"","contactPerson":{"id":"","fullName":"","emailAddress":"","contactNumber":"","alternateContactNumber":""},"memberStatus":"","username":"","tenants":[{"id":"","memberId":"","allProjects":false,"tenant":{"id":"","taxId":"","companyId":"","companyName":"","mandant":"","description":"","logoUrl":"","addressOutDto":{"id":"","addressLineOne":"","addressLineTwo":"","city":"","country":"","zipcode":"","comments":"","mapLink":"","region":""}}}]}]}}}}}},"summary":"List all staff","description":"### What this call does\n\nLists every person in one company account, newest first.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\nA valid API key in the `API-Key` header and your `companyAccountId`. The address is `GET /members`.\n\n### Parameters\n\n`companyAccountId`, required, in the address line: whose staff to list. Leave it out and the call fails with `400`; give an unknown one and it fails with `406`.\n\nThere is no search, no filter and no paging: everybody comes back in one answer, newest first. People whose `memberStatus` is `DISABLED` are included.\n\n### The fields\n\nThis call sends no body, so there are no fields to fill in.\n\n### What you get back\n\n`200 OK` and a list, one entry per person. An account with no staff answers `200 OK` and `[]`.\n\n| Field | Meaning |\n| --- | --- |\n| `id` | The person's id, the `memberId` for the other calls. |\n| `emailAddress` | Their email address. |\n| `role` | An object: `roleName` (spaced display name, e.g. `CONSTRUCTION MANAGER`) and `roleType` (`SYSTEM_DEFINED` or `USER_DEFINED`). |\n| `invitationSentDate` | Last invitation, e.g. `2026-05-15T09:14:32.000Z`. Empty if never. |\n| `contactPerson` | `id`, `fullName`, `emailAddress`, `contactNumber`, `alternateContactNumber`. |\n| `memberStatus` | `PENDING`, `ACTIVE` or `DISABLED`. |\n| `username` | Their login name, once they have created their account. |\n| `tenants` | One per assignment: `id`, `memberId`, `allProjects`, `tenant`. |\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `400` and *Required parameter is missing* | `companyAccountId` was left out of the address line. | Add `?companyAccountId=...`. |\n| You expected `role` to be a piece of text | `role` is a small object. | Read `role.roleName`, the spaced display name. |\n| Somebody you just added is missing | They were created by a bulk call that later failed, so the whole call was undone. | Check that the bulk call answered `200`, not `406`. |"},"post":{"tags":["Members"],"operationId":"create_2","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiMemberInDto"},"example":{"emailAddress":"sharif.malik@cathago.de","sendInvite":true,"customCompanyAccountRoleId":"R-BAULEITUNG-PLUS","contactPerson":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551020","alternateContactNumber":"+49 170 8340155"},"role":"CONSTRUCTION_MANAGER","tenants":[{"allProjects":true,"tenantId":"C3125110678675695"},{"allProjects":false,"tenantId":"C3125110678675702"}]}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PublicApiMemberOutDto"}},"application/json":{"examples":{"created":{"summary":"Created","value":{"id":"","emailAddress":"","role":{"roleName":"","roleType":""},"invitationSentDate":"","contactPerson":{"id":"","fullName":"","emailAddress":"","contactNumber":"","alternateContactNumber":""},"memberStatus":"","username":"","tenants":[{"id":"","memberId":"","allProjects":false,"tenant":{"id":"","taxId":"","companyId":"","companyName":"","mandant":"","description":"","logoUrl":"","addressOutDto":{"id":"","addressLineOne":"","addressLineTwo":"","city":"","country":"","zipcode":"","comments":"","mapLink":"","region":""}}}]}}}}}}},"summary":"Add one person","description":"### What this call does\n\nCreates one person in your company account and, if you ask it to, sends them their invitation email straight away.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\nA valid API key in the `API-Key` header, your `companyAccountId`, and a work email address free across the whole of Cathago, not only in your own account. For tenants you need each `tenantId`. The address is `POST /members`.\n\n### Parameters\n\n`companyAccountId`, required, in the address line. Leave it out and the call fails with `400`.\n\n### The fields\n\n`emailAddress` is the only required field. A normal work email address: no spaces, no umlauts, no quotation marks, and at most 64 characters before the `@`.\n\n| Address | Verdict |\n| --- | --- |\n| `sharif.malik@cathago.de` | Accepted |\n| `sharif.malik+bau@cathago.de` | Accepted, `+` is allowed |\n| `sharif malik@cathago.de` | Refused, no spaces |\n| `sharif.mälik@cathago.de` | Refused, no umlauts |\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `emailAddress` | text | **Yes** | none | Rules above. Also where the invitation is sent. |\n| `sendInvite` | true/false | No | `false` | `true` sends the activation email at once. |\n| `customCompanyAccountRoleId` | text | No | (none) | One of your own roles. **Ignored on this call**, only the bulk call applies it. |\n| `contactPerson` | object | No | (none) | Name and telephone numbers, all optional: `fullName`, `contactNumber`, `alternateContactNumber`. |\n| `role` | choice | No | `CONSTRUCTION_MANAGER` | `PROCUREMENT_MANAGER`, `ADMIN`, `CONSTRUCTION_MANAGER`, `FOREMEN` or `GUEST`. Underscores, not spaces. |\n| `tenants` | list | No | empty list | The tenants this person may work in. |\n| `tenants[].tenantId` | text | Yes, in an entry | none | Id of the tenant. Missing or unknown fails the whole call with `406`. |\n| `tenants[].allProjects` | true/false | No | `true` | `true` gives every project of that tenant. `false` gives the tenant with no project. |\n\n**Do not send `\"role\": null`.** The person is created with no role at all, which makes them awkward to change or delete afterwards. Leave `role` out and take the default instead.\n\n### What you get back\n\n`201 Created` and the finished person, always with `\"memberStatus\": \"PENDING\"` and an empty `username`.\n\n| Field | Meaning |\n| --- | --- |\n| `id` | The person's id, the `memberId` for the other calls. |\n| `emailAddress` | Their email address. |\n| `role` | An object: `roleName` (spaced display name, e.g. `CONSTRUCTION MANAGER`) and `roleType` (`SYSTEM_DEFINED` or `USER_DEFINED`). |\n| `invitationSentDate` | Last invitation, e.g. `2026-05-15T09:14:32.000Z`. Empty if never. |\n| `contactPerson` | `id`, `fullName`, `emailAddress`, `contactNumber`, `alternateContactNumber`. |\n| `memberStatus` | `PENDING`, `ACTIVE` or `DISABLED`. |\n| `username` | Their login name, once they have created their account. |\n| `tenants` | One per assignment: `id`, `memberId`, `allProjects`, `tenant`. |\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `400` and *must not be blank* | `emailAddress` was missing, or the field name was misspelled, a misspelled name is dropped without warning. | Spell it exactly `emailAddress`. |\n| `400` and *Please provide a valid email address* | Usually an umlaut or a space. | Correct the address. |\n| `400` saying a value is not accepted | `role` was outside the five, often `\"CONSTRUCTION MANAGER\"` with a space. | Send the underscored constant. |\n| `406` and *...already exists!* | The address is in use, possibly in another company account. | Use another address, or change the existing person. |\n| `406` and *Tenant not found!* | A `tenantId` does not exist. Nothing is written. | Check the tenant ids. |\n| No invitation email arrives | `sendInvite` defaults to `false`. | Send `\"sendInvite\": true`, or call **Send the invitation email**. |"},"servers":[{"url":"https://api.cathago.de"}]},"/api/gateways/integration/members/{memberId}":{"get":{"tags":["Members"],"operationId":"find_1","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"}},{"name":"memberId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PublicApiMemberOutDto"}},"application/json":{"examples":{"ok":{"summary":"OK","value":{"id":"","emailAddress":"","role":{"roleName":"","roleType":""},"invitationSentDate":"","contactPerson":{"id":"","fullName":"","emailAddress":"","contactNumber":"","alternateContactNumber":""},"memberStatus":"","username":"","tenants":[{"id":"","memberId":"","allProjects":false,"tenant":{"id":"","taxId":"","companyId":"","companyName":"","mandant":"","description":"","logoUrl":"","addressOutDto":{"id":"","addressLineOne":"","addressLineTwo":"","city":"","country":"","zipcode":"","comments":"","mapLink":"","region":""}}}]}}}}}}},"summary":"Look up one person","description":"### What this call does\n\nShows one person in full, including their tenant assignments.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\nA valid API key in the `API-Key` header, your `companyAccountId`, and the person's `memberId`, the `id` from **List all staff** or from the answer to **Add one person**. The address is `GET /members/:memberId`.\n\n### Parameters\n\n`companyAccountId`, required, in the address line. `memberId`, required, in the address itself in place of `:memberId`. The person is found by `memberId` alone.\n\n### The fields\n\nThis call sends no body, so there are no fields to fill in.\n\n### What you get back\n\n`200 OK` and one person.\n\n| Field | Meaning |\n| --- | --- |\n| `id` | The person's id, the `memberId` for the other calls. |\n| `emailAddress` | Their email address. |\n| `role` | An object: `roleName` (spaced display name, e.g. `CONSTRUCTION MANAGER`) and `roleType` (`SYSTEM_DEFINED` or `USER_DEFINED`). |\n| `invitationSentDate` | Last invitation, e.g. `2026-05-15T09:14:32.000Z`. Empty if never. |\n| `contactPerson` | `id`, `fullName`, `emailAddress`, `contactNumber`, `alternateContactNumber`. |\n| `memberStatus` | `PENDING`, `ACTIVE` or `DISABLED`. |\n| `username` | Their login name, once they have created their account. |\n| `tenants` | One per assignment: `id`, `memberId`, `allProjects`, `tenant`. |\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `406` and *Member with :... not found!* | The `memberId` does not exist, or the person has been deleted. | Check the id with **List all staff**. |\n| `400` and *Required parameter is missing* | `companyAccountId` was left out. It is required here too. | Add `?companyAccountId=...`. |\n| You put the email address in the address line | The address line takes the `memberId`. | Use `id` from **List all staff**. |"},"delete":{"tags":["Members"],"operationId":"delete_3","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"}},{"name":"memberId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content","content":{}}},"summary":"Delete one person","description":"### What this call does\n\nRemoves one person from your company account for good.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\nA valid API key in the `API-Key` header, your `companyAccountId`, and the person's `memberId`. The address is `DELETE /members/:memberId`.\n\n**There is no undo, and this is not the same as disabling somebody.** The record is removed, not flagged: their name and telephone numbers go with it, and their email address becomes free for reuse. To take away access but keep the record, send `\"disable\": true` with **Change one person**.\n\n### Parameters\n\n`companyAccountId`, required, in the address line. `memberId`, required, in the address itself in place of `:memberId`. The person is found by `memberId` alone.\n\n### The fields\n\nThis call sends no body, so there are no fields to fill in.\n\n### What you get back\n\n`204 No Content` and an empty answer. The absence of an error is the confirmation.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `406` and *Cannot change member role or disable member! There must be at least one ACTIVE Procurement Manager!* | The person is the last active `PROCUREMENT_MANAGER` in the account. | Give somebody else that role first, then repeat this call. |\n| `406` and *Member with :... not found!* | The `memberId` does not exist, or the person is already deleted. Repeating a successful delete gives this. | Check with **List all staff**. |\n| `400` and *Required parameter is missing* | `companyAccountId` was left out. | Add `?companyAccountId=...`. |\n\n### What we could not confirm\n\n- What happens to a person who still has tenant assignments or work recorded against them. Try it on a test person first."},"patch":{"tags":["Members"],"operationId":"patchUpdate_1","parameters":[{"name":"memberId","in":"path","required":true,"schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiMemberPatchInDto"},"example":{"emailAddress":"sharif.malik@cathago.de","role":"PROCUREMENT_MANAGER","contactPerson":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551099","alternateContactNumber":"+49 170 8340155"},"tenants":[{"allProjects":true,"tenantId":"C3125110678675695"},{"allProjects":false,"tenantId":"C3125110678675702"}],"disable":false}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PublicApiMemberOutDto"}},"application/json":{"examples":{"ok":{"summary":"OK","value":{"id":"","emailAddress":"","role":{"roleName":"","roleType":""},"invitationSentDate":"","contactPerson":{"id":"","fullName":"","emailAddress":"","contactNumber":"","alternateContactNumber":""},"memberStatus":"","username":"","tenants":[{"id":"","memberId":"","allProjects":false,"tenant":{"id":"","taxId":"","companyId":"","companyName":"","mandant":"","description":"","logoUrl":"","addressOutDto":{"id":"","addressLineOne":"","addressLineTwo":"","city":"","country":"","zipcode":"","comments":"","mapLink":"","region":""}}}]}}}}}}},"summary":"Change one person","description":"### What this call does\n\nChanges one person: their role, their name and telephone numbers, their email address, which tenants they work in, and whether they are disabled.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\nA valid API key in the `API-Key` header, your `companyAccountId`, and the person's `memberId`. If you touch tenants at all, you need the **complete** list of tenants they should end up with.\n\nThe address is `PATCH /members/:memberId`. Send only the fields you want to change, with the one large exception of `tenants`, below.\n\n### Parameters\n\n`companyAccountId`, required, in the address line. `memberId`, required, in the address itself in place of `:memberId`.\n\n### The fields\n\nNothing is required. An omitted field is left alone, except `tenants`.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `emailAddress` | text | No | (unchanged) | Send it only to change the address. Same rules as on **Add one person**. |\n| `role` | choice | No | (unchanged) | `PROCUREMENT_MANAGER`, `ADMIN`, `CONSTRUCTION_MANAGER`, `FOREMEN` or `GUEST`. Underscores, not spaces. Ignored when `customRoleId` is sent. |\n| `customRoleId` | text | No | (unchanged) | One of your own roles; wins over `role`. **An id Cathago cannot find is ignored without any error.** In the bulk call the same field is called `customCompanyAccountRoleId`. |\n| `contactPerson` | object | No | (unchanged) | Name and telephone numbers, all optional: `fullName`, `contactNumber`, `alternateContactNumber`. Only the fields inside it change. |\n| `tenants` | list | No | **empty list** | **Replaces everything.** See the warning below. |\n| `tenants[].tenantId` | text | Yes, in an entry | none | Id of the tenant. Missing or unknown fails the call with `406`. |\n| `tenants[].allProjects` | true/false | No | `true` | `true` gives every project of that tenant. `false` gives the tenant with no project. |\n| `disable` | true/false | No | `false` | `true` sets `memberStatus` to `DISABLED` and switches off the login. `false` does nothing. |\n\n**`tenants` replaces, it does not add.** Every tenant assignment the person has is removed and exactly what you sent is put back, so **leaving `tenants` out strips them of all their tenants**. Send their full current list even when you are only changing a telephone number; read it first with **Look up one person**.\n\n**Blanks cannot be cleared.** `\"contactNumber\": null` leaves the old value. `sendInvite` is not a field here either, send it and it is quietly dropped.\n\n### What you get back\n\n`200 OK` and the person as they now stand.\n\n| Field | Meaning |\n| --- | --- |\n| `id` | The person's id, the `memberId` for the other calls. |\n| `emailAddress` | Their email address. |\n| `role` | An object: `roleName` (spaced display name, e.g. `CONSTRUCTION MANAGER`) and `roleType` (`SYSTEM_DEFINED` or `USER_DEFINED`). |\n| `invitationSentDate` | Last invitation, e.g. `2026-05-15T09:14:32.000Z`. Empty if never. |\n| `contactPerson` | `id`, `fullName`, `emailAddress`, `contactNumber`, `alternateContactNumber`. |\n| `memberStatus` | `PENDING`, `ACTIVE` or `DISABLED`. |\n| `username` | Their login name, once they have created their account. |\n| `tenants` | One per assignment: `id`, `memberId`, `allProjects`, `tenant`. |\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| The person lost all their tenants | `tenants` was left out, which counts as an empty list, and the replace ran anyway. | Always send the complete `tenants` list. |\n| `406` and *Cannot change member role or disable member! There must be at least one ACTIVE Procurement Manager!* | You tried to change the role of, or disable, the last active `PROCUREMENT_MANAGER`. | Give somebody else that role first, then repeat. |\n| The role did not change and there was no error | `customRoleId` held an id Cathago could not find. | Check the role id, or use `role` with one of the five values. |\n| `406` and *...already exists!* | The new `emailAddress` is already used, possibly in another company account. | Pick a different address. |\n| `406` and *Member with :... not found!* | The `memberId` in the address does not exist. | Check it with **List all staff**. |\n\n### What we could not confirm\n\n- How to re-enable a disabled person. Nothing in these seven calls does it."},"servers":[{"url":"https://api.cathago.de"}]},"/api/gateways/integration/members/{memberId}/invite":{"patch":{"tags":["Members"],"operationId":"sendInvite","parameters":[{"name":"memberId","in":"path","required":true,"schema":{"type":"string"}},{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{}}},"summary":"Send the invitation email","description":"### What this call does\n\nSends the account activation email to one person who is still waiting to set up their login.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\nA valid API key in the `API-Key` header, your `companyAccountId`, and the person's `memberId`. Their `memberStatus` must be `PENDING`. The address is `PATCH /members/:memberId/invite` and it takes no body.\n\n**It only does anything for a `PENDING` person.** For anybody `ACTIVE` or `DISABLED` it quietly does nothing, no email, no change, and still answers `200 OK`. A `200` here is not proof that an email went out: read the person back and check that `invitationSentDate` has moved.\n\n### Parameters\n\n`companyAccountId`, required, in the address line. `memberId`, required, in the address itself in place of `:memberId`. The person is found by `memberId` alone.\n\n### The fields\n\nThis call sends no body, so there are no fields to fill in.\n\n### What you get back\n\n`200 OK` and an empty answer, the person is not returned. When the email did go out, `invitationSentDate` is set to the moment it was sent.\n\nThe email carries a personal link into your Cathago web address, at `/auth/create-user-account/...`, that lets the person create their login. Once they have, `memberStatus` becomes `ACTIVE` and `username` is filled in.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `200 OK`, but no email arrived and `invitationSentDate` did not move | The person is not `PENDING`. `ACTIVE` and `DISABLED` people are skipped in silence. | Check `memberStatus` with **Look up one person**. |\n| `406` and *Member with :... not found!* | The `memberId` does not exist. | Check it with **List all staff**. |\n| `406` and *CompanyAccount not found!* | `companyAccountId` is wrong. | Check the value in the address line. |\n\n### What we could not confirm\n\n- How long the activation link in the email stays usable."},"servers":[{"url":"https://api.cathago.de"}]},"/api/gateways/integration/members/bulk":{"put":{"tags":["Members"],"operationId":"bulkUpdate_1","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","default":"ADD_OR_UPDATE","enum":["ADD","ADD_OR_UPDATE","PATCH"]}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiMemberBulkUpdateInDto"}},"example":[{"emailAddress":"sharif.malik@cathago.de","sendInvite":true,"customCompanyAccountRoleId":"R-BAULEITUNG-PLUS","contactPerson":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551020","alternateContactNumber":"+49 170 8340155"},"role":"CONSTRUCTION_MANAGER","tenants":[{"allProjects":true,"tenantId":"C3125110678675695"},{"allProjects":false,"tenantId":"C3125110678675702"}],"disable":false},{"emailAddress":"anja.krause@cathago.de","sendInvite":false,"contactPerson":{"fullName":"Anja Krause","contactNumber":"+49 341 5551034","alternateContactNumber":"+49 151 2277431"},"role":"FOREMEN","tenants":[{"allProjects":false,"tenantId":"C3125110678675695"}],"disable":true}]}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiMemberOutDto"}}},"application/json":{"examples":{"ok":{"summary":"OK","value":[{"id":"","emailAddress":"","role":{"roleName":"","roleType":""},"invitationSentDate":"","contactPerson":{"id":"","fullName":"","emailAddress":"","contactNumber":"","alternateContactNumber":""},"memberStatus":"","username":"","tenants":[{"id":"","memberId":"","allProjects":false,"tenant":{"id":"","taxId":"","companyId":"","companyName":"","mandant":"","description":"","logoUrl":"","addressOutDto":{"id":"","addressLineOne":"","addressLineTwo":"","city":"","country":"","zipcode":"","comments":"","mapLink":"","region":""}}}]},{"id":"","emailAddress":"","role":{"roleName":"","roleType":""},"invitationSentDate":"","contactPerson":{"id":"","fullName":"","emailAddress":"","contactNumber":"","alternateContactNumber":""},"memberStatus":"","username":"","tenants":[{"id":"","memberId":"","allProjects":false,"tenant":{"id":"","taxId":"","companyId":"","companyName":"","mandant":"","description":"","logoUrl":"","addressOutDto":{"id":"","addressLineOne":"","addressLineTwo":"","city":"","country":"","zipcode":"","comments":"","mapLink":"","region":""}}}]}]}}}}}},"summary":"Create or update staff (bulk)","description":"### What this call does\n\nCreates or changes many people in one call, with a `mode` that decides whether rows may create, may only update, or may do both.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\nA valid API key in the `API-Key` header, your `companyAccountId`, and an email address on **every** row, there is no id field here, rows are matched by email address. If you send `tenants`, send the complete list per person. The address is `PUT /members/bulk`; the body is a list with one entry per person.\n\n**The whole call is all-or-nothing.** One bad row undoes everything: nothing is written and you get one error naming the first row that failed. A `200` is the only proof every row worked.\n\n### The three modes (`mode`)\n\n- `ADD_OR_UPDATE`none**the default.** Matches the row by `emailAddress` in your account: found → updates, not found → creates. For day-to-day syncing from your own staff system.\n- `ADD`, always creates. The address must be free everywhere in Cathago, so a row for somebody who already exists fails with `406`. For a first import into an empty account.\n- `PATCH`, only updates. A row matching nobody fails with `406`.\n\nWhat each mode actually applies differs, and this is the part that surprises people:\n\n|  | `ADD` | `ADD_OR_UPDATE`, not found | `ADD_OR_UPDATE`, found | `PATCH` |\n| --- | --- | --- | --- | --- |\n| Creates the person | Yes | Yes | No | No |\n| `contactPerson` | Applied | Applied | Applied, blanks skipped | Applied, blanks skipped |\n| `role` / `customCompanyAccountRoleId` | `role` only | `role` only | Both | Both |\n| `sendInvite` | Honoured | Honoured | **Ignored** | **Ignored** |\n| `disable` | **Ignored** | **Ignored** | Honoured | Honoured |\n| `tenants` | Added | Added | **Replaces everything** | **Not touched at all** |\n\n### Parameters\n\n`companyAccountId`, required, in the address line; rows are matched by email address within it. `mode`, optional, default `ADD_OR_UPDATE`, one of `ADD`, `ADD_OR_UPDATE` or `PATCH`. **In capitals**none`patch` in lower case is not accepted.\n\n### The fields\n\nEach entry is one person, with the same fields as **Add one person** plus `disable`. `emailAddress` is the only required one: a normal work email address, no spaces, no umlauts, at most 64 characters before the `@`.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `emailAddress` | text | **Yes** | none | The key rows are matched by. On `ADD` it must be free across all of Cathago. |\n| `sendInvite` | true/false | No | `false` | Sends the activation email. |\n| `customCompanyAccountRoleId` | text | No | (none) | One of your own roles; wins over `role`. An id Cathago cannot find is skipped silently. |\n| `contactPerson` | object | No | (none) | Name and telephone numbers, all optional: `fullName`, `contactNumber`, `alternateContactNumber`. |\n| `role` | choice | No | `CONSTRUCTION_MANAGER` | `PROCUREMENT_MANAGER`, `ADMIN`, `CONSTRUCTION_MANAGER`, `FOREMEN` or `GUEST`. Underscores, not spaces. |\n| `tenants` | list | No | empty list | The tenants this person may work in. |\n| `tenants[].tenantId` | text | Yes, in an entry | none | Id of the tenant. Missing or unknown fails the whole call with `406`. |\n| `tenants[].allProjects` | true/false | No | `true` | `true` gives every project of that tenant. |\n| `disable` | true/false | No | `false` | `true` sets `memberStatus` to `DISABLED`. |\n\n**Two rows with the same address will fail.** De-duplicate on your side first.\n\n### What you get back\n\n`200 OK` and a list with one entry per person the call touched, in the order you sent them. An empty body of `[]` answers `200 OK` with `[]`.\n\n| Field | Meaning |\n| --- | --- |\n| `id` | The person's id, the `memberId` for the other calls. |\n| `emailAddress` | Their email address. |\n| `role` | An object: `roleName` (spaced display name, e.g. `CONSTRUCTION MANAGER`) and `roleType` (`SYSTEM_DEFINED` or `USER_DEFINED`). |\n| `invitationSentDate` | Last invitation, e.g. `2026-05-15T09:14:32.000Z`. Empty if never. |\n| `contactPerson` | `id`, `fullName`, `emailAddress`, `contactNumber`, `alternateContactNumber`. |\n| `memberStatus` | `PENDING`, `ACTIVE` or `DISABLED`. |\n| `username` | Their login name, once they have created their account. |\n| `tenants` | One per assignment: `id`, `memberId`, `allProjects`, `tenant`. |\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `406` and *Member not found!* with an email address | `PATCH` mode, and that row names somebody who does not exist in your account. | Use `ADD_OR_UPDATE`, or take the row out. |\n| `406` and *...already exists!* | `ADD` mode, and the address is taken, possibly in another company account. | Use `ADD_OR_UPDATE` instead. |\n| People lost their tenants | `ADD_OR_UPDATE` replaces the tenant list of a person who already exists, and an absent `tenants` counts as empty. | Send each person's complete `tenants` list, or use `PATCH` mode. |\n| Nobody got an invitation, or `\"disable\": true` had no effect | Those rows updated (or created) people, and the matrix above shows the field is ignored there. | Invite with **Send the invitation email**; disable with a second call in `PATCH` mode. |\n| The `mode` you asked for was not used | `mode` was misspelled or in lower case. | Send `ADD`, `ADD_OR_UPDATE` or `PATCH` exactly. |"},"servers":[{"url":"https://api.cathago.de"}]},"/api/gateways/integration/projects":{"post":{"tags":["Projects"],"operationId":"create","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"},"description":"Your company account."}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiProjectInDto"},"example":{"tenantId":"C3125110678675695","externalProjectId":"BV-2026-0731","title":"Neubau Feuerwache Mitte","costCentre":"KST-5410","startDate":"2026-10-01","endDate":"2028-04-28","budget":4320000,"description":"Fahrzeughalle mit sechs Stellplätzen, Werkstatt, Schlauchturm und Verwaltungstrakt.","projectStatus":"ACTIVE","address":{"addressLineOne":"Schlesischer Platz 3","addressLineTwo":"Bauleitercontainer 1","city":"Dresden","country":"Deutschland","zipcode":"01097","comments":"Zufahrt über die Nordseite, Schranke beim Werkschutz.","mapLink":"51.0655,13.7405","region":"Sachsen"},"billingAddress":{"addressLineOne":"Hauptstraße 88","addressLineTwo":"Verwaltung, 3. Obergeschoss","city":"Dresden","country":"Deutschland","zipcode":"01067","comments":"Rechnungen bitte nur per E-Mail.","mapLink":"https://maps.app.goo.gl/4kTn7xR1","region":"Sachsen","companyName":"Bauunternehmung Weber & Sohn GmbH","vatId":"DE812345678","emailAddress":"rechnung@weber-bau.de","contactPersonName":"Ingrid Weber"},"members":[{"emailAddress":"sharif.malik@cathago.de","role":"CONSTRUCTION_MANAGER","sendInvite":true,"contactPerson":{"fullName":"Sharif Malik","contactNumber":"+49 351 5559130","alternateContactNumber":"+49 172 5559130"}},{"emailAddress":"anja.krause@cathago.de","role":"PROCUREMENT_MANAGER","sendInvite":false,"contactPerson":{"fullName":"Anja Krause","contactNumber":"+49 351 5559144","alternateContactNumber":"+49 172 5559144"}}],"locations":[{"id":null,"title":"Baucontainer Nord","comments":"Anlieferung werktags 07:00-16:00 Uhr.","defaultLocation":true,"overrideExistingLocation":false,"address":{"addressLineOne":"Schlesischer Platz 3","addressLineTwo":"Nordseite","city":"Dresden","country":"Deutschland","zipcode":"01097","comments":"Stellfläche für Sattelzüge vorhanden.","mapLink":"51.0655,13.7405","region":"Sachsen"},"members":[{"emailAddress":"sharif.malik@cathago.de"},{"emailAddress":"anja.krause@cathago.de"}]},{"id":null,"title":"Zwischenlager Güterbahnhof","comments":"Nur Schüttgut und Bewehrungsstahl.","defaultLocation":false,"overrideExistingLocation":false,"address":{"addressLineOne":"Gothaer Straße 22","addressLineTwo":"Halle 4","city":"Dresden","country":"Deutschland","zipcode":"01097","comments":"Anlieferung nur nach Voranmeldung.","mapLink":"51.0702,13.7288","region":"Sachsen"},"members":[{"emailAddress":"sharif.malik@cathago.de"}]}],"additionalFields":[{"technicalName":"bauherr","displayName":"Bauherr","value":"Öffentlich","valueType":"TEXT","valueOptions":["Privat","Öffentlich"],"fieldId":null}],"customFieldValues":[{"customFieldId":null,"displayName":"Bauherr","technicalName":"bauherr","valueType":"TEXT","valueOptions":["Privat","Öffentlich"],"value":"Öffentlich"}]}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PublicApiProjectOutDto"}},"application/json":{"examples":{"create-new-project":{"summary":"Create new project","value":{"externalProjectId":"EXTPROJ1001","title":"NEW PROJECT","costCentre":"CC-5500","startDate":"2024-01-10","endDate":"2024-12-20","budget":150000,"description":"Ground-up construction of a 12-story residential building featuring eco-friendly materials and smart-home integration.","id":"C0226022310939856","address":{"addressLineOne":"123 Main Street","addressLineTwo":"Suite 5","city":"Berlin","country":"Germany","zipcode":"10115","comments":"Main office address","mapLink":"https://maps.example.com/123","region":null,"id":"CVZ26022378960098"},"billingAddress":{"addressLineOne":"Billing Street 10","addressLineTwo":"","city":"Berlin","country":"Germany","zipcode":"10117","comments":"Send all invoices to the attention of Accounts Payable.","mapLink":"https://maps.example.com/billing","region":null,"id":"CHL26022355196013","companyName":"ABC Construction GmbH","vatId":"DE1123456789","emailAddress":null,"contactPersonName":null},"members":[{"id":"CCC26022333687104","emailAddress":"manager@example.com","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-11T14:23:31.495Z","contactPerson":{"id":"CTA26021116273926","fullName":"John Doe","emailAddress":"manager@example.com","contactNumber":"+49 123 4567","alternateContactNumber":"+49 987 6543"},"memberStatus":"PENDING","username":null},{"id":"CQN26022387485357","emailAddress":"ibrahim.jogilkar@cathago.de","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2023-03-09T10:20:08.034Z","contactPerson":{"id":"5JloK9VC","fullName":"Ibrahim Jogilkar","emailAddress":"ibrahim.jogilkar@cathago.de","contactNumber":"","alternateContactNumber":""},"memberStatus":"ACTIVE","username":"ibrahim.jogilkar@cathago.de"}],"locations":[{"title":"Site Location A","comments":"Primary construction site - North Sector","id":"CDD26022371560774","defaultLocation":true,"address":{"addressLineOne":"Site Road 12","addressLineTwo":"Gate 4","city":"Munich","country":"Germany","zipcode":"80331","comments":"Heavy vehicle access only through Gate 4","mapLink":"https://maps.example.com/siteA","region":"Bavaria","id":"CLO26022323754219"},"members":[{"id":"CCC26022333687104","emailAddress":"manager@example.com","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-11T14:23:31.495Z","contactPerson":{"id":"CTA26021116273926","fullName":"John Doe","emailAddress":"manager@example.com","contactNumber":"+49 123 4567","alternateContactNumber":"+49 987 6543"},"memberStatus":"PENDING","username":null}],"createdAt":"2026-02-23T11:22:05.853Z","lastModifiedAt":"2026-02-23T11:22:05.853Z"}],"customFieldValues":null,"projectStatus":"ACTIVE","tenantId":"C3125110678675695"}}}}}}},"summary":"Create one site","description":"### What this call does\n\nCreates one construction site, with its address, billing address, members, storage locations and additional fields.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header.\n- Your `companyAccountId` as a query parameter. There is no default for it.\n- A `title`. It is the only field the interface insists on.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company account. |\n\nThis call always creates. It has no `mode` and no lookup by `externalProjectId`: send the same body twice and you get two sites. For repeatable syncing use the bulk call with `ADD_OR_UPDATE`.\n\n### The fields\n\nThe body has no `id` field, `id` exists only on the bulk call, and sending it here changes nothing.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `tenantId` | text | No | (none) | Tenant. Left out, your default tenant is used. Unknown → `406` `TENANT_NOT_FOUND`. |\n| `externalProjectId` | text | No | (none) | Your own key for the site. 256 characters. |\n| `title` | text | **Yes** | none | Name of the site. The only required field. 1024 characters. |\n| `costCentre` | text | No | (none) | Cost centre. 256 characters. |\n| `startDate` | date | No | (none) | Start of works as `YYYY-MM-DD`. |\n| `endDate` | date | No | (none) | End of works as `YYYY-MM-DD`. |\n| `budget` | number | No | (none) | Plain number, no currency sign. 12 digits before the point, 3 after. |\n| `description` | text | No | (none) | Free text. 1024 characters. |\n| `projectStatus` | choice | No | `ACTIVE` | `DRAFT`, `ACTIVE`, `ARCHIVED` or `DEACTIVATED`. The misspelling `ARCHIEVED` is stored as `ACTIVE`, so the site stays live. |\n| `address` | object | No | (none) | Address of the site. One is stored even when you send none. |\n| `billingAddress` | object | No | (none) | Billing address. One is stored even when you send none. |\n| `members` | list | No | `[]` | People on the site. |\n| `locations` | list | No | `[]` | Storage points and delivery points. |\n| `customFieldValues` | list | No | `[]` | Values for your own additional fields. |\n\nThe inner shape of `address`, `billingAddress`, `members`, `locations` and `customFieldValues`, and the values of `projectStatus` and `role`, are on **Create or update sites (bulk), default mode**. Nothing about them changes here. Two of them bite most often: a member's `role` is written with an underscore, `CONSTRUCTION_MANAGER`, or the member ends up with no role at all; and a location's `members` may only name people who are on the site.\n\n> **Three traps.** A misspelled field name is dropped without a word. An unrecognised value for a fixed-choice field does not fail either, `projectStatus` falls back to `ACTIVE`, `role` and `valueType` end up empty. And a field that has a default (`projectStatus`, `members`, `locations`, `customFieldValues`, `role`, `sendInvite`, `defaultLocation`, `overrideExistingLocation`) is written even when you leave it out.\n\n### What you get back\n\n`201 Created`, not `200`, and the stored site: `id`, `externalProjectId`, `title`, `costCentre`, `startDate`, `endDate`, `budget`, `description`, `projectStatus`, `tenantId`, `address`, `billingAddress`, `members`, `locations` and `customFieldValues`. Each address has its own `id`; each member `id`, `emailAddress`, `role`, `invitationSentDate`, `contactPerson`, `memberStatus` (`PENDING`, `ACTIVE` or `DISABLED`), `username` and `tenants`; each location `id`, `title`, `comments`, `defaultLocation`, `address`, `members`, `createdAt` and `lastModifiedAt`.\n\n> **You are added to the site**, so `members` comes back one entry longer than the list you sent. And `role` comes back with a space, as `{\"roleName\": \"PROCUREMENT MANAGER\", \"roleType\": \"SYSTEM_DEFINED\"}`, while a request takes the constant `PROCUREMENT_MANAGER`.\n\n### Additional fields: `additionalFields` and `customFieldValues`\n\nA site can carry your own extra fields. There are two shapes, they write to the same place, and **both keep working**:\n\n| Field | Use it? |\n| --- | --- |\n| `additionalFields` | **Yes.** The current shape. |\n| `customFieldValues` | The older shape. Still read and still written, to exactly the same values. |\n\n`additionalFields` entries take:\n\n| Field | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `technicalName` | **Yes** | none | The key, and what a field is matched on when you save the site again. A field already stored under this name keeps its id and its creation date. |\n| `displayName` | No | (none) | The label a person sees |\n| `value` | No | (none) | The value, always text |\n| `valueType` | No | `TEXT` | `TEXT`, `NUMBER`, `FLOAT`, `DATE`, `SELECT`, `MULTI_SELECT`, `PASSWORD` |\n| `valueOptions` | No | empty | The choices, for `SELECT` and `MULTI_SELECT` |\n| `fieldId` | No | (none) | The field's id in your catalogue. Not needed, the name, label and type are enough. |\n\n**A field you name that does not exist yet is created for you**, so the value is one a form can show later rather than one stored out of sight.\n\n### How a write changes the fields, read this before your first update\n\n| What you send | What happens to the stored fields |\n| --- | --- |\n| `additionalFields` with entries | Those fields are **added or updated**. Every field you did not name is left alone. |\n| Neither field at all | Nothing changes. |\n| `\"customFieldValues\": []` | Nothing changes. |\n| `\"additionalFields\": []` | **Nothing changes**, an empty list is not a clear. |\n| `\"additionalFields\": [{}]` | **Every additional field on the site is deleted.** |\n\n> **The last two lines are the trap.** An empty list leaves everything alone; a list holding one blank entry wipes the lot. Exactly one entry, and that entry either `null` or carrying a blank `technicalName` **and** a blank `value`, is read as \"clear them all\". Two blank entries is not a clear. A blank entry alongside a real one is not a clear.\n\n> **Why an empty list does nothing:** `customFieldValues` defaults to an empty list on every payload, so an integration written before additional fields existed sends one on every update. Reading that as \"remove them all\" would have emptied those customers' sites. Clearing therefore has to be asked for on purpose.\n\n> `customFieldValues` writes a value onto the field it names, exactly as it always has. `additionalFields` writes the field as you describe it. Where both name the same `technicalName`, `additionalFields` is applied last and wins.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| Two identical sites | This call has no lookup; every request creates | Use the bulk call with `ADD_OR_UPDATE` for repeatable syncing. |\n| The site came out `ACTIVE` although you sent something else | The status was not one of the four values. `ARCHIEVED` is the usual culprit | Send `DRAFT`, `ACTIVE`, `ARCHIVED` or `DEACTIVATED`. |\n| The member has no role | `CONSTRUCTION MANAGER` with a space is not a value, and `role` has no fallback | Send `CONSTRUCTION_MANAGER`. |\n| An extra member you did not send | The API key's own member is added automatically | Expected. Leave it. |\n| `400` `INVALID_INPUTS`, `title : must not be blank` | No `title`, or only spaces | Send a title. |\n| `406` `MEMBER_WITH_EMAIL_ADDRESS_EXIST` or `PROJECT_MEMBER_NOT_ADDED_TO_PROJECT` | The address belongs to somebody in another company account, or a location names an e-mail that is not on the site | Use a different address, or put the person in the site's own `members` in the same request. |\n| `406` `TENANT_NOT_FOUND` | `tenantId` is unknown | Leave it out to use the default tenant. |\n| `406` `RESOURCE_IN_USE`, `Something went wrong!` | A value is longer than the field allows | Shorten it. |\n| `400`, message ends `yyyy-mm-dd` | A date was written the German way, `\"01.06.2026\"` | Send `\"2026-06-01\"`. |\n| `403` `FORBIDDEN`, `Invalid ApiKey` | Key missing, unknown, switched off or expired | Keys are per environment; a staging key fails in production. |\n| `400` `REQUEST_PARAMETER_IS_MISSING` | No `companyAccountId` in the address line | Add `?companyAccountId=...`. |\n| `400` `REQUIRED_REQUEST_BODY_IS_MISSING` | The `//` comments are still in the body, or the JSON is broken | Strip the comments. |"},"servers":[{"url":"https://api.cathago.de"}]},"/api/gateways/integration/projects/{projectId}":{"get":{"tags":["Projects"],"operationId":"find","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"},"description":"Your company account."},{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PublicApiProjectOutDto"}},"application/json":{"examples":{"find-project":{"summary":"Find Project","value":{"externalProjectId":"EXTPROJ1001","title":"TEST PROJECT FOUR","costCentre":"CC-5500","startDate":"2024-01-10","endDate":"2024-12-20","budget":150000,"description":"Ground-up construction of a 12-story residential building featuring eco-friendly materials and smart-home integration.","id":"C0226021153240487","address":{"addressLineOne":"123 Main Street","addressLineTwo":"Suite 5","city":"Berlin","country":"Germany","zipcode":"10115","comments":"Main office address","mapLink":"https://maps.example.com/123","region":null,"id":"CZE26021187121013"},"billingAddress":{"addressLineOne":"Billing Street 10","addressLineTwo":"","city":"Berlin","country":"Germany","zipcode":"10117","comments":"Send all invoices to the attention of Accounts Payable.","mapLink":"https://maps.example.com/billing","region":null,"id":"CVA26021141372399","companyName":"ABC Construction GmbH","vatId":"DE1123456789","emailAddress":null,"contactPersonName":null},"members":[{"id":"CZX26021187411640","emailAddress":"ibrahim.jogilkar@cathago.de","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2023-03-09T10:20:08.034Z","contactPerson":{"id":"5JloK9VC","fullName":"Ibrahim Jogilkar","emailAddress":"ibrahim.jogilkar@cathago.de","contactNumber":"","alternateContactNumber":""},"memberStatus":"ACTIVE","username":"ibrahim.jogilkar@cathago.de"},{"id":"CAK26021178934332","emailAddress":"manager@example.com","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-11T14:23:31.495Z","contactPerson":{"id":"CTA26021116273926","fullName":"John Doe","emailAddress":"manager@example.com","contactNumber":"+49 123 4567","alternateContactNumber":"+49 987 6543"},"memberStatus":"PENDING","username":null}],"locations":[{"title":"Site Location A","comments":"Primary construction site - North Sector","id":"CGA26021198658893","defaultLocation":true,"address":{"addressLineOne":"Site Road 12","addressLineTwo":"Gate 4","city":"Munich","country":"Germany","zipcode":"80331","comments":"Heavy vehicle access only through Gate 4","mapLink":"https://maps.example.com/siteA","region":"Bavaria","id":"CLW26021126821033"},"members":[{"id":"CAK26021178934332","emailAddress":"manager@example.com","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-11T14:23:31.495Z","contactPerson":{"id":"CTA26021116273926","fullName":"John Doe","emailAddress":"manager@example.com","contactNumber":"+49 123 4567","alternateContactNumber":"+49 987 6543"},"memberStatus":"PENDING","username":null}],"createdAt":"2026-02-11T14:23:31.546Z","lastModifiedAt":"2026-02-11T14:23:31.546Z"}],"customFieldValues":[],"projectStatus":"ACTIVE","tenantId":"C31kYL7E69"}}}}}}},"summary":"Look up one site","description":"### What this call does\n\nFetches one construction site with everything on it.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header.\n- Your `companyAccountId` as a query parameter. There is no default for it.\n- The site's `id` in the address line. Short Cathago id or internal uuid, both work.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company account. |\n| `projectId` (in the path) | **Yes** | none | The site to fetch. |\n\n### The fields\n\nThis call has no body. Send nothing.\n\n### What you get back\n\n`200 OK` and the stored site: `id`, `externalProjectId`, `title`, `costCentre`, `startDate`, `endDate`, `budget`, `description`, `projectStatus`, `tenantId`, `address`, `billingAddress`, `members`, `locations` and `customFieldValues`. Each address has its own `id`. Each member has `id`, `emailAddress`, `role`, `invitationSentDate`, `contactPerson`, `memberStatus` (`PENDING`, `ACTIVE` or `DISABLED`), `username` and `tenants`; each location `id`, `title`, `comments`, `defaultLocation`, `address`, `members`, `createdAt` and `lastModifiedAt`. Dates come back as text, never as numbers.\n\n> `role` comes back as an object, `{\"roleName\": \"PROCUREMENT MANAGER\", \"roleType\": \"SYSTEM_DEFINED\"}`, with a space, while a request takes the constant `PROCUREMENT_MANAGER`. Never send the response value back.\n\n> **This is the call to run before an update.** Take what comes back, change the fields you want and send it to **Update one site**, that call replaces the record, so anything missing from your body is cleared.\n\n### Additional fields: `additionalFields` and `customFieldValues`\n\nA site can carry your own extra fields. There are two shapes, they write to the same place, and **both keep working**:\n\n| Field | Use it? |\n| --- | --- |\n| `additionalFields` | **Yes.** The current shape. |\n| `customFieldValues` | The older shape. Still read and still written, to exactly the same values. |\n\n`additionalFields` entries take:\n\n| Field | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `technicalName` | **Yes** | none | The key, and what a field is matched on when you save the site again. A field already stored under this name keeps its id and its creation date. |\n| `displayName` | No | (none) | The label a person sees |\n| `value` | No | (none) | The value, always text |\n| `valueType` | No | `TEXT` | `TEXT`, `NUMBER`, `FLOAT`, `DATE`, `SELECT`, `MULTI_SELECT`, `PASSWORD` |\n| `valueOptions` | No | empty | The choices, for `SELECT` and `MULTI_SELECT` |\n| `fieldId` | No | (none) | The field's id in your catalogue. Not needed, the name, label and type are enough. |\n\n**A field you name that does not exist yet is created for you**, so the value is one a form can show later rather than one stored out of sight.\n\n### How a write changes the fields, read this before your first update\n\n| What you send | What happens to the stored fields |\n| --- | --- |\n| `additionalFields` with entries | Those fields are **added or updated**. Every field you did not name is left alone. |\n| Neither field at all | Nothing changes. |\n| `\"customFieldValues\": []` | Nothing changes. |\n| `\"additionalFields\": []` | **Nothing changes**, an empty list is not a clear. |\n| `\"additionalFields\": [{}]` | **Every additional field on the site is deleted.** |\n\n> **The last two lines are the trap.** An empty list leaves everything alone; a list holding one blank entry wipes the lot. Exactly one entry, and that entry either `null` or carrying a blank `technicalName` **and** a blank `value`, is read as \"clear them all\". Two blank entries is not a clear. A blank entry alongside a real one is not a clear.\n\n> **Why an empty list does nothing:** `customFieldValues` defaults to an empty list on every payload, so an integration written before additional fields existed sends one on every update. Reading that as \"remove them all\" would have emptied those customers' sites. Clearing therefore has to be asked for on purpose.\n\n> `customFieldValues` writes a value onto the field it names, exactly as it always has. `additionalFields` writes the field as you describe it. Where both name the same `technicalName`, `additionalFields` is applied last and wins.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `406` `PROJECT_NOT_FOUND`, `Project with ID... not found or you don't have permission!` | The id is unknown, or the site belongs to another company account | Check both the id and the `companyAccountId`. The two cases are deliberately indistinguishable. |\n| A site you know exists is not found | You used the `externalProjectId` in the path | This call takes the Cathago `id`. Find the site with **Search for sites** first. |\n| `projectStatus` reads `ACTIVE` although you archived the site | The value you sent was not one of the four and fell back to `ACTIVE`none`ARCHIEVED` is the usual culprit | Send `ARCHIVED` and check this field afterwards. |\n| `403` `FORBIDDEN`, `Invalid ApiKey` | Key missing, unknown, switched off or expired | Keys are per environment; a staging key fails in production. |\n| `400` `REQUEST_PARAMETER_IS_MISSING` | No `companyAccountId` in the address line | Add `?companyAccountId=...`. |"},"put":{"tags":["Projects"],"operationId":"update","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"},"description":"Your company account. A site belonging to anyone else is reported as not found."},{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiProjectInDto"},"example":{"tenantId":"C3125110678675695","externalProjectId":"BV-2026-0417","title":"Neubau Wohnpark Süd-West, Bauabschnitt 2","costCentre":"KST-4711","startDate":"2026-06-01","endDate":"2027-11-30","budget":2680000,"description":"38 Wohneinheiten in vier Gebäuden, Tiefgarage mit 42 Stellplätzen. Bauzeit um zwei Monate verlängert.","projectStatus":"ACTIVE","address":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Bauleitercontainer Tor 5","city":"Leipzig","country":"Deutschland","zipcode":"04103","comments":"Zufahrt jetzt über Baustellentor 5.","mapLink":"51.3315,12.3610","region":"Sachsen"},"billingAddress":{"addressLineOne":"Hauptstraße 88","addressLineTwo":"Verwaltung, 3. Obergeschoss","city":"Dresden","country":"Deutschland","zipcode":"01067","comments":"Rechnungen bitte nur per E-Mail.","mapLink":"https://maps.app.goo.gl/4kTn7xR1","region":"Sachsen","companyName":"Bauunternehmung Weber & Sohn GmbH","vatId":"DE812345678","emailAddress":"rechnung@weber-bau.de","contactPersonName":"Ingrid Weber"},"members":[{"emailAddress":"sharif.malik@cathago.de","role":"CONSTRUCTION_MANAGER","sendInvite":true,"contactPerson":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551020","alternateContactNumber":"+49 170 5551020"}}],"locations":[{"id":"CJO26022311668193","title":"Hauptlager Tor 5","comments":"Anlieferung werktags 06:30-16:00 Uhr.","defaultLocation":true,"overrideExistingLocation":false,"address":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Tor 5","city":"Leipzig","country":"Deutschland","zipcode":"04103","comments":"Zufahrt über die Nordseite.","mapLink":"51.3315,12.3610","region":"Sachsen"},"members":[{"emailAddress":"sharif.malik@cathago.de"},{"emailAddress":"anja.krause@cathago.de"}]}],"additionalFields":[{"technicalName":"bauherr","displayName":"Bauherr","value":"Öffentlich","valueType":"TEXT","valueOptions":["Privat","Öffentlich"],"fieldId":null}],"customFieldValues":[{"customFieldId":"CFD25110677415203","displayName":"Bauherr","technicalName":"bauherr","valueType":"TEXT","valueOptions":["Privat","Öffentlich"],"value":"Privat"}]}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PublicApiProjectOutDto"}},"application/json":{"examples":{"update-project":{"summary":"Update Project","value":{"externalProjectId":null,"title":"PROJECT HEM SSS","costCentre":"COSTBER001","startDate":"2023-06-25","endDate":"2028-02-23","budget":150000,"description":"Update anthing upto 4096 characters","id":"C0226022313402373","address":{"addressLineOne":"123 Main Street","addressLineTwo":"Suite 5","city":"Berlin","country":"Germany","zipcode":"10115","comments":"Main office address","mapLink":"https://maps.example.com/123","region":null,"id":"CAE26022389018632"},"billingAddress":{"addressLineOne":"Billing Street 10","addressLineTwo":"","city":"Berlin","country":"Germany","zipcode":"10117","comments":"Send all invoices to the attention of Accounts Payable.","mapLink":"https://maps.example.com/billing","region":null,"id":"CWZ26022365399387","companyName":"ABC Construction GmbH","vatId":"DE1123456789","emailAddress":null,"contactPersonName":null},"members":[{"id":"CDI26022381391510","emailAddress":"manager@example.com","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-11T14:23:31.495Z","contactPerson":{"id":"CTA26021116273926","fullName":"John Doe","emailAddress":"manager@example.com","contactNumber":"+49 123 4567","alternateContactNumber":"+49 987 6543"},"memberStatus":"PENDING","username":null},{"id":"CQJ26022387909222","emailAddress":"test-project-one@cathago.de","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-23T05:36:55.382Z","contactPerson":{"id":"CVA26022377241060","fullName":"Giriraj Sharma","emailAddress":"test-project-one@cathago.de","contactNumber":"+49 30 11223344","alternateContactNumber":"+49 171 1122334"},"memberStatus":"PENDING","username":null}],"locations":[{"title":"Site Location A","comments":"Primary construction site - North Sector","id":"CJO26022311668193","defaultLocation":true,"address":{"addressLineOne":"Site Road 12","addressLineTwo":"Gate 4","city":"Munich","country":"Germany","zipcode":"80331","comments":"Heavy vehicle access only through Gate 4","mapLink":"https://maps.example.com/siteA","region":"Bavaria","id":"CKB26022379772797"},"members":[{"id":"CQJ26022387909222","emailAddress":"test-project-one@cathago.de","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-23T05:36:55.382Z","contactPerson":{"id":"CVA26022377241060","fullName":"Giriraj Sharma","emailAddress":"test-project-one@cathago.de","contactNumber":"+49 30 11223344","alternateContactNumber":"+49 171 1122334"},"memberStatus":"PENDING","username":null},{"id":"CDI26022381391510","emailAddress":"manager@example.com","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-11T14:23:31.495Z","contactPerson":{"id":"CTA26021116273926","fullName":"John Doe","emailAddress":"manager@example.com","contactNumber":"+49 123 4567","alternateContactNumber":"+49 987 6543"},"memberStatus":"PENDING","username":null}],"createdAt":"2026-02-23T11:01:19.450Z","lastModifiedAt":"2026-02-23T12:06:59.514Z"}],"customFieldValues":[],"projectStatus":"ACTIVE","tenantId":"C31kYL7E69"}}}}}}},"summary":"Update one site","description":"### What this call does\n\nReplaces one construction site with the body you send. This is a full overwrite, not a partial change.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header.\n- Your `companyAccountId` as a query parameter. There is no default for it.\n- The site's `id` in the address line. Short Cathago id or internal uuid, both work.\n- The **complete** record. Anything you leave out is written away.\n\n> **Read the site first.** Fetch it with **Look up one site**, change the fields you care about and send the whole thing back. Sending only the two fields you want to change empties the rest. To change single fields instead, use the bulk call with `mode=PATCH`.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company account. A site belonging to anyone else is reported as not found. |\n| `projectId` (in the path) | **Yes** | none | The site to replace. Short id or internal uuid. |\n\n### The fields\n\nThe body has no `id` field, the site is named in the address line. The fields are those of **Create or update sites (bulk), default mode**: `tenantId`, `externalProjectId`, `title` (the only required one), `costCentre`, `startDate`, `endDate`, `budget`, `description`, `projectStatus` (default `ACTIVE`), `address`, `billingAddress`, `members`, `locations` and `customFieldValues`. That page carries the types, the limits, the inner shape of the five objects and lists, and the values of `projectStatus` and `role`.\n\n#### What happens to a field you leave out\n\n| Field | Left out of the body |\n| --- | --- |\n| `externalProjectId`, `costCentre`, `startDate`, `endDate`, `budget`, `description` | Cleared. |\n| `projectStatus` | Written as `ACTIVE`. |\n| `address`, `billingAddress` | Left alone. Sent, they are **replaced** whole, so a field you leave out inside them is cleared too. |\n| `members` | Left alone. Sent, only people not yet on the site are added. Nobody is removed and nobody is edited. |\n| `locations` | Left alone. Sent, an entry with an `id` updates that location; an entry without one updates the site's current default location. |\n| `customFieldValues` | Left alone. Sent, the named additional fields are written. |\n| `tenantId` | **Accepted and then ignored by this call**, sent or not. It cannot move a site to another tenant; use the bulk call for that. |\n\n> **Two silent behaviours.** A misspelled field name is dropped, not refused, so the value is lost without a word. And an unrecognised value for a fixed-choice field does not fail either: `projectStatus` falls back to `ACTIVE`, `role` and `valueType` end up empty. Names and values are case-insensitive; only the spelling has to be right.\n\n### What you get back\n\n`200 OK` and the stored site: `id`, `externalProjectId`, `title`, `costCentre`, `startDate`, `endDate`, `budget`, `description`, `projectStatus`, `tenantId`, `address`, `billingAddress`, `members`, `locations` and `customFieldValues`. Each address has its own `id`. Each member has `id`, `emailAddress`, `role`, `invitationSentDate`, `contactPerson`, `memberStatus` (`PENDING`, `ACTIVE` or `DISABLED`), `username` and `tenants`; each location `id`, `title`, `comments`, `defaultLocation`, `address`, `members`, `createdAt` and `lastModifiedAt`. Dates come back as text, never as numbers.\n\n> `role` comes back as an object, `{\"roleName\": \"PROCUREMENT MANAGER\", \"roleType\": \"SYSTEM_DEFINED\"}`, with a space, while a request takes the constant `PROCUREMENT_MANAGER`. Never send the response value back.\n\n### Additional fields: `additionalFields` and `customFieldValues`\n\nA site can carry your own extra fields. There are two shapes, they write to the same place, and **both keep working**:\n\n| Field | Use it? |\n| --- | --- |\n| `additionalFields` | **Yes.** The current shape. |\n| `customFieldValues` | The older shape. Still read and still written, to exactly the same values. |\n\n`additionalFields` entries take:\n\n| Field | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `technicalName` | **Yes** | none | The key, and what a field is matched on when you save the site again. A field already stored under this name keeps its id and its creation date. |\n| `displayName` | No | (none) | The label a person sees |\n| `value` | No | (none) | The value, always text |\n| `valueType` | No | `TEXT` | `TEXT`, `NUMBER`, `FLOAT`, `DATE`, `SELECT`, `MULTI_SELECT`, `PASSWORD` |\n| `valueOptions` | No | empty | The choices, for `SELECT` and `MULTI_SELECT` |\n| `fieldId` | No | (none) | The field's id in your catalogue. Not needed, the name, label and type are enough. |\n\n**A field you name that does not exist yet is created for you**, so the value is one a form can show later rather than one stored out of sight.\n\n### How a write changes the fields, read this before your first update\n\n| What you send | What happens to the stored fields |\n| --- | --- |\n| `additionalFields` with entries | Those fields are **added or updated**. Every field you did not name is left alone. |\n| Neither field at all | Nothing changes. |\n| `\"customFieldValues\": []` | Nothing changes. |\n| `\"additionalFields\": []` | **Nothing changes**, an empty list is not a clear. |\n| `\"additionalFields\": [{}]` | **Every additional field on the site is deleted.** |\n\n> **The last two lines are the trap.** An empty list leaves everything alone; a list holding one blank entry wipes the lot. Exactly one entry, and that entry either `null` or carrying a blank `technicalName` **and** a blank `value`, is read as \"clear them all\". Two blank entries is not a clear. A blank entry alongside a real one is not a clear.\n\n> **Why an empty list does nothing:** `customFieldValues` defaults to an empty list on every payload, so an integration written before additional fields existed sends one on every update. Reading that as \"remove them all\" would have emptied those customers' sites. Clearing therefore has to be asked for on purpose.\n\n> `customFieldValues` writes a value onto the field it names, exactly as it always has. `additionalFields` writes the field as you describe it. Where both name the same `technicalName`, `additionalFields` is applied last and wins.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| Fields you did not send are now empty | This call replaces the record, it does not merge | Read the site first, change what you need and send it all back. Or use the bulk call with `mode=PATCH`. |\n| The status jumped to `ACTIVE` | `projectStatus` was left out, so `ACTIVE` was written | Always send `projectStatus`. |\n| The tenant did not change | This call ignores `tenantId` | Use the bulk call with `mode=PATCH`. |\n| Half the address disappeared | Sending `address` replaces the whole address record | Send every address field you want to keep. |\n| The default delivery point is gone, or the wrong location changed | A location entry left out `defaultLocation`, or had no `id` | Send both on every location entry. |\n| `400` `INVALID_INPUTS`, `title : must not be blank` | No `title` in the body | Send a title. |\n| `406` `PROJECT_NOT_FOUND` | The `projectId` is unknown, or the site belongs to another company account | Check the id and the `companyAccountId`. |\n| `406` `RESOURCE_IN_USE`, `Something went wrong!` | A value is longer than the field allows | Shorten it. |\n| `400`, message ends `yyyy-mm-dd` | A date was written the German way, `\"01.06.2026\"` | Send `\"2026-06-01\"`. |\n| `403` `FORBIDDEN`, `Invalid ApiKey` | Key missing, unknown, switched off or expired | Keys are per environment; a staging key fails in production. |\n| `400` `REQUEST_PARAMETER_IS_MISSING` | No `companyAccountId` in the address line | Add `?companyAccountId=...`. |\n| `400` `REQUIRED_REQUEST_BODY_IS_MISSING` | The `//` comments are still in the body, or the JSON is broken | Strip the comments. |"},"delete":{"tags":["Projects"],"operationId":"delete","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"},"description":"Your company account. A site belonging to anyone else is reported as not found."},{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content","content":{}}},"summary":"Delete one site","description":"### What this call does\n\nDeletes one construction site.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header.\n- Your `companyAccountId` as a query parameter. There is no default for it.\n- The site's `id` in the address line. Short Cathago id or internal uuid, both work.\n- Certainty. There is no undo.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company account. A site belonging to anyone else is reported as not found. |\n| `projectId` (in the path) | **Yes** | none | The site to delete. |\n\n### The fields\n\nThis call has no body. Send nothing.\n\n### What you get back\n\n`204 No Content` with an empty body. Unlike the bulk delete, this call checks first: an unknown site comes back as an error rather than a quiet `204`.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `406` `PROJECT_NOT_FOUND`, `Project with ID... not found or you don't have permission!` | The id is unknown, or the site belongs to another company account | Check the id and the `companyAccountId`. Both cases give the same answer on purpose. |\n| `406` `RESOURCE_IN_USE`, `Something went wrong!` | The site is still referenced by other records | Clear those records, or archive the site instead. |\n| You wanted to hide the site, not lose it | Deleting is final; archiving is not | Send `projectStatus: \"ARCHIVED\"` through **Update one site** or the bulk call. |\n| `403` `FORBIDDEN`, `Invalid ApiKey` | Key missing, unknown, switched off or expired | Keys are per environment; a staging key fails in production. |\n| `400` `REQUEST_PARAMETER_IS_MISSING` | No `companyAccountId` in the address line | Add `?companyAccountId=...`. |"},"servers":[{"url":"https://api.cathago.de"}]},"/api/gateways/integration/projects/bulk":{"put":{"tags":["Projects"],"operationId":"bulkUpdate","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"},"description":"Your company account."},{"name":"mode","in":"query","required":false,"schema":{"type":"string","default":"ADD_OR_UPDATE","enum":["ADD","ADD_OR_UPDATE","PATCH"]},"description":"ADD, ADD_OR_UPDATE or PATCH, as a query parameter."}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiProjectUpdateInDto"}},"examples":{"create-or-update-sites-bulk-default-mode":{"summary":"Create or update sites (bulk), default mode","value":[{"id":null,"tenantId":"C3125110678675695","externalProjectId":"BV-2026-0417","title":"Neubau Wohnpark Süd-West, Bauabschnitt 2","costCentre":"KST-4711","startDate":"2026-06-01","endDate":"2027-09-30","budget":2450000,"description":"38 Wohneinheiten in vier Gebäuden, Tiefgarage mit 42 Stellplätzen.","projectStatus":"ACTIVE","address":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Bauleitercontainer Tor 3","city":"Leipzig","country":"Deutschland","zipcode":"04103","comments":"Zufahrt nur über Ottostraße, Baustellentor 3.","mapLink":"https://maps.app.goo.gl/9xQm2vB4","region":"Sachsen"},"billingAddress":{"addressLineOne":"Hauptstraße 88","addressLineTwo":"Verwaltung, 3. Obergeschoss","city":"Dresden","country":"Deutschland","zipcode":"01067","comments":"Rechnungen bitte nur per E-Mail.","mapLink":"https://maps.app.goo.gl/4kTn7xR1","region":"Sachsen","companyName":"Bauunternehmung Weber & Sohn GmbH","vatId":"DE812345678","emailAddress":"rechnung@weber-bau.de","contactPersonName":"Ingrid Weber"},"members":[{"emailAddress":"sharif.malik@cathago.de","role":"CONSTRUCTION_MANAGER","sendInvite":true,"customCompanyAccountRoleId":"CRL2511069912440","contactPerson":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551020","alternateContactNumber":"+49 170 5551020"},"tenants":[{"tenantId":"C3125110678675695","allProjects":true}]},{"emailAddress":"anja.krause@cathago.de","role":"PROCUREMENT_MANAGER","sendInvite":false,"contactPerson":{"fullName":"Anja Krause","contactNumber":"+49 341 5551044","alternateContactNumber":"+49 170 5551044"}}],"locations":[{"id":null,"title":"Hauptlager Tor 3","comments":"Anlieferung werktags 07:00-16:00 Uhr.","defaultLocation":true,"overrideExistingLocation":false,"address":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Tor 3","city":"Leipzig","country":"Deutschland","zipcode":"04103","comments":"Stellfläche für Sattelzüge vorhanden.","mapLink":"51.3315,12.3610","region":"Sachsen"},"members":[{"emailAddress":"sharif.malik@cathago.de"},{"emailAddress":"anja.krause@cathago.de"}]}],"additionalFields":[{"technicalName":"bauherr","displayName":"Bauherr","value":"Öffentlich","valueType":"TEXT","valueOptions":["Privat","Öffentlich"],"fieldId":null}],"customFieldValues":[{"customFieldId":null,"displayName":"Bauherr","technicalName":"bauherr","valueType":"TEXT","valueOptions":["Privat","Öffentlich"],"value":"Privat"}]}]},"update-existing-sites-only-bulk-patch-mode":{"summary":"Update existing sites only (bulk), PATCH mode","value":[{"id":"C0226021180772794","tenantId":"C3125110678675695","externalProjectId":"BV-2026-0417","title":"Neubau Wohnpark Süd-West, Bauabschnitt 2","costCentre":"KST-4711","startDate":"2026-06-01","endDate":"2027-11-30","budget":2680000,"description":"38 Wohneinheiten in vier Gebäuden, Tiefgarage mit 42 Stellplätzen. Bauzeit verlängert.","projectStatus":"ACTIVE","address":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Bauleitercontainer Tor 5","city":"Leipzig","country":"Deutschland","zipcode":"04103","comments":"Zufahrt jetzt über Baustellentor 5.","mapLink":"51.3315,12.3610","region":"Sachsen"},"billingAddress":{"addressLineOne":"Hauptstraße 88","addressLineTwo":"Verwaltung, 3. Obergeschoss","city":"Dresden","country":"Deutschland","zipcode":"01067","comments":"Rechnungen bitte nur per E-Mail.","mapLink":"https://maps.app.goo.gl/4kTn7xR1","region":"Sachsen","companyName":"Bauunternehmung Weber & Sohn GmbH","vatId":"DE812345678","emailAddress":"rechnung@weber-bau.de","contactPersonName":"Ingrid Weber"},"members":[{"emailAddress":"sharif.malik@cathago.de","role":"CONSTRUCTION_MANAGER","sendInvite":false,"contactPerson":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551020","alternateContactNumber":"+49 170 5551020"}}],"locations":[{"id":"CJO26022311668193","title":"Hauptlager Tor 5","comments":"Anlieferung werktags 06:30-16:00 Uhr.","defaultLocation":true,"overrideExistingLocation":false,"address":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Tor 5","city":"Leipzig","country":"Deutschland","zipcode":"04103","comments":"Zufahrt über die Nordseite.","mapLink":"51.3315,12.3610","region":"Sachsen"},"members":[{"emailAddress":"sharif.malik@cathago.de"},{"emailAddress":"anja.krause@cathago.de"}]}],"additionalFields":[{"technicalName":"bauherr","displayName":"Bauherr","value":"Öffentlich","valueType":"TEXT","valueOptions":["Privat","Öffentlich"],"fieldId":null}],"customFieldValues":[{"customFieldId":"CFD25110677415203","displayName":"Bauherr","technicalName":"bauherr","valueType":"TEXT","valueOptions":["Privat","Öffentlich"],"value":"Öffentlich"}]},{"id":"C0226022313402373","title":"Erweiterung Logistikzentrum Ost","costCentre":"","endDate":"2028-03-31","projectStatus":"ARCHIVED"}]},"create-new-sites-only-bulk-add-mode":{"summary":"Create new sites only (bulk), ADD mode","value":[{"id":null,"tenantId":"C3125110678675695","externalProjectId":"BV-2026-0518","title":"Sanierung Schulzentrum Nord, Bauabschnitt 1","costCentre":"KST-5120","startDate":"2026-09-14","endDate":"2027-07-31","budget":1875000,"description":"Energetische Sanierung von drei Schulgebäuden, neue Fenster und Dachdämmung.","projectStatus":"DRAFT","address":{"addressLineOne":"Zwickauer Straße 47","addressLineTwo":"Bauleitung Gebäude C","city":"Chemnitz","country":"Deutschland","zipcode":"09112","comments":"Baustellenzufahrt über die Hofeinfahrt Süd.","mapLink":"50.8285,12.9095","region":"Sachsen"},"billingAddress":{"addressLineOne":"Hauptstraße 88","addressLineTwo":"Verwaltung, 3. Obergeschoss","city":"Dresden","country":"Deutschland","zipcode":"01067","comments":"Rechnungen bitte nur per E-Mail.","mapLink":"https://maps.app.goo.gl/4kTn7xR1","region":"Sachsen","companyName":"Bauunternehmung Weber & Sohn GmbH","vatId":"DE812345678","emailAddress":"rechnung@weber-bau.de","contactPersonName":"Ingrid Weber"},"members":[{"emailAddress":"sharif.malik@cathago.de","role":"FOREMEN","sendInvite":true,"contactPerson":{"fullName":"Sharif Malik","contactNumber":"+49 371 5552210","alternateContactNumber":"+49 171 5552210"}}],"locations":[{"id":null,"title":"Materiallager Hof Süd","comments":"Nur Schüttgut und Gerüstmaterial.","defaultLocation":true,"overrideExistingLocation":false,"address":{"addressLineOne":"Zwickauer Straße 47","addressLineTwo":"Hofeinfahrt Süd","city":"Chemnitz","country":"Deutschland","zipcode":"09112","comments":"Wendemöglichkeit für Sattelzüge.","mapLink":"50.8285,12.9095","region":"Sachsen"},"members":[{"emailAddress":"sharif.malik@cathago.de"}]}],"additionalFields":[{"technicalName":"bauherr","displayName":"Bauherr","value":"Öffentlich","valueType":"TEXT","valueOptions":["Privat","Öffentlich"],"fieldId":null}],"customFieldValues":[{"customFieldId":null,"displayName":"Fördermittel","technicalName":"foerdermittel","valueType":"SELECT","valueOptions":["Bund","Land","Keine"],"value":"Land"}]},{"id":null,"tenantId":"C3125110678675695","externalProjectId":"BV-2026-0519","title":"Sanierung Schulzentrum Nord, Bauabschnitt 2","costCentre":"KST-5121","startDate":"2027-03-01","endDate":"2028-02-29","budget":1450000,"description":"Turnhalle und Mensa, Innenausbau und Haustechnik.","projectStatus":"DRAFT"}]}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiProjectOutDto"}}},"application/json":{"examples":{"bulk-add-update-projects":{"summary":"Bulk Add / Update - Projects","value":[{"externalProjectId":"BERP012026","title":"TEST PROJECT ONE","costCentre":"COSTBER001","startDate":"2026-05-01","endDate":"2027-12-31","budget":2500000,"description":"Modern office complex with sustainable energy solutions located near the Spree river.","id":"C0226021180772794","address":{"addressLineOne":"Mühlenstraße 78","addressLineTwo":"Bauabschnitt A","city":"Berlin","country":"Germany","zipcode":"10243","comments":"Entrance via side gate 2.","mapLink":"52.5050,13.4390","region":null,"id":"CYU26021146008227"},"billingAddress":{"addressLineOne":"Friedrichstraße 100","addressLineTwo":"Etage 4","city":"Berlin","country":"Germany","zipcode":"10117","comments":"Send invoices to attention of Accounts Payable.","mapLink":"52.5150,13.3880","region":null,"id":"CSC26021179048973","companyName":"Spree Bau Holding GmbH","vatId":"DE987654321","emailAddress":null,"contactPersonName":null},"members":[{"id":"CHA26021157969608","emailAddress":"test-project-one@cathago.de","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-11T14:01:32.629Z","contactPerson":{"id":"CQK26021168450778","fullName":"Giriraj Sharma","emailAddress":"test-project-one@cathago.de","contactNumber":"+49 30 11223344","alternateContactNumber":"+49 171 1122334"},"memberStatus":"PENDING","username":null},{"id":"CNI26021123102965","emailAddress":"ibrahim.jogilkar@cathago.de","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2023-03-09T10:20:08.034Z","contactPerson":{"id":"5JloK9VC","fullName":"Ibrahim Jogilkar","emailAddress":"ibrahim.jogilkar@cathago.de","contactNumber":"","alternateContactNumber":""},"memberStatus":"ACTIVE","username":"ibrahim.jogilkar@cathago.de"}],"locations":[{"title":"Container Village","comments":"Site management and break rooms.","id":"CYQ26021166665535","defaultLocation":true,"address":{"addressLineOne":"Mühlenstraße 80","addressLineTwo":"","city":"Berlin","country":"Germany","zipcode":"10243","comments":"Temporary structures.","mapLink":"52.5051,13.4391","region":"Berlin","id":"CUG26021157402386"},"members":[{"id":"CHA26021157969608","emailAddress":"test-project-one@cathago.de","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-11T14:01:32.629Z","contactPerson":{"id":"CQK26021168450778","fullName":"Giriraj Sharma","emailAddress":"test-project-one@cathago.de","contactNumber":"+49 30 11223344","alternateContactNumber":"+49 171 1122334"},"memberStatus":"PENDING","username":null}],"createdAt":"2026-02-11T13:34:59.197Z","lastModifiedAt":"2026-02-11T13:34:59.197Z"}],"customFieldValues":[],"projectStatus":"ACTIVE","tenantId":"C3125110678675695"},{"externalProjectId":"BERP022026","title":"TEST PROJECT TWO","costCentre":"COSTHAM002","startDate":"2026-06-15","endDate":"2029-01-20","budget":8750000.5,"description":"High-end residential units in the Hamburg HafenCity area.","id":"C0226021119537622","address":{"addressLineOne":"Am Sandtorkai 44","addressLineTwo":"","city":"Hamburg","country":"Germany","zipcode":"20457","comments":"Restricted access during high tide events.","mapLink":"53.5430,9.9920","region":null,"id":"CLC26021146026561"},"billingAddress":{"addressLineOne":"Neuer Wall 10","addressLineTwo":"Penthause Office","city":"Hamburg","country":"Germany","zipcode":"20354","comments":"Direct billing only.","mapLink":"53.5510,9.9910","region":null,"id":"CQS26021121127597","companyName":"Hanseatic Living GmbH","vatId":"DE123123123","emailAddress":null,"contactPersonName":null},"members":[{"id":"CUZ26021107055739","emailAddress":"test-project-two@cathago.de","role":{"roleName":"CONSTRUCTION MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":null,"contactPerson":{"id":"CND26021104382512","fullName":"Giriraj Construction Manager","emailAddress":"test-project-two@cathago.de","contactNumber":"+49 40 99887766","alternateContactNumber":""},"memberStatus":"PENDING","username":null},{"id":"CNK26021190361024","emailAddress":"ibrahim.jogilkar@cathago.de","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2023-03-09T10:20:08.034Z","contactPerson":{"id":"5JloK9VC","fullName":"Ibrahim Jogilkar","emailAddress":"ibrahim.jogilkar@cathago.de","contactNumber":"","alternateContactNumber":""},"memberStatus":"ACTIVE","username":"ibrahim.jogilkar@cathago.de"}],"locations":[{"title":"West Dock Storage","comments":"Storage for waterproofing materials.","id":"CMC26021174163656","defaultLocation":true,"address":{"addressLineOne":"Brooktorkai 12","addressLineTwo":"Warehouse B","city":"Hamburg","country":"Germany","zipcode":"20457","comments":"Climate controlled.","mapLink":"53.5440,9.9980","region":"Hamburg","id":"CZR26021136077380"},"members":[{"id":"CUZ26021107055739","emailAddress":"test-project-two@cathago.de","role":{"roleName":"CONSTRUCTION MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":null,"contactPerson":{"id":"CND26021104382512","fullName":"Giriraj Construction Manager","emailAddress":"test-project-two@cathago.de","contactNumber":"+49 40 99887766","alternateContactNumber":""},"memberStatus":"PENDING","username":null}],"createdAt":"2026-02-11T14:01:32.981Z","lastModifiedAt":"2026-02-11T14:01:32.981Z"}],"customFieldValues":null,"projectStatus":"ACTIVE","tenantId":"C3125110678675695"}]},"bulk-update-projects-patch-mode":{"summary":"Bulk Update - Projects | PATCH mode","value":[{"externalProjectId":"BERP012026","title":"TEST PROJECT ONE","costCentre":"COSTBER001","startDate":"2026-05-01","endDate":"2027-12-31","budget":2500000,"description":"Modern office complex with sustainable energy solutions located near the Spree river.","id":"C0226022313402373","address":{"addressLineOne":"Mühlenstraße 78","addressLineTwo":"Bauabschnitt A","city":"Berlin","country":"Germany","zipcode":"10243","comments":"Entrance via side gate 2.","mapLink":"52.5050,13.4390","region":null,"id":"CAE26022389018632"},"billingAddress":{"addressLineOne":"Friedrichstraße 100","addressLineTwo":"Etage 4","city":"Berlin","country":"Germany","zipcode":"10117","comments":"Send invoices to attention of Accounts Payable.","mapLink":"52.5150,13.3880","region":null,"id":"CWZ26022365399387","companyName":"Spree Bau Holding GmbH","vatId":"DE987654321","emailAddress":null,"contactPersonName":null},"members":[{"id":"CQJ26022387909222","emailAddress":"test-project-one@cathago.de","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-23T05:36:55.382Z","contactPerson":{"id":"CVA26022377241060","fullName":"Giriraj Sharma","emailAddress":"test-project-one@cathago.de","contactNumber":"+49 30 11223344","alternateContactNumber":"+49 171 1122334"},"memberStatus":"PENDING","username":null}],"locations":[{"title":"Container Village","comments":"Site management and break rooms.","id":"CJO26022311668193","defaultLocation":true,"address":{"addressLineOne":"Mühlenstraße 80","addressLineTwo":"","city":"Berlin","country":"Germany","zipcode":"10243","comments":"Temporary structures.","mapLink":"52.5051,13.4391","region":"Berlin","id":"CKB26022379772797"},"members":[{"id":"CQJ26022387909222","emailAddress":"test-project-one@cathago.de","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-23T05:36:55.382Z","contactPerson":{"id":"CVA26022377241060","fullName":"Giriraj Sharma","emailAddress":"test-project-one@cathago.de","contactNumber":"+49 30 11223344","alternateContactNumber":"+49 171 1122334"},"memberStatus":"PENDING","username":null}],"createdAt":"2026-02-23T11:01:19.450Z","lastModifiedAt":"2026-02-23T11:01:19.450Z"}],"customFieldValues":[],"projectStatus":"DEACTIVATED","tenantId":"C3125110678675695"}]},"bulk-add-projects-add-mode":{"summary":"Bulk Add - Projects | ADD mode","value":[{"externalProjectId":"MUCRES-2026","title":"ADD PROJECT 1","costCentre":"BAU-MUC-902","startDate":"2026-08-01","endDate":"2029-03-15","budget":6200000.5,"description":"Errichtung einer Wohnanlage mit 35 Einheiten, begrüntem Innenhof und Tiefgarage nähe Isarufer.","id":"C0226022363601332","address":{"addressLineOne":"Erhardtstraße 12","addressLineTwo":"Hofgebäude","city":"München","country":"Germany","zipcode":"80469","comments":"Zufahrt für Schwerlasttransporte über die Boschbrücke.","mapLink":"48.1305,11.5830","region":null,"id":"CCW26022354699861"},"billingAddress":{"addressLineOne":"Maximilianstraße 35","addressLineTwo":"2. Stock","city":"München","country":"Germany","zipcode":"80539","comments":"Rechnungsadresse der Projektgesellschaft.","mapLink":"48.1390,11.5820","region":null,"id":"CRK26022353553814","companyName":"Bayerische Immobilien Bau GmbH","vatId":"DE811223344","emailAddress":null,"contactPersonName":null},"members":[{"id":"CVQ26022354218912","emailAddress":"test-project-three@cathago.de","role":{"roleName":"CONSTRUCTION MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-23T11:06:52.659Z","contactPerson":{"id":"CPW26022382460731","fullName":"Giriraj Sharma","emailAddress":"test-project-three@cathago.de","contactNumber":"+49 89 22334455","alternateContactNumber":"+49 160 5566778"},"memberStatus":"PENDING","username":null},{"id":"CPT26022381786635","emailAddress":"ibrahim.jogilkar@cathago.de","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2023-03-09T10:20:08.034Z","contactPerson":{"id":"5JloK9VC","fullName":"Ibrahim Jogilkar","emailAddress":"ibrahim.jogilkar@cathago.de","contactNumber":"","alternateContactNumber":""},"memberStatus":"ACTIVE","username":"ibrahim.jogilkar@cathago.de"}],"locations":[{"title":"Gerätepark West","comments":"Lager für Kleingeräte und Werkzeuge.","id":"CJN26022332315999","defaultLocation":true,"address":{"addressLineOne":"Erhardtstraße 14","addressLineTwo":"Container-Area","city":"München","country":"Germany","zipcode":"80469","comments":"24/7 bewachter Bereich.","mapLink":"48.1306,11.5831","region":"Bayern","id":"CQR26022372663402"},"members":[{"id":"CVQ26022354218912","emailAddress":"test-project-three@cathago.de","role":{"roleName":"CONSTRUCTION MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-23T11:06:52.659Z","contactPerson":{"id":"CPW26022382460731","fullName":"Giriraj Sharma","emailAddress":"test-project-three@cathago.de","contactNumber":"+49 89 22334455","alternateContactNumber":"+49 160 5566778"},"memberStatus":"PENDING","username":null}],"createdAt":"2026-02-23T11:09:53.239Z","lastModifiedAt":"2026-02-23T11:09:53.239Z"}],"customFieldValues":null,"projectStatus":"ACTIVE","tenantId":"C3125110678675695"},{"externalProjectId":"MUN052026","title":"ADD PROJECT 2","costCentre":"COSTHAM002","startDate":"2026-06-15","endDate":"2029-01-20","budget":8750000.5,"description":"Commercial mixed-use development featuring retail spaces and sustainable office hubs.","id":"C0226022387586767","address":{"addressLineOne":"Leopoldstrasse 150","addressLineTwo":"Block C","city":"Munich","country":"Germany","zipcode":"80804","comments":"Access via north gate only.","mapLink":"53.5430,9.9920","region":null,"id":"CMN26022384452831"},"billingAddress":{"addressLineOne":"Maximilianstrasse 25","addressLineTwo":"Suite 400","city":"Munich","country":"Germany","zipcode":"20354","comments":"Electronic invoicing preferred.","mapLink":"53.5510,9.9910","region":null,"id":"CHN26022382273172","companyName":"Bavarian Assets SE","vatId":"DE987654321","emailAddress":null,"contactPersonName":null},"members":[{"id":"CKO26022343999795","emailAddress":"test-project-four@cathago.de","role":{"roleName":"CONSTRUCTION MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":null,"contactPerson":{"id":"CZR26022375663964","fullName":"Giriraj Construction Manager","emailAddress":"test-project-four@cathago.de","contactNumber":"+49 40 99887766","alternateContactNumber":""},"memberStatus":"PENDING","username":null},{"id":"CGB26022380656610","emailAddress":"ibrahim.jogilkar@cathago.de","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2023-03-09T10:20:08.034Z","contactPerson":{"id":"5JloK9VC","fullName":"Ibrahim Jogilkar","emailAddress":"ibrahim.jogilkar@cathago.de","contactNumber":"","alternateContactNumber":""},"memberStatus":"ACTIVE","username":"ibrahim.jogilkar@cathago.de"}],"locations":[{"title":"West Dock Storage","comments":"Storage for waterproofing materials.","id":"CNL26022339789242","defaultLocation":true,"address":{"addressLineOne":"Brooktorkai 12","addressLineTwo":"Warehouse B","city":"Hamburg","country":"Germany","zipcode":"20457","comments":"Climate controlled.","mapLink":"53.5440,9.9980","region":"Hamburg","id":"CAT26022376109302"},"members":[{"id":"CKO26022343999795","emailAddress":"test-project-four@cathago.de","role":{"roleName":"CONSTRUCTION MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":null,"contactPerson":{"id":"CZR26022375663964","fullName":"Giriraj Construction Manager","emailAddress":"test-project-four@cathago.de","contactNumber":"+49 40 99887766","alternateContactNumber":""},"memberStatus":"PENDING","username":null}],"createdAt":"2026-02-23T11:09:53.427Z","lastModifiedAt":"2026-02-23T11:09:53.427Z"}],"customFieldValues":null,"projectStatus":"ACTIVE","tenantId":"C3125110678675695"}]}}}}}},"summary":"Create or update sites (bulk), default mode / Update existing sites only (bulk), PATCH mode / Create new sites only (bulk), ADD mode","description":"#### Create or update sites (bulk), default mode\n\n### What this call does\n\nCreates or updates several construction sites in one request, with their address, billing address, members, storage locations and additional fields.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header.\n- Your `companyAccountId` as a query parameter. There is no default for it.\n- At least one entry, and a `title` on every entry. An empty list `[]` is refused.\n- The `id` or the `externalProjectId` of every site you mean to update.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company account. |\n| `mode` | No | `ADD_OR_UPDATE` | `ADD`, `ADD_OR_UPDATE` or `PATCH`, as a query parameter. |\n\n`ADD` and `ADD_OR_UPDATE` do exactly the same thing: an existing site is updated, a new one created. Only `PATCH` behaves differently, and it has its own page. Unlike the fields of the body, an unrecognised `mode` is refused outright, so spell it exactly.\n\n### The fields\n\nSend a list of sites. Each entry takes these fields. A value longer than the limit given here comes back as `406` `RESOURCE_IN_USE`.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `id` | text | No | (none) | Cathago's id for the site. Short id or internal uuid. |\n| `tenantId` | text | No | (none) | Tenant. Left out, your default tenant is used. Unknown → `406` `TENANT_NOT_FOUND`. |\n| `externalProjectId` | text | No | (none) | Your own key for the site. 256 characters. |\n| `title` | text | **Yes** | none | Name of the site. The only required field. 1024 characters. |\n| `costCentre` | text | No | (none) | Cost centre. 256 characters. |\n| `startDate` | date | No | (none) | Start of works as `YYYY-MM-DD`. |\n| `endDate` | date | No | (none) | End of works as `YYYY-MM-DD`. |\n| `budget` | number | No | (none) | Plain number, no currency sign. 12 digits before the point, 3 after. |\n| `description` | text | No | (none) | Free text. 1024 characters. |\n| `projectStatus` | choice | No | `ACTIVE` | `DRAFT`, `ACTIVE`, `ARCHIVED` or `DEACTIVATED`. |\n| `address` | object | No | (none) | Address of the site. One is stored even when you send none. |\n| `billingAddress` | object | No | (none) | Billing address. One is stored even when you send none. |\n| `members` | list | No | `[]` | People on the site. |\n| `locations` | list | No | `[]` | Storage points and delivery points. |\n| `customFieldValues` | list | No | `[]` | Values for your own additional fields. |\n\n> **A field that has a default is written even when you leave it out.** Leave out `projectStatus` and the site becomes `ACTIVE`; leave out `defaultLocation` and that location stops being the delivery point. The same goes for `members`, `locations`, `customFieldValues`, `role`, `sendInvite` and `overrideExistingLocation`.\n\n> **Two silent behaviours.** A misspelled field name is dropped, not refused, so the value is lost without a word. And an unrecognised value for a fixed-choice field does not fail either: `projectStatus` falls back to `ACTIVE`, `role` and `valueType` end up empty. Names and values are case-insensitive; only the spelling has to be right.\n\n#### How a site is found\n\nAn entry with an `id` updates that site, an unknown id, or one belonging to somebody else, fails the whole call. An entry with no `id` but an `externalProjectId` updates the **first** site carrying it, since that key does not have to be unique. An entry matching neither creates a site. Send the `id` once you have one.\n\n#### The fields inside `address`\n\nAll optional and none of them checked. The number is the longest value that can be stored.\n\n| Field | Meaning |\n| --- | --- |\n| `addressLineOne` | Street and number. 512 characters. |\n| `addressLineTwo` | Building, floor, site office. 512. |\n| `city` | Town. 256. |\n| `country` | Country as free text. 256. |\n| `zipcode` | Postal code. In quotation marks, so a leading zero survives. 256. |\n| `comments` | Notes about access. 256. |\n| `mapLink` | Map link or a coordinate pair. 1024. |\n| `region` | Federal state or region. 1024. |\n\n#### The fields inside `billingAddress`\n\nThe same eight fields as `address`, plus four of its own, all optional: `companyName` (invoice recipient, 512), `vatId` (VAT number such as `DE812345678`, 512), `emailAddress` (where invoices go) and `contactPersonName` (the accounts contact).\n\n#### The fields inside `members`\n\nOnly `emailAddress` is required.\n\n| Field | Default | Meaning |\n| --- | --- | --- |\n| `emailAddress` | none | A normal work address: no spaces, no umlauts, exactly one `@`. A dot after the `@` is not required. |\n| `role` | `CONSTRUCTION_MANAGER` | `PROCUREMENT_MANAGER`, `ADMIN`, `CONSTRUCTION_MANAGER`, `FOREMEN` or `GUEST`. |\n| `sendInvite` | `false` | `true` sends the invitation mail and stamps `invitationSentDate`; `false` leaves them at `memberStatus: PENDING`. |\n| `customCompanyAccountRoleId` | (none) | Id of one of your own roles. Set, it wins over `role`. |\n| `contactPerson` | (none) | `fullName`, `contactNumber` and `alternateContactNumber`. |\n| `tenants` | `[]` | Restricts the member to tenants: `{\"tenantId\": \"C3125110678675695\", \"allProjects\": true}`, `allProjects` default `true`. |\n\n| Accepted address | Refused |\n| --- | --- |\n| `sharif.malik@cathago.de` | `sharif malik@cathago.de`, a space |\n| `bauleitung+nord@cathago.de` | `sharif.malik@@cathago.de`, two `@` |\n\n> **Write the role with an underscore.** `CONSTRUCTION MANAGER` with a space is not a value, and `role` has no fallback, so the member ends up with no role at all.\n\n#### The fields inside `locations`\n\nAll optional.\n\n| Field | Default | Meaning |\n| --- | --- | --- |\n| `id` | (none) | Id of an existing location. |\n| `title` | (none) | Name of the location. 512 characters. |\n| `comments` | (none) | Notes, for example delivery hours. 1024 characters. |\n| `defaultLocation` | `false` | `true` makes this the site's delivery point and clears the flag on the others. |\n| `overrideExistingLocation` | `false` | `true` replaces the whole address, so fields you leave out are emptied. |\n| `address` | (none) | Same eight fields as `address` above. |\n| `members` | `[]` | People at this location. Each entry has one field, `emailAddress`. |\n\n> **A location without an `id` does not always create a new one**, on a site that already exists, its current default location is updated instead. And a location member must already be on the site, or you get `406` `MEMBER_NOT_FOUND` or `406` `PROJECT_MEMBER_NOT_ADDED_TO_PROJECT`.\n\n#### The fields inside `customFieldValues`\n\nAll optional.\n\n| Field | Default | Meaning |\n| --- | --- | --- |\n| `customFieldId` | (none) | Id of an additional field you already have. Set it and the four below are ignored. |\n| `displayName` | (none) | Label of a new additional field. |\n| `technicalName` | (none) | Machine-readable name of a new additional field. |\n| `valueType` | `TEXT` | `TEXT`, `NUMBER`, `DATE`, `FLOAT`, `SELECT`, `MULTI_SELECT` or `PASSWORD`. |\n| `valueOptions` | `[]` | The choices, for `SELECT` and `MULTI_SELECT`. |\n| `value` | (none) | The value itself, always sent as text. |\n\nLeaving `customFieldId` empty creates the field, so a typo in `technicalName` quietly creates a second one instead of filling the first.\n\n#### The values of `projectStatus`\n\n| Value | What it means |\n| --- | --- |\n| `DRAFT` | Being prepared. A search returns it only when you ask for `DRAFT`. |\n| `ACTIVE` | Live site, and what a search returns when you name no status. |\n| `ARCHIVED` | Closed. |\n| `DEACTIVATED` | Switched off. |\n\n> **`ARCHIEVED` silently activates the site.** The misspelling is not one of the four values, so it falls back to `ACTIVE`: you get `200 OK` and the site stays live. Search your integrations for it and change it to `ARCHIVED`.\n\n### What you get back\n\n`200 OK` and the stored site: `id`, `externalProjectId`, `title`, `costCentre`, `startDate`, `endDate`, `budget`, `description`, `projectStatus`, `tenantId`, `address`, `billingAddress`, `members`, `locations` and `customFieldValues`. Each address has its own `id`. Each member has `id`, `emailAddress`, `role`, `invitationSentDate`, `contactPerson`, `memberStatus` (`PENDING`, `ACTIVE` or `DISABLED`), `username` and `tenants`; each location `id`, `title`, `comments`, `defaultLocation`, `address`, `members`, `createdAt` and `lastModifiedAt`. Dates come back as text, never as numbers.\n\nOne entry per site, in the order you sent them. The member behind your API key is added to every site this call creates, so expect one more entry in `members` than you sent.\n\n> `role` comes back as an object, `{\"roleName\": \"PROCUREMENT MANAGER\", \"roleType\": \"SYSTEM_DEFINED\"}`, with a space, while a request takes the constant `PROCUREMENT_MANAGER`. Never send the response value back.\n\n> **One bad row loses the whole call.** The list is written as one unit: the first row that fails rolls back the rows before it. There is no partial success and no per-row report.\n\n### Additional fields: `additionalFields` and `customFieldValues`\n\nA site can carry your own extra fields. There are two shapes, they write to the same place, and **both keep working**:\n\n| Field | Use it? |\n| --- | --- |\n| `additionalFields` | **Yes.** The current shape. |\n| `customFieldValues` | The older shape. Still read and still written, to exactly the same values. |\n\n`additionalFields` entries take:\n\n| Field | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `technicalName` | **Yes** | none | The key, and what a field is matched on when you save the site again. A field already stored under this name keeps its id and its creation date. |\n| `displayName` | No | (none) | The label a person sees |\n| `value` | No | (none) | The value, always text |\n| `valueType` | No | `TEXT` | `TEXT`, `NUMBER`, `FLOAT`, `DATE`, `SELECT`, `MULTI_SELECT`, `PASSWORD` |\n| `valueOptions` | No | empty | The choices, for `SELECT` and `MULTI_SELECT` |\n| `fieldId` | No | (none) | The field's id in your catalogue. Not needed, the name, label and type are enough. |\n\n**A field you name that does not exist yet is created for you**, so the value is one a form can show later rather than one stored out of sight.\n\n### How a write changes the fields, read this before your first update\n\n| What you send | What happens to the stored fields |\n| --- | --- |\n| `additionalFields` with entries | Those fields are **added or updated**. Every field you did not name is left alone. |\n| Neither field at all | Nothing changes. |\n| `\"customFieldValues\": []` | Nothing changes. |\n| `\"additionalFields\": []` | **Nothing changes**, an empty list is not a clear. |\n| `\"additionalFields\": [{}]` | **Every additional field on the site is deleted.** |\n\n> **The last two lines are the trap.** An empty list leaves everything alone; a list holding one blank entry wipes the lot. Exactly one entry, and that entry either `null` or carrying a blank `technicalName` **and** a blank `value`, is read as \"clear them all\". Two blank entries is not a clear. A blank entry alongside a real one is not a clear.\n\n> **Why an empty list does nothing:** `customFieldValues` defaults to an empty list on every payload, so an integration written before additional fields existed sends one on every update. Reading that as \"remove them all\" would have emptied those customers' sites. Clearing therefore has to be asked for on purpose.\n\n> `customFieldValues` writes a value onto the field it names, exactly as it always has. `additionalFields` writes the field as you describe it. Where both name the same `technicalName`, `additionalFields` is applied last and wins.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| The site is still live after you archived it | You sent `ARCHIEVED`, which is not a value | Send `ARCHIVED`. |\n| A site you barely touched is suddenly `ACTIVE` | `projectStatus` was left out, so `ACTIVE` was written | Always send `projectStatus`. |\n| The member has no role in the app | You sent `CONSTRUCTION MANAGER` with a space | Send `CONSTRUCTION_MANAGER`. |\n| The default delivery point disappeared, or the wrong location changed | A location entry left out `defaultLocation`, or had no `id` | Send both on every location entry. |\n| `400` `INVALID_INPUTS`, `title : must not be blank`, or `must not be empty` | An entry has no `title`, or you sent `[]` | Give every entry a `title`, and send at least one entry. |\n| `406` `MEMBER_NOT_FOUND` or `PROJECT_MEMBER_NOT_ADDED_TO_PROJECT` | A location names somebody who is not on this site | List the person under the site's own `members` first. |\n| `406` `PROJECT_NOT_FOUND` | An `id` in the list is unknown or not yours | Remove or correct it. The whole call fails on it. |\n| The budget is refused | The amount was sent as text, `\"2450000,00\"` | Send `2450000.00`, a number, with a point, no quotes. |\n| `400`, message ends `yyyy-mm-dd` | A date was written the German way, `\"01.06.2026\"` | Send `\"2026-06-01\"`. |\n| `403` `FORBIDDEN`, `Invalid ApiKey` | Key missing, unknown, switched off or expired | Keys are per environment; a staging key fails in production. |\n| `400` `REQUEST_PARAMETER_IS_MISSING` | No `companyAccountId` in the address line | Add `?companyAccountId=...`. |\n| `400` `REQUIRED_REQUEST_BODY_IS_MISSING` | The `//` comments are still in the body, or the JSON is broken | Strip the comments. |\n\n### What we could not confirm\n\n- How many sites one request can carry. Nothing here sets a limit, but a very large batch can still run into a size or time limit.\n\n#### Update existing sites only (bulk), PATCH mode\n\n### What this call does\n\nUpdates construction sites that already exist. Fields you leave out keep their stored value.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header.\n- Your `companyAccountId` as a query parameter. There is no default for it.\n- `&mode=PATCH` in the address line. Without it the call runs as `ADD_OR_UPDATE` and creates sites.\n- The Cathago `id` of every site you want to change.\n- A `title` on every entry, even here.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company account. |\n| `mode` | No | `ADD_OR_UPDATE` | Set it to `PATCH` for this call. Leave it out and sites get created. |\n\n### The fields\n\nThe same fields as **Create or update sites (bulk), default mode**: `id`, `tenantId`, `externalProjectId`, `title` (the only required one), `costCentre`, `startDate`, `endDate`, `budget`, `description`, `projectStatus` (default `ACTIVE`), `address`, `billingAddress`, `members`, `locations` and `customFieldValues`. That page carries the types, the limits, the inner shape of the five objects and lists, and the values of `projectStatus` and `role`.\n\n#### What `PATCH` does differently\n\n| Case | What happens |\n| --- | --- |\n| Entry has an `id` | The site is looked up by that `id` and updated. |\n| Entry has **no** `id` | The entry is dropped. Nothing is created, nothing is changed, and nothing says so. |\n| Field left out | Keeps its stored value. |\n| Field sent as an empty text `\"\"` | The empty text is **written**. Only a genuine absence is skipped, and `\"\"` is not one. |\n| A member not yet on the site | Added. |\n| A member already on the site | Left exactly as they are, never edited. |\n| A location with an `id` | Updated. |\n| A location without an `id` | The site's current **default** location is updated instead; a new one is created only when the site has none. |\n\n> `PATCH` finds a site by `id` and by nothing else, never by `externalProjectId`. And `title` is required here too: there is no way to patch a single field without sending the title as well.\n\n> **Three traps.** A misspelled field name is dropped without a word. An unrecognised value for a fixed-choice field does not fail either, `projectStatus` falls back to `ACTIVE`, `role` and `valueType` end up empty. And a field that has a default (`projectStatus`, `members`, `locations`, `customFieldValues`, `role`, `sendInvite`, `defaultLocation`, `overrideExistingLocation`) is written even when you leave it out.\n\n### What you get back\n\n`200 OK` and the stored site: `id`, `externalProjectId`, `title`, `costCentre`, `startDate`, `endDate`, `budget`, `description`, `projectStatus`, `tenantId`, `address`, `billingAddress`, `members`, `locations` and `customFieldValues`. Each address has its own `id`. Each member has `id`, `emailAddress`, `role`, `invitationSentDate`, `contactPerson`, `memberStatus` (`PENDING`, `ACTIVE` or `DISABLED`), `username` and `tenants`; each location `id`, `title`, `comments`, `defaultLocation`, `address`, `members`, `createdAt` and `lastModifiedAt`. Dates come back as text, never as numbers.\n\n> `role` comes back as an object, `{\"roleName\": \"PROCUREMENT MANAGER\", \"roleType\": \"SYSTEM_DEFINED\"}`, with a space, while a request takes the constant `PROCUREMENT_MANAGER`. Never send the response value back.\n\nThe list holds only the entries that carried an `id`. Entries without one are not represented at all, so count the entries before you trust the call.\n\n### Additional fields: `additionalFields` and `customFieldValues`\n\nA site can carry your own extra fields. There are two shapes, they write to the same place, and **both keep working**:\n\n| Field | Use it? |\n| --- | --- |\n| `additionalFields` | **Yes.** The current shape. |\n| `customFieldValues` | The older shape. Still read and still written, to exactly the same values. |\n\n`additionalFields` entries take:\n\n| Field | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `technicalName` | **Yes** | none | The key, and what a field is matched on when you save the site again. A field already stored under this name keeps its id and its creation date. |\n| `displayName` | No | (none) | The label a person sees |\n| `value` | No | (none) | The value, always text |\n| `valueType` | No | `TEXT` | `TEXT`, `NUMBER`, `FLOAT`, `DATE`, `SELECT`, `MULTI_SELECT`, `PASSWORD` |\n| `valueOptions` | No | empty | The choices, for `SELECT` and `MULTI_SELECT` |\n| `fieldId` | No | (none) | The field's id in your catalogue. Not needed, the name, label and type are enough. |\n\n**A field you name that does not exist yet is created for you**, so the value is one a form can show later rather than one stored out of sight.\n\n### How a write changes the fields, read this before your first update\n\n| What you send | What happens to the stored fields |\n| --- | --- |\n| `additionalFields` with entries | Those fields are **added or updated**. Every field you did not name is left alone. |\n| Neither field at all | Nothing changes. |\n| `\"customFieldValues\": []` | Nothing changes. |\n| `\"additionalFields\": []` | **Nothing changes**, an empty list is not a clear. |\n| `\"additionalFields\": [{}]` | **Every additional field on the site is deleted.** |\n\n> **The last two lines are the trap.** An empty list leaves everything alone; a list holding one blank entry wipes the lot. Exactly one entry, and that entry either `null` or carrying a blank `technicalName` **and** a blank `value`, is read as \"clear them all\". Two blank entries is not a clear. A blank entry alongside a real one is not a clear.\n\n> **Why an empty list does nothing:** `customFieldValues` defaults to an empty list on every payload, so an integration written before additional fields existed sends one on every update. Reading that as \"remove them all\" would have emptied those customers' sites. Clearing therefore has to be asked for on purpose.\n\n> `customFieldValues` writes a value onto the field it names, exactly as it always has. `additionalFields` writes the field as you describe it. Where both name the same `technicalName`, `additionalFields` is applied last and wins.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| New sites appeared | `&mode=PATCH` is missing from the address line | Add it. |\n| The response is shorter than the list you sent | Some entries had no `id` and were dropped without a word | Give every entry its `id`. |\n| The site is now `ACTIVE` although you never touched the status | `projectStatus` was left out, so `ACTIVE` was written | Always send `projectStatus`, even here. |\n| The default delivery point is gone, or the wrong location changed | A location entry left out `defaultLocation`, or had no `id` | Send both on every location entry. |\n| A field you wanted to clear stayed as it was | Leaving a field out means \"keep it\", not \"clear it\" | Send an empty text `\"\"`, that one is written. |\n| `400` `INVALID_INPUTS`, `title : must not be blank` | An entry has no `title` | Send the title as well, even for a one-field change. |\n| `406` `PROJECT_NOT_FOUND` | An `id` is unknown or belongs to another company account | Correct it. The whole call is rolled back on it. |\n| `400`, message ends `yyyy-mm-dd` | A date was written the German way, `\"01.06.2026\"` | Send `\"2026-06-01\"`. |\n| `403` `FORBIDDEN`, `Invalid ApiKey` | Key missing, unknown, switched off or expired | Keys are per environment; a staging key fails in production. |\n| `400` `REQUEST_PARAMETER_IS_MISSING` | No `companyAccountId` in the address line | Add `?companyAccountId=...`. |\n| `400` `REQUIRED_REQUEST_BODY_IS_MISSING` | The `//` comments are still in the body, or the JSON is broken | Strip the comments. |\n\n#### Create new sites only (bulk), ADD mode\n\n### What this call does\n\nSends a list of construction sites with `mode=ADD`. Despite the name, `ADD` and `ADD_OR_UPDATE` behave identically: a site that already exists is updated, not duplicated.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header.\n- Your `companyAccountId` as a query parameter. There is no default for it.\n- `&mode=ADD` in the address line.\n- At least one entry, and a `title` on every entry.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company account. |\n| `mode` | No | `ADD_OR_UPDATE` | `ADD` for this call. It behaves exactly like `ADD_OR_UPDATE`. |\n\n`ADD` is not an \"always create\" switch. An entry with an `id` updates that site; an entry with a known `externalProjectId` updates the first site carrying it; only an entry that matches nothing creates a site.\n\n> Duplicates arise the other way round: two sites may share an `externalProjectId`, because nothing forces it to be unique, and from then on updates land on whichever comes back first.\n\n### The fields\n\nThe same fields as **Create or update sites (bulk), default mode**: `id`, `tenantId`, `externalProjectId`, `title` (the only required one), `costCentre`, `startDate`, `endDate`, `budget`, `description`, `projectStatus` (default `ACTIVE`), `address`, `billingAddress`, `members`, `locations` and `customFieldValues`. That page carries the types, the limits, the inner shape of the five objects and lists, and the values of `projectStatus` and `role`.\n\n> **Three traps.** A misspelled field name is dropped without a word. An unrecognised value for a fixed-choice field does not fail either, `projectStatus` falls back to `ACTIVE`, `role` and `valueType` end up empty. And a field that has a default (`projectStatus`, `members`, `locations`, `customFieldValues`, `role`, `sendInvite`, `defaultLocation`, `overrideExistingLocation`) is written even when you leave it out.\n\n### What you get back\n\n`200 OK` and the stored site: `id`, `externalProjectId`, `title`, `costCentre`, `startDate`, `endDate`, `budget`, `description`, `projectStatus`, `tenantId`, `address`, `billingAddress`, `members`, `locations` and `customFieldValues`. Each address has its own `id`. Each member has `id`, `emailAddress`, `role`, `invitationSentDate`, `contactPerson`, `memberStatus` (`PENDING`, `ACTIVE` or `DISABLED`), `username` and `tenants`; each location `id`, `title`, `comments`, `defaultLocation`, `address`, `members`, `createdAt` and `lastModifiedAt`. Dates come back as text, never as numbers.\n\n> `role` comes back as an object, `{\"roleName\": \"PROCUREMENT MANAGER\", \"roleType\": \"SYSTEM_DEFINED\"}`, with a space, while a request takes the constant `PROCUREMENT_MANAGER`. Never send the response value back.\n\nOne entry per site you sent, in the same order. The member behind your API key is added to every site this call creates, so expect one more entry in `members` than you sent. The list is written as one unit: the first row that fails rolls back the rows before it.\n\n### Additional fields: `additionalFields` and `customFieldValues`\n\nA site can carry your own extra fields. There are two shapes, they write to the same place, and **both keep working**:\n\n| Field | Use it? |\n| --- | --- |\n| `additionalFields` | **Yes.** The current shape. |\n| `customFieldValues` | The older shape. Still read and still written, to exactly the same values. |\n\n`additionalFields` entries take:\n\n| Field | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `technicalName` | **Yes** | none | The key, and what a field is matched on when you save the site again. A field already stored under this name keeps its id and its creation date. |\n| `displayName` | No | (none) | The label a person sees |\n| `value` | No | (none) | The value, always text |\n| `valueType` | No | `TEXT` | `TEXT`, `NUMBER`, `FLOAT`, `DATE`, `SELECT`, `MULTI_SELECT`, `PASSWORD` |\n| `valueOptions` | No | empty | The choices, for `SELECT` and `MULTI_SELECT` |\n| `fieldId` | No | (none) | The field's id in your catalogue. Not needed, the name, label and type are enough. |\n\n**A field you name that does not exist yet is created for you**, so the value is one a form can show later rather than one stored out of sight.\n\n### How a write changes the fields, read this before your first update\n\n| What you send | What happens to the stored fields |\n| --- | --- |\n| `additionalFields` with entries | Those fields are **added or updated**. Every field you did not name is left alone. |\n| Neither field at all | Nothing changes. |\n| `\"customFieldValues\": []` | Nothing changes. |\n| `\"additionalFields\": []` | **Nothing changes**, an empty list is not a clear. |\n| `\"additionalFields\": [{}]` | **Every additional field on the site is deleted.** |\n\n> **The last two lines are the trap.** An empty list leaves everything alone; a list holding one blank entry wipes the lot. Exactly one entry, and that entry either `null` or carrying a blank `technicalName` **and** a blank `value`, is read as \"clear them all\". Two blank entries is not a clear. A blank entry alongside a real one is not a clear.\n\n> **Why an empty list does nothing:** `customFieldValues` defaults to an empty list on every payload, so an integration written before additional fields existed sends one on every update. Reading that as \"remove them all\" would have emptied those customers' sites. Clearing therefore has to be asked for on purpose.\n\n> `customFieldValues` writes a value onto the field it names, exactly as it always has. `additionalFields` writes the field as you describe it. Where both name the same `technicalName`, `additionalFields` is applied last and wins.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| An existing site was changed although you used `ADD` | `ADD` and `ADD_OR_UPDATE` do the same thing | Use fresh `externalProjectId` values for a first import, or check first with **Search for sites**. |\n| The site is still live after you archived it | You sent `ARCHIEVED`, which is not a value and falls back to `ACTIVE` | Send `ARCHIVED`. |\n| The status flipped to `ACTIVE` on an entry that matched an existing site | `projectStatus` was left out, so `ACTIVE` was written | Always send `projectStatus`. |\n| The member has no role | You sent `CONSTRUCTION MANAGER` with a space | Send `CONSTRUCTION_MANAGER`. |\n| `400` `INVALID_INPUTS`, `title : must not be blank` | An entry has no `title` | Give every entry a title. |\n| `406` `PROJECT_NOT_FOUND` | An `id` in the list is unknown or not yours | Remove or correct it. |\n| `406` `RESOURCE_IN_USE`, `Something went wrong!` | A value is longer than the field allows | Shorten it. |\n| `400`, message ends `yyyy-mm-dd` | A date was written the German way, `\"01.06.2026\"` | Send `\"2026-06-01\"`. |\n| `403` `FORBIDDEN`, `Invalid ApiKey` | Key missing, unknown, switched off or expired | Keys are per environment; a staging key fails in production. |\n| `400` `REQUEST_PARAMETER_IS_MISSING` | No `companyAccountId` in the address line | Add `?companyAccountId=...`. |\n| `400` `REQUIRED_REQUEST_BODY_IS_MISSING` | The `//` comments are still in the body, or the JSON is broken | Strip the comments. |"},"delete":{"tags":["Projects"],"operationId":"bulkDelete","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"},"description":"Your company account. Sites belonging to anyone else are simply not found."}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}},"example":["C0226021180772794","C0226022313402373"]}},"required":true},"responses":{"204":{"description":"No Content","content":{}}},"summary":"Delete several sites at once (bulk)","description":"### What this call does\n\nDeletes several construction sites at once. The body is a plain list of site ids.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header.\n- Your `companyAccountId` as a query parameter. There is no default for it.\n- The Cathago `id` of every site you want gone. There is no way to delete by `externalProjectId`.\n- Certainty. There is no undo and no confirmation step.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company account. Sites belonging to anyone else are simply not found. |\n\nThere is no `mode` parameter on this call.\n\n### The fields\n\nThe body is not an object. It is a list of text ids:\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| (the list itself) | list of text | No | none | Cathago ids of the sites to delete. An empty list `[]` is accepted and does nothing. |\n\nAn id that does not exist, or that belongs to another company account, is not reported. It is simply not deleted.\n\n### What you get back\n\n`204 No Content` with an empty body.\n\n> **`204` does not mean the sites were there.** The same `204` comes back whether you named ten real sites, ten unknown ids, or none at all. Check afterwards with **Look up one site** if it matters.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `204`, but the site is still there | The id was wrong, or the site belongs to another company account | Verify each id with **Look up one site** first. |\n| `204`, but nothing happened at all | You sent `[]` | Put the ids in the list. |\n| The call is refused | You sent objects, `[{\"id\": \"C0226021180772794\"}]`, instead of plain ids | Send `[\"C0226021180772794\", \"C0226022313402373\"]`. |\n| `406` `RESOURCE_IN_USE`, `Something went wrong!` | The site is still referenced by other records | Clear those records first, or archive the site with `projectStatus: \"ARCHIVED\"` instead. |\n| `403` `FORBIDDEN`, `Invalid ApiKey` | Key missing, unknown, switched off or expired | Keys are per environment; a staging key fails in production. |\n| `400` `REQUEST_PARAMETER_IS_MISSING` | No `companyAccountId` in the address line | Add `?companyAccountId=...`. |\n| `400` `REQUIRED_REQUEST_BODY_IS_MISSING` | The `//` comments are still in the body, or the JSON is broken | Strip the comments. |"},"servers":[{"url":"https://api.cathago.de"}]},"/api/gateways/integration/projects/search":{"post":{"tags":["Projects"],"operationId":"search_1","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"},"description":"Your company account. You can never see anyone else's sites."}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectSearchInDto"},"example":{"externalProjectId":"BV-2026-0417","costCentre":"KST-4711","projectStatus":"ACTIVE","projectStatuses":["ACTIVE","DRAFT"],"searchText":"Leipzig","tenantIds":["C3125110678675695","C3125110690770447"],"memberEmailAddress":"sharif.malik@cathago.de","accountMemberIds":["CXY25110654020841","CCW26040260120140"],"paginationInDto":{"pageIndex":0,"pageSize":25,"sort":{"property":"title","direction":"ASC","ignoreCase":true}}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SearchOutDtoPublicApiProjectOutDto"}},"application/json":{"examples":{"search-project-with-different-parameters":{"summary":"Search project with different parameters","value":{"data":[{"externalProjectId":null,"title":"PROJECT HEM SSS","costCentre":"COSTBER001","startDate":"2023-06-25","endDate":"2028-02-23","budget":150000,"description":"Update anthing upto 4096 characters","id":"C0226022313402373","address":{"addressLineOne":"123 Main Street","addressLineTwo":"Suite 5","city":"Berlin","country":"Germany","zipcode":"10115","comments":"Main office address","mapLink":"https://maps.example.com/123","region":null,"id":"CAE26022389018632"},"billingAddress":{"addressLineOne":"Billing Street 10","addressLineTwo":"","city":"Berlin","country":"Germany","zipcode":"10117","comments":"Send all invoices to the attention of Accounts Payable.","mapLink":"https://maps.example.com/billing","region":null,"id":"CWZ26022365399387","companyName":"ABC Construction GmbH","vatId":"DE1123456789","emailAddress":null,"contactPersonName":null},"members":[{"id":"CQJ26022387909222","emailAddress":"test-project-one@cathago.de","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-23T05:36:55.382Z","contactPerson":{"id":"CVA26022377241060","fullName":"Giriraj Sharma","emailAddress":"test-project-one@cathago.de","contactNumber":"+49 30 11223344","alternateContactNumber":"+49 171 1122334"},"memberStatus":"PENDING","username":null},{"id":"CDI26022381391510","emailAddress":"manager@example.com","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-11T14:23:31.495Z","contactPerson":{"id":"CTA26021116273926","fullName":"John Doe","emailAddress":"manager@example.com","contactNumber":"+49 123 4567","alternateContactNumber":"+49 987 6543"},"memberStatus":"PENDING","username":null}],"locations":[{"title":"Site Location A","comments":"Primary construction site - North Sector","id":"CJO26022311668193","defaultLocation":true,"address":{"addressLineOne":"Site Road 12","addressLineTwo":"Gate 4","city":"Munich","country":"Germany","zipcode":"80331","comments":"Heavy vehicle access only through Gate 4","mapLink":"https://maps.example.com/siteA","region":"Bavaria","id":"CKB26022379772797"},"members":[{"id":"CQJ26022387909222","emailAddress":"test-project-one@cathago.de","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-23T05:36:55.382Z","contactPerson":{"id":"CVA26022377241060","fullName":"Giriraj Sharma","emailAddress":"test-project-one@cathago.de","contactNumber":"+49 30 11223344","alternateContactNumber":"+49 171 1122334"},"memberStatus":"PENDING","username":null},{"id":"CDI26022381391510","emailAddress":"manager@example.com","role":{"roleName":"PROCUREMENT MANAGER","roleType":"SYSTEM_DEFINED"},"invitationSentDate":"2026-02-11T14:23:31.495Z","contactPerson":{"id":"CTA26021116273926","fullName":"John Doe","emailAddress":"manager@example.com","contactNumber":"+49 123 4567","alternateContactNumber":"+49 987 6543"},"memberStatus":"PENDING","username":null}],"createdAt":"2026-02-23T11:01:19.450Z","lastModifiedAt":"2026-02-23T12:06:59.514Z"}],"customFieldValues":[],"projectStatus":"ACTIVE","tenantId":"C3125110678675695"}],"paginationOutDto":{"pageIndex":0,"pageSize":10,"sort":{"property":"lastModifiedAt","direction":"DESC"},"totalElements":1,"totalPages":1},"query":null}}}}}}},"summary":"Search for sites","description":"### What this call does\n\nSearches your construction sites and gives them back a page at a time.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header.\n- Your `companyAccountId` as a query parameter. There is no default for it.\n- Nothing else. The body is optional: a request without one returns the first ten `ACTIVE` sites, newest change first.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company account. You can never see anyone else's sites. |\n\n### The fields\n\nAll optional.\n\n| Field | Type | Default | Meaning |\n| --- | --- | --- | --- |\n| `externalProjectId` | text | (none) | **Exact** match. Applied only when it is not empty. |\n| `costCentre` | text | (none) | **Exact** match, not a partial one. |\n| `projectStatus` | choice | (none) | One status: `DRAFT`, `ACTIVE`, `ARCHIVED` or `DEACTIVATED`. |\n| `projectStatuses` | list of choices | `[]` | Several statuses at once. |\n| `searchText` | text | (none) | Partial, case-insensitive match across the fields listed below. |\n| `tenantIds` | list of text | `[]` | Only sites belonging to these tenants. |\n| `memberEmailAddress` | text | (none) | **Exact** match on the e-mail of somebody on the site. |\n| `accountMemberIds` | list of text | (none) | Only sites these members are on. |\n| `searchCriteriaDtos` | list | `[]` | Raw filters, each `{\"fieldName\": \"costCentre\", \"value\": \"KST-4711\", \"operator\": \"eq\"}`. Operators: `in`, `like`, `lt`, `gt`, `eq`, `text_search`, `not_like`, `not_in`, `exists`, `not_exists`, `not_eq`, `between`. |\n| `paginationInDto` | object | page 0, 10 per page | Paging and sorting, see below. |\n| `title` | text | none | **Accepted and then ignored.** No filter is ever built from it. Use `searchText`. |\n\n#### The fields inside `paginationInDto`\n\n| Field | Default | Meaning |\n| --- | --- | --- |\n| `pageIndex` | `0` | Zero-based, so the first page is `0`. |\n| `pageSize` | `10` | Results per page. |\n| `sort.property` | `lastModifiedAt` | Only `title` (or the alias `name`), `costCentre` and `createdAt` are honoured. Anything else quietly becomes `lastModifiedAt`. |\n| `sort.direction` | `DESC` | `ASC` or `DESC`. |\n| `sort.ignoreCase` | none | Set for you anyway: `true` for `title` and `costCentre`, `false` for the two date fields. Sending it has no effect. |\n\n#### What `searchText` searches\n\n`title`, `type`, `costCentre`, `description`, `externalProjectId`, `address.addressLineOne`, `address.addressLineTwo`, `address.city`, `address.zipcode`, `address.region`, `billingAddress.vatId`, `billingAddress.emailAddress` and `billingAddress.companyName`, and no others. `address.country` and `address.comments` are **not** searched, so a search for a country name finds nothing.\n\n> **A search with no `projectStatus` and no `projectStatuses` returns `ACTIVE` sites only.** Archived, deactivated and draft sites are missing, and nothing in the response says a filter was applied. Name the statuses you want in `projectStatuses` to see everything.\n\n> **Two silent behaviours.** A misspelled field name is dropped, not refused, so the value is lost without a word. And an unrecognised value for a fixed-choice field does not fail either: `projectStatus` falls back to `ACTIVE`, `role` and `valueType` end up empty. Names and values are case-insensitive; only the spelling has to be right.\n\n### What you get back\n\n`200 OK` and an object with three fields:\n\n| Field | Meaning |\n| --- | --- |\n| `data` | The sites on this page, each the full site record described under **Look up one site**. |\n| `paginationOutDto` | `pageIndex`, `pageSize`, `sort` (`property`, `direction`, `ignoreCase`), `totalElements` and `totalPages`. |\n| `query` | Always empty on this call. |\n\nNote the name: the paging block of the answer is `paginationOutDto`, not `pagination`.\n\n### Additional fields: `additionalFields` and `customFieldValues`\n\nA site can carry your own extra fields. There are two shapes, they write to the same place, and **both keep working**:\n\n| Field | Use it? |\n| --- | --- |\n| `additionalFields` | **Yes.** The current shape. |\n| `customFieldValues` | The older shape. Still read and still written, to exactly the same values. |\n\n`additionalFields` entries take:\n\n| Field | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `technicalName` | **Yes** | none | The key, and what a field is matched on when you save the site again. A field already stored under this name keeps its id and its creation date. |\n| `displayName` | No | (none) | The label a person sees |\n| `value` | No | (none) | The value, always text |\n| `valueType` | No | `TEXT` | `TEXT`, `NUMBER`, `FLOAT`, `DATE`, `SELECT`, `MULTI_SELECT`, `PASSWORD` |\n| `valueOptions` | No | empty | The choices, for `SELECT` and `MULTI_SELECT` |\n| `fieldId` | No | (none) | The field's id in your catalogue. Not needed, the name, label and type are enough. |\n\n**A field you name that does not exist yet is created for you**, so the value is one a form can show later rather than one stored out of sight.\n\n### How a write changes the fields, read this before your first update\n\n| What you send | What happens to the stored fields |\n| --- | --- |\n| `additionalFields` with entries | Those fields are **added or updated**. Every field you did not name is left alone. |\n| Neither field at all | Nothing changes. |\n| `\"customFieldValues\": []` | Nothing changes. |\n| `\"additionalFields\": []` | **Nothing changes**, an empty list is not a clear. |\n| `\"additionalFields\": [{}]` | **Every additional field on the site is deleted.** |\n\n> **The last two lines are the trap.** An empty list leaves everything alone; a list holding one blank entry wipes the lot. Exactly one entry, and that entry either `null` or carrying a blank `technicalName` **and** a blank `value`, is read as \"clear them all\". Two blank entries is not a clear. A blank entry alongside a real one is not a clear.\n\n> **Why an empty list does nothing:** `customFieldValues` defaults to an empty list on every payload, so an integration written before additional fields existed sends one on every update. Reading that as \"remove them all\" would have emptied those customers' sites. Clearing therefore has to be asked for on purpose.\n\n> `customFieldValues` writes a value onto the field it names, exactly as it always has. `additionalFields` writes the field as you describe it. Where both name the same `technicalName`, `additionalFields` is applied last and wins.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| Archived sites are missing | No status filter was sent, so `ACTIVE` was applied for you | Send `\"projectStatuses\": [\"ACTIVE\", \"ARCHIVED\", \"DRAFT\", \"DEACTIVATED\"]`. |\n| Filtering by `title` returns everything | `title` is accepted and then never used | Use `searchText`. |\n| A partial cost centre finds nothing | `costCentre` is an exact match | Send the whole cost centre, or use `searchText`. |\n| Sorting by `budget` or `startDate` does nothing | Only `title`, `name`, `costCentre` and `createdAt` are honoured | Sort in your own system after fetching. |\n| Only ten results come back | `pageSize` defaults to `10` | Set `paginationInDto.pageSize` and read `totalPages` to walk the rest. |\n| A search for `Deutschland` finds nothing | `address.country` is not one of the searched fields | Search on the town instead. |\n| `403` `FORBIDDEN`, `Invalid ApiKey` | Key missing, unknown, switched off or expired | Keys are per environment; a staging key fails in production. |\n| `400` `REQUEST_PARAMETER_IS_MISSING` | No `companyAccountId` in the address line | Add `?companyAccountId=...`. |\n| `400` `REQUIRED_REQUEST_BODY_IS_MISSING` | The `//` comments are still in the body, or the JSON is broken | Strip the comments. |\n\n### What we could not confirm\n\n- Which `fieldName` values work inside `searchCriteriaDtos`. An unusable one fails while the search runs rather than being reported up front.\n- The largest workable `pageSize`. Nothing here sets a limit, but a very large page can time out."},"servers":[{"url":"https://api.cathago.de"}]},"/api/gateways/integration/supplierAccounts/bulk":{"put":{"tags":["Suppliers"],"operationId":"bulkCreateOrUpdate","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"},"description":"Your company account id. Missing gives 400, unknown gives 406."},{"name":"mode","in":"query","required":false,"schema":{"type":"string","default":"ADD_OR_UPDATE","enum":["ADD","ADD_OR_UPDATE","PATCH"]},"description":"See the three modes above. Write it in capitals, exactly as shown."}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiSupplierAccountInDto"}},"example":[{"id":"C0426011362293308","status":"CONNECTED","company":{"name":"Baustoff Union Rhein-Main GmbH","description":"Beton, Mauerwerk und Trockenbau.","taxId":"DE812345678","bic":"COBADEFFXXX","iban":"DE89370400440532013000","address":"Industriestraße 100, 60311 Frankfurt am Main","domain":"baustoff-union.de","currency":"EUR","dateFormat":"dd.MM.yyyy"},"contactPerson":{"fullName":"Sharif Malik","emailAddress":"sharif.malik@cathago.de","contactNumber":"+49 69 5550100","alternateContactNumber":"+49 170 5550101"},"address":{"addressLineOne":"Industriestraße 100","addressLineTwo":"Halle 3, Tor 2","city":"Frankfurt am Main","country":"Deutschland","zipcode":"60311","comments":"Warenannahme werktags 07:00-16:00 Uhr.","mapLink":"https://maps.app.goo.gl/7kQm4vB2","region":"Hessen"},"tenants":[{"tenantId":"C3125121867881090","creditorNumber":"KRE-5501","customerId":"KD-77120","isCatalogExpected":true,"isOrderConfirmationExpected":true,"isDeliveryExpected":true,"isInvoiceExpected":true},{"tenantId":"C3125112218110915","creditorNumber":"KRE-5502","customerId":"KD-77121","isCatalogExpected":true,"isOrderConfirmationExpected":false,"isDeliveryExpected":true,"isInvoiceExpected":true}]},{"status":"CONNECTED","company":{"name":"Elektro Großhandel Nord KG","description":"Kabel, Verteiler und Installationsmaterial.","taxId":"DE304598210","bic":"GENODEF1S04","iban":"DE45100700240123456789","address":"Rosenthaler Straße 40, 10119 Berlin","domain":"elektro-nord.de","currency":"EUR","dateFormat":"dd.MM.yyyy"},"contactPerson":{"fullName":"Anja Krause","emailAddress":"anja.krause@cathago.de","contactNumber":"+49 30 5550981","alternateContactNumber":"+49 172 5550984"},"address":{"addressLineOne":"Rosenthaler Straße 40","addressLineTwo":"Hof 2, Aufgang C","city":"Berlin","country":"Deutschland","zipcode":"10119","comments":"Anlieferung nur nach telefonischer Anmeldung.","mapLink":"https://maps.app.goo.gl/2mFq8xT5","region":"Berlin"},"members":[{"contactPersonInDto":{"fullName":"Ines Vogt","emailAddress":"ines.vogt@cathago.de","contactNumber":"+49 30 5550982","alternateContactNumber":"+49 171 5550983"},"supplierMemberType":"MEMBER","supervisorToAll":false,"supervisorInDtos":[{"companyAccountId":"C3125121867881090","status":"APPROVED"}],"sendInvite":false}],"tenants":[{"tenantId":"C3125121867881090","creditorNumber":"KRE-6180","customerId":"KD-77450","isCatalogExpected":false,"isOrderConfirmationExpected":false,"isDeliveryExpected":true,"isInvoiceExpected":true}]}]}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiSupplierAccount"}}},"application/json":{"examples":{"add-or-update-mode-create-or-update":{"summary":"ADD_OR_UPDATE Mode - Create or Update","value":[{"id":"CWJ26021856216697","status":"CONNECTED","supplier":{"id":"C0426021880679612","accountStatus":"PENDING","cathagoNetwork":false,"domain":null,"companyOutDto":{"id":"CFJ26021808294461","name":"Supplier One Global Tech GmbH","description":"Premium hardware and networking equipment provider.","taxId":"DE123456789","bic":"WELADEDHXXX","iban":"DE89370400440532013000","address":"Werner-von-Siemens-Straße 1, 80333 Munich, Germany","domain":"globaltech-solutions.com","currency":"EUR","dateFormat":null},"contactPersonOutDto":{"id":"CPD26021844316281","fullName":"Sarah Jenkins","emailAddress":"s.jenkins@newsupplierone.com","contactNumber":"+49-89-1234567","alternateContactNumber":"+49-170-9876543"},"addressOutDto":{"addressLineOne":"Werner-von-Siemens-Straße 1","addressLineTwo":"Building B, Floor 4","city":"Munich","country":"Germany","zipcode":"80333","comments":"Warehouse deliveries should use the rear entrance at Gate 5.","mapLink":"https://maps.google.com/?q=48.1438,11.5736","region":"Bavaria","id":"CZZ26021833884039"}},"tenants":[{"id":"CJW26021844635822","connectionType":"LITE","creditorNumber":"VND-40021","customerId":"CUST-GTS-99","tenantId":"C31kYL7E69","isCatalogExpected":true,"isOrderConfirmationExpected":true,"isDeliveryExpected":true,"isInvoiceExpected":true,"tenant":{"id":"C31kYL7E69","taxId":"DE338526418","companyId":"kYLC7E69","companyName":"Bauunternehmen CATHAGO","mandant":null,"description":null,"addressOutDto":{"addressLineOne":"Musterstraße","addressLineTwo":"5","city":"Berlin","country":"","zipcode":"10115","comments":null,"mapLink":null,"region":null,"id":"CLQ25112124403808"},"logoDocumentOutDto":{"documentName":"Screenshot 2025-11-21 at 9.13.19 PM.png","documentFormat":"PNG","documentType":"PROFILE_PICTURE","documentStatus":"TRANSIENT","relativePath":"tenant/C31kYL7E69/logo","extractedData":null,"id":"C0625112184025233","publicUrl":"https://cat-e.s3.eu-central-1.amazonaws.com/TRANSIENT/C0625112184025233.png","absolutePath":"TRANSIENT/C0625112184025233.png","size":256632,"lastModifiedAt":"2025-11-21T17:31:29.103Z","createdAt":"2025-11-21T17:31:28.924Z"}}}]},{"id":"CVC26021876721065","status":"CONNECTED","supplier":{"id":"C0426021832277592","accountStatus":"PENDING","cathagoNetwork":false,"domain":null,"companyOutDto":{"id":"CXF26021875797326","name":"Supplier Two Summit Logistics Corp","description":"Global freight and supply chain solutions.","taxId":"US-998877665","bic":"CHASUS33","iban":"US00CHAS1234567890","address":"500 Madison Ave, New York, NY 10022","domain":"summit-logistics.io","currency":"EUR","dateFormat":null},"contactPersonOutDto":{"id":"CEA26021834671083","fullName":"Michael Chen","emailAddress":"m.chen@newsuppliertwo.io","contactNumber":"+1-212-555-0199","alternateContactNumber":""},"addressOutDto":{"addressLineOne":"500 Madison Ave","addressLineTwo":"Suite 1200","city":"New York","country":"USA","zipcode":"10022","comments":"After-hours access via side door keypad.","mapLink":"","region":"NY","id":"CJN26021878668027"}},"tenants":[{"id":"CSN26021846039958","connectionType":"LITE","creditorNumber":"VND-88210","customerId":"CUST-SLC-44","tenantId":"C31kYL7E69","isCatalogExpected":false,"isOrderConfirmationExpected":true,"isDeliveryExpected":true,"isInvoiceExpected":true,"tenant":{"id":"C31kYL7E69","taxId":"DE338526418","companyId":"kYLC7E69","companyName":"Bauunternehmen CATHAGO","mandant":null,"description":null,"addressOutDto":{"addressLineOne":"Musterstraße","addressLineTwo":"5","city":"Berlin","country":"","zipcode":"10115","comments":null,"mapLink":null,"region":null,"id":"CLQ25112124403808"},"logoDocumentOutDto":{"documentName":"Screenshot 2025-11-21 at 9.13.19 PM.png","documentFormat":"PNG","documentType":"PROFILE_PICTURE","documentStatus":"TRANSIENT","relativePath":"tenant/C31kYL7E69/logo","extractedData":null,"id":"C0625112184025233","publicUrl":"https://cat-e.s3.eu-central-1.amazonaws.com/TRANSIENT/C0625112184025233.png","absolutePath":"TRANSIENT/C0625112184025233.png","size":256632,"lastModifiedAt":"2025-11-21T17:31:29.103Z","createdAt":"2025-11-21T17:31:28.924Z"}}}]}]},"add-or-update-mode-update":{"summary":"ADD_OR_UPDATE Mode - Update","value":[{"id":"CJR26011385960217","status":"CONNECTED","supplier":{"id":"C0426011362293308","accountStatus":"PENDING","cathagoNetwork":false,"domain":null,"companyOutDto":{"id":"CZO26011382799211","name":"Update Supplier One Global Tech GmbH","description":"Premium hardware and networking equipment provider.","taxId":"UDE123456789","bic":"UWELADEDHXXX","iban":"UDE89370400440532013000","address":"Torstraße 140, 10119 Berlin, Germany","domain":"globaltech-solutions.com","currency":"EUR","dateFormat":null},"contactPersonOutDto":{"id":"CBE26011359742297","fullName":"Sarah Jenkins","emailAddress":"s.jenkins@newsupplierone.com","contactNumber":"+49-89-1234567","alternateContactNumber":"+49-170-9876543"},"addressOutDto":{"addressLineOne":"Werner-von-Siemens-Straße 1","addressLineTwo":"Building B, Floor 4","city":"Munich","country":"Germany","zipcode":"80333","comments":"Warehouse deliveries should use the rear entrance at Gate 5.","mapLink":"https://maps.google.com/?q=48.1438,11.5736","region":"Bavaria","id":"CKJ26011331026553"}},"tenants":[{"id":"CEE26021881411819","connectionType":"LITE","creditorNumber":"VND-40021","customerId":"CUST-GTS-99","tenantId":"C31kYL7E69","isCatalogExpected":true,"isOrderConfirmationExpected":false,"isDeliveryExpected":false,"isInvoiceExpected":false,"tenant":{"id":"C31kYL7E69","taxId":"DE338526418","companyId":"kYLC7E69","companyName":"Bauunternehmen CATHAGO","mandant":null,"description":null,"addressOutDto":{"addressLineOne":"Musterstraße","addressLineTwo":"5","city":"Berlin","country":"","zipcode":"10115","comments":null,"mapLink":null,"region":null,"id":"CLQ25112124403808"},"logoDocumentOutDto":{"documentName":"Screenshot 2025-11-21 at 9.13.19 PM.png","documentFormat":"PNG","documentType":"PROFILE_PICTURE","documentStatus":"TRANSIENT","relativePath":"tenant/C31kYL7E69/logo","extractedData":null,"id":"C0625112184025233","publicUrl":"https://cat-e.s3.eu-central-1.amazonaws.com/TRANSIENT/C0625112184025233.png","absolutePath":"TRANSIENT/C0625112184025233.png","size":256632,"lastModifiedAt":"2025-11-21T17:31:29.103Z","createdAt":"2025-11-21T17:31:28.924Z"}}}]}]},"add-mode-create-new-suppliers":{"summary":"ADD Mode - Create New Suppliers","value":[{"id":"CQL26021841521644","status":"CONNECTED","supplier":{"id":"C0426021859276566","accountStatus":"PENDING","cathagoNetwork":false,"domain":null,"companyOutDto":{"id":"CTM26021842823701","name":"New Supplier Innovations SE","description":"Cloud-native infrastructure and AI-driven analytics.","taxId":"DE304598210","bic":"DBANKDEBXXX","iban":"DE45100700240123456789","address":"Rosenthaler Str. 40, 10119 Berlin, Germany","domain":"spree-edge.io","currency":"EUR","dateFormat":null},"contactPersonOutDto":{"id":"CXA26021843730384","fullName":"Jhon ","emailAddress":"l.Jhon@examplenew.io","contactNumber":"+49-30-5550981","alternateContactNumber":"+49-151-5550982"},"addressOutDto":{"addressLineOne":"Rosenthaler Str. 40","addressLineTwo":"Hof 2, Aufgang C","city":"Berlin","country":"Germany","zipcode":"10119","comments":"Entrance via the inner courtyard. Office is on the 3rd floor.","mapLink":"https://goo.gl/maps/example","region":"Berlin","id":"CUU26021828087038"}},"tenants":[{"id":"CAJ26021859734207","connectionType":"LITE","creditorNumber":"KRE-5501","customerId":"C-SPREE-001","tenantId":"C31kYL7E69","isCatalogExpected":true,"isOrderConfirmationExpected":true,"isDeliveryExpected":true,"isInvoiceExpected":true,"tenant":{"id":"C31kYL7E69","taxId":"DE338526418","companyId":"kYLC7E69","companyName":"Bauunternehmen CATHAGO","mandant":null,"description":null,"addressOutDto":{"addressLineOne":"Musterstraße","addressLineTwo":"5","city":"Berlin","country":"","zipcode":"10115","comments":null,"mapLink":null,"region":null,"id":"CLQ25112124403808"},"logoDocumentOutDto":{"documentName":"Screenshot 2025-11-21 at 9.13.19 PM.png","documentFormat":"PNG","documentType":"PROFILE_PICTURE","documentStatus":"TRANSIENT","relativePath":"tenant/C31kYL7E69/logo","extractedData":null,"id":"C0625112184025233","publicUrl":"https://cat-e.s3.eu-central-1.amazonaws.com/TRANSIENT/C0625112184025233.png","absolutePath":"TRANSIENT/C0625112184025233.png","size":256632,"lastModifiedAt":"2025-11-21T17:31:29.103Z","createdAt":"2025-11-21T17:31:28.924Z"}}}]}]},"multi-tenant-account-specify-tenant-id":{"summary":"Multi-Tenant Account - Specify Tenant ID","value":[{"id":"CHG26022344383680","status":"CONNECTED","supplier":{"id":"C0426022345599237","accountStatus":"PENDING","cathagoNetwork":false,"domain":null,"companyOutDto":{"id":"CBU26022341129887","name":"Multiple Tenant Add Solutions GmbH","description":"Enterprise-grade solutions.","taxId":"DE987654321","bic":"UWELADEDHXXX","iban":"DE89370400440532013000","address":"Alexanderplatz 1, 10178 Berlin, Germany","domain":"gts-solutions.de","currency":"EUR","dateFormat":null},"contactPersonOutDto":{"id":"CCH26022329875070","fullName":"full name Weber","emailAddress":"email001@example.de","contactNumber":"+49-30-9876543","alternateContactNumber":"+49-160-1234567"},"addressOutDto":{"addressLineOne":"Siemensstraße 12","addressLineTwo":"Halle 3","city":"Berlin","country":"Germany","zipcode":"10559","comments":"Deliveries between 08:00 and 16:00 only.","mapLink":"https://maps.google.com/?q=Berlin","region":"Berlin","id":"CWL26022347434681"}},"tenants":[{"id":"CGX26022312558753","connectionType":"LITE","creditorNumber":"VND-50000","customerId":"CUST-GTS-101","tenantId":"C31kYL7E69","isCatalogExpected":true,"isOrderConfirmationExpected":true,"isDeliveryExpected":true,"isInvoiceExpected":true,"tenant":{"id":"C31kYL7E69","taxId":"DE338526418","companyId":"kYLC7E69","companyName":"Bauunternehmen CATHAGO","mandant":null,"description":null,"addressOutDto":{"addressLineOne":"Musterstraße","addressLineTwo":"5","city":"Berlin","country":"","zipcode":"10115","comments":null,"mapLink":null,"region":null,"id":"CLQ25112124403808"},"logoDocumentOutDto":{"documentName":"Screenshot 2025-11-21 at 9.13.19 PM.png","documentFormat":"PNG","documentType":"PROFILE_PICTURE","documentStatus":"TRANSIENT","relativePath":"tenant/C31kYL7E69/logo","extractedData":null,"id":"C0625112184025233","publicUrl":"https://cat-e.s3.eu-central-1.amazonaws.com/TRANSIENT/C0625112184025233.png","absolutePath":"TRANSIENT/C0625112184025233.png","size":256632,"lastModifiedAt":"2025-11-21T17:31:29.103Z","createdAt":"2025-11-21T17:31:28.924Z"}}},{"id":"CLZ26022316622301","connectionType":"LITE","creditorNumber":"VDD-40021","customerId":"CUST-GTS-99","tenantId":"C3125112218110915","isCatalogExpected":false,"isOrderConfirmationExpected":false,"isDeliveryExpected":false,"isInvoiceExpected":false,"tenant":{"id":"C3125112218110915","taxId":"QATEST0025","companyId":"kYLC7E69","companyName":"QA Tenant","mandant":"mandant-001","description":"This is test tenant for testing use","addressOutDto":{"addressLineOne":"Lotus Avenue, Green Park Colony","addressLineTwo":"789-BA","city":"Riverdale","country":"IN","zipcode":"400912","comments":null,"mapLink":null,"region":"MH","id":"CKR25112215258034"},"logoDocumentOutDto":{"documentName":"QA.png","documentFormat":"PNG","documentType":"PROFILE_PICTURE","documentStatus":"TRANSIENT","relativePath":"tenant/undefined/logo","extractedData":null,"id":"C0625112245285434","publicUrl":"https://cat-e.s3.eu-central-1.amazonaws.com/TRANSIENT/C0625112245285434.png","absolutePath":"TRANSIENT/C0625112245285434.png","size":1377771,"lastModifiedAt":"2025-11-22T06:46:35.222Z","createdAt":"2025-11-22T06:46:34.934Z"}}}]}]}}}}}},"summary":"Create or update suppliers (bulk)","description":"### What this call does\n\nCreates or updates a whole list of suppliers in one request, the daily sync from your ERP. One request with fifty suppliers beats fifty requests. The body is required.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header and your `companyAccountId` in the address line.\n- The `tenantId` of every tenant you attach a supplier to, from **List your tenants**. With exactly one tenant you may leave it out.\n- A `company` block per supplier you create, ideally with `company.taxId`.\n\n### The three modes (`mode`)\n\n| `mode` | What happens |\n| --- | --- |\n| `ADD_OR_UPDATE` | An entry with an `id` updates that supplier; one without an `id` creates a new supplier. |\n| `ADD` | Every entry is created, `id` ignored. Fails on a supplier you already have. |\n| `PATCH` | Only entries **with** an `id` are updated. The rest are dropped silently. |\n\n`ADD_OR_UPDATE` is the default and the right choice for a daily sync; `ADD` suits a first import.\n\n> **Create or update is decided by `id` alone**, never by `taxId`.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | Yes | (none) | Your company account id. Missing gives `400`, unknown gives `406`. |\n| `mode` | No | `ADD_OR_UPDATE` | See the three modes above. Write it in capitals, exactly as shown. |\n\n### The fields\n\nYou send a **list**; each entry is one supplier. Nothing is checked before it is saved, so \"Required\" means *the call fails or misbehaves without it*.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `id` | text | Conditional | (none) | The supplier account id from an earlier response. Leave the key out entirely for a new supplier; never send `\"\"`. |\n| `status` | choice | No | `CONNECTED` | `CONNECTED`, `PENDING` or `AVAILABLE`. There is no `DISCONNECTED`. |\n| `company` | object | **Yes on create** | (none) | The supplier company record. Ignored on an update. |\n| `company.name` | text | No | (none) | Company name. |\n| `company.taxId` | text | No | (none) | VAT number, e.g. `DE812345678`. A company with the same VAT number is reused instead of created twice. Without it you get duplicate suppliers. |\n| `company.description`, `company.address`, `company.domain` | text | No | (none) | Free text, a one-line address on the company record (not the `address` block below), and the website. |\n| `company.bic`, `company.iban`, `company.currency`, `company.dateFormat` | text | No | (none) | Bank code, IBAN, currency such as `EUR`, preferred date format. Stored as sent. |\n| `contactPerson` | object | No | (none) | The contact at the supplier: `fullName`, `emailAddress`, `contactNumber`, `alternateContactNumber`. The email address is never checked, so a typo is saved as sent. |\n| `address` | object | No | (none) | Postal address: `addressLineOne`, `addressLineTwo`, `city`, `country`, `zipcode`, `comments`, `mapLink`, `region`. |\n| `members` | list | No | `[]` | Staff at the supplier. **Saved only while the supplier is created**, an update ignores this block. Per entry: `contactPersonInDto` (required, the same four fields as `contactPerson`), `supplierMemberType` (`OWNER`, `ADMIN` or `MEMBER`, default `MEMBER`), `supervisorToAll` (default `true`; `true` = serves every customer and the next field is ignored), `supervisorInDtos` (per entry a `companyAccountId`, unknown fails the call, and a `status` of `PENDING_APPROVAL`, `APPROVED` or `REJECTED`, default `APPROVED`) and `sendInvite` (default `false`; `true` = Cathago emails an invitation). |\n| `tenants` | list | No | `[]` | One entry per tenant. An empty list on an update leaves existing links alone. |\n| `tenants[].tenantId` | text | Conditional | filled in when you have one tenant | From **List your tenants**. Required from two tenants upwards; unknown is refused. |\n| `tenants[].creditorNumber`, `tenants[].customerId` | text | No | (none) | **Your** creditor number for this supplier in this tenant, and **your** customer number at it. |\n| `tenants[].isCatalogExpected`, `isOrderConfirmationExpected`, `isDeliveryExpected`, `isInvoiceExpected` | true/false | No | **`true`** | Whether you expect price lists, order confirmations, delivery notes and invoices. All four are **on** unless you send `false`. |\n\n> **A non-empty `tenants` list replaces every tenant link on that supplier**, so send the complete set each time, or `\"tenants\": []` to leave them alone. Keep creditor numbers unique across suppliers: one already used elsewhere is overwritten rather than added.\n\n> **Not input: `accountStatus`, `cathagoNetwork`, `connectionType`.** The first turns `ACTIVATED` when the supplier signs in, the second is the supplier's own opt-in, and the third does not exist here at all.\n\n### What you get back\n\n`200 OK` and one supplier per processed entry, with `PATCH`, fewer than you sent. Each is the flat object **Find suppliers** returns: `id`, `status`, `accountStatus`, `cathagoNetwork`, `domain`, `company`, `contactPerson`, `address`, `tenants`. **Store the `id` in your ERP**: it is what you send back next time.\n\n> **A `200` does not mean every row did what you wanted.** `PATCH` drops entries without an `id` silently, and misspelled field names are ignored. Compare the response against what you sent. One refused entry rolls the whole request back: nothing is written at all.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `406`, \"Multi tenant account found\" | A `tenants` entry has no `tenantId` and your company has none or several tenants. It is filled in only when you have exactly one. | Put a `tenantId` in every entry, from **List your tenants**. |\n| `406`, \"Tenant not found!\" | The `tenantId` does not exist. | Copy it from **List your tenants** exactly. |\n| `406`, \"Supplier network connection not found\" | The `id` belongs to no supplier of yours, or you sent `\"id\": \"\"`, which is not the same as leaving the key out. | Omit the `id` key entirely to create a supplier, or take one from **Find suppliers**. |\n| `406`, \"already exist\" | `mode=ADD` over a supplier you are already connected to. | Use `ADD_OR_UPDATE`. |\n| `406`, company account not found | The `companyAccountId`, in the address line or under `supervisorInDtos`, does not exist. | Look it up in the web app under `Admin Settings`. |\n| A field you set was not saved | You misspelled it, so it was dropped and the call still returned `200`. | Compare the response with what you sent. |\n| `status` came back `null` | You sent something other than `CONNECTED`, `PENDING` or `AVAILABLE`. A wrong value becomes `null` and wipes the default. | Send one of the three, or leave it out. |\n| Switches you never set came back `true` | All four `is...Expected` switches start at `true`. | Send `false` for the documents you do not want. |\n| Tenant links you did not touch disappeared | A non-empty `tenants` list replaces every link on that supplier. | Send the complete set, or `\"tenants\": []`. |\n\n### What we could not confirm\n\n- How many suppliers one call may carry. Nothing caps the list itself, so only the allowed request size limits it. A few hundred per call is safe."},"servers":[{"url":"https://api.cathago.de"}]},"/api/gateways/integration/supplierAccounts/search":{"post":{"tags":["Suppliers"],"operationId":"search","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"},"description":"Your company account id. It also limits the result to your own suppliers. Missing gives 400 Bad Request."}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierSearchInDto"},"example":{"supplierAccountIds":["C0426011362293308","C0426021880679612"],"creditorNumbers":["KRE-5501","KRE-5502"],"taxIds":["DE812345678","DE304598210"],"customerIds":["KD-77120","KD-77121"],"paginationInDto":{"pageIndex":0,"pageSize":25,"sort":{"property":"lastModifiedAt","direction":"DESC"}}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SearchOutDtoPublicApiSupplierAccount"}},"application/json":{"examples":{"search-suppliers":{"summary":"Search Suppliers","value":{"data":[{"id":"C0426011362293308","name":"Supplier_38","domain":"globaltech-solutions.com","taxId":"UDE123456789","creditorNumber":null,"address":{"addressLineOne":"Werner-von-Siemens-Straße 1","addressLineTwo":"Building B, Floor 4","city":"Munich","country":"Germany","zipcode":"80333","comments":"Warehouse deliveries should use the rear entrance at Gate 5.","mapLink":"https://maps.google.com/?q=48.1438,11.5736","region":"Bavaria","id":"CKJ26011331026553"}}],"paginationOutDto":{"pageIndex":0,"pageSize":10,"sort":{"property":"lastModifiedAt","direction":"DESC"},"totalElements":1,"totalPages":1},"query":null}}}}}}},"summary":"Find suppliers","description":"### What this call does\n\nLists the suppliers your company is connected to, one page at a time.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header, your `companyAccountId` in the address line and the `Content-Type: application/json` header.\n- Nothing else. The body is optional: with no body you get the first ten suppliers.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | Yes | (none) | Your company account id. It also limits the result to your own suppliers. Missing gives `400 Bad Request`. |\n\n### The fields\n\nNothing in the body is mandatory and nothing in it is checked.\n\n| Field | Type | Required | Default | Meaning |\n| --- | --- | --- | --- | --- |\n| `supplierAccountIds` | list of text | No | `[]` | Only these supplier ids, the ids this call returns and the bulk call accepts. |\n| `creditorNumbers` | list of text | No | `[]` | Only these creditor numbers of yours. |\n| `taxIds` | list of text | No | `[]` | Only these supplier VAT numbers. |\n| `customerIds` | list of text | No | `[]` | Only these customer numbers of yours. |\n| `paginationInDto` | object | No | page `0`, 10 rows, `lastModifiedAt` `DESC` | Paging and sorting. Leave it out for the defaults; never send it as `null`. |\n| `paginationInDto.pageIndex` | number | No | `0` | Page number, counted from `0`. Negative is refused. |\n| `paginationInDto.pageSize` | number | No | `10` | Rows per page, at least `1`. |\n| `paginationInDto.sort.property` | text | No | `lastModifiedAt` | Only `createdAt` and `lastModifiedAt` are honoured. **Anything else sorts by company name instead**, without a word. |\n| `paginationInDto.sort.direction` | choice | No | `DESC` | `ASC` or `DESC`. Anything else becomes `ASC`. |\n| `paginationInDto.sort.ignoreCase` | true/false | No | `false` | Overwritten whatever you send. Leave it out. |\n| `searchText` | text | No | (none) | Accepted but never used: it filters nothing. Use the four id filters instead. |\n| `searchCriteriaDtos` | list of objects | No | `[]` | Advanced. Your own filters, e.g. `{ \"fieldName\": \"supplierAccount.company.name\", \"value\": \"Baustoff Union\", \"operator\": \"like\" }`. `operator`: `in`, `like`, `lt`, `gt`, `eq`, `text_search`, `not_like`, `not_in`, `exists`, `not_exists`, `not_eq`, `between`. |\n\n> **Every filter you set must match.** They are combined with AND, so one value belonging to a different supplier empties the result.\n\n### What you get back\n\n`200 OK` with three parts: `data` (the suppliers found), `paginationOutDto` (`pageIndex`, `pageSize`, `sort` with `property`, `direction` and `ignoreCase`, plus `totalElements` and `totalPages`) and `query`, always `null` here. Each entry in `data`:\n\n| Field | What it is |\n| --- | --- |\n| `id` | The supplier account id. Send it back as `id` in the bulk call to update the supplier. |\n| `status` | `CONNECTED`, `PENDING` or `AVAILABLE`. |\n| `accountStatus` | `PENDING` or `ACTIVATED`, the supplier's own account state. |\n| `cathagoNetwork` | Read-only. The supplier's own opt-in to the Cathago network. |\n| `domain` | Always `null` for suppliers created here. Not `company.domain`. |\n| `company` | `id`, `name`, `description`, `taxId`, `bic`, `iban`, `address`, `domain`, `currency`, `dateFormat`. |\n| `contactPerson` | `id`, `fullName`, `emailAddress`, `contactNumber`, `alternateContactNumber`. |\n| `address` | `addressLineOne`, `addressLineTwo`, `city`, `country`, `zipcode`, `comments`, `mapLink`, `region`, `id`. |\n| `tenants` | Per tenant link: `id`, `creditorNumber`, `customerId`, `tenantId`, the four switches, and a `tenant` block with `tenantId`, `taxId`, `companyId`, `companyName`, `mandant`, `description`, `logoUrl`, `address`. |\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `403 Forbidden` | The key is missing, unknown, expired or switched off. | Check the key; a staging key does not work in production. |\n| `400 Bad Request` | `companyAccountId` is missing from the address line. | Add `?companyAccountId=...`. |\n| `400`, body reported as missing | The `//` comments are still in the body, so it is not valid JSON. | Strip them before sending. |\n| A filter has no effect at all | You misspelled the field name, so it was dropped without a word, or you used `searchText`, which filters nothing. | Copy the names from the table above. |\n| `data` is empty although the supplier exists | The filters are combined with AND. | Remove them one at a time. |\n| `406 Not Acceptable` | You sent `\"paginationInDto\": null`, a negative `pageIndex`, or a `pageSize` below `1`. | Leave the block out rather than sending `null`; keep `pageSize` at `1` or more. |\n| Sorting by your own column does nothing | Only `createdAt` and `lastModifiedAt` are honoured. | Use one of those two. |"},"servers":[{"url":"https://api.cathago.de"}]},"/api/gateways/integration/supplierAccounts/tenants":{"get":{"tags":["Suppliers"],"operationId":"findAllTenants","parameters":[{"name":"companyAccountId","in":"query","required":true,"schema":{"type":"string"},"description":"Your company account id, from the web app under Admin Settings. Missing gives 400 Bad Request. An id that belongs to nobody is not refused, it returns []."}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/tenant"}}},"application/json":{"examples":{"get-tenants":{"summary":"Get Tenants","value":[{"tenantId":"C3125121867881090","taxId":"QAT001","companyId":"kYLC7E69","companyName":"QA Giriraj ","mandant":"GSQAM90GS","description":"Created this tenant for testing use","logoUrl":"https://cat-e.s3.eu-central-1.amazonaws.com/TRANSIENT/C0625121827618637.png","addressOutDto":{"addressLineOne":"Ferdinand-Knettenbrech-Weg","addressLineTwo":"10","city":"Wiesbaden","country":"Germany","zipcode":"65205","comments":null,"mapLink":null,"region":"Hesse","id":"CXB25121888077634"}},{"tenantId":"C3125112218110915","taxId":"QATEST0025","companyId":"kYLC7E69","companyName":"QA Tenant","mandant":"mandant-001","description":"This is test tenant for testing use","logoUrl":"https://cat-e.s3.eu-central-1.amazonaws.com/TRANSIENT/C0625112245285434.png","addressOutDto":{"addressLineOne":"Lotus Avenue, Green Park Colony","addressLineTwo":"789-BA","city":"Riverdale","country":"IN","zipcode":"400912","comments":null,"mapLink":null,"region":"MH","id":"CKR25112215258034"}},{"tenantId":"C31kYL7E69","taxId":"DE338526418","companyId":"kYLC7E69","companyName":"Bauunternehmen CATHAGO","mandant":null,"description":null,"logoUrl":"https://cat-e.s3.eu-central-1.amazonaws.com/TRANSIENT/C0625112184025233.png","addressOutDto":{"addressLineOne":"Musterstraße","addressLineTwo":"5","city":"Berlin","country":"","zipcode":"10115","comments":null,"mapLink":null,"region":null,"id":"CLQ25112124403808"}}]}}}}}},"summary":"List your tenants (Mandanten)","description":"### What this call does\n\nLists the tenants (Mandanten) under your `companyAccountId`, the legally separate companies under your roof, such as a building division and a civil-engineering division.\n\n*Last updated: 15.05.2026*\n\n> **Run this once before your first supplier import** and note the `tenantId` of each company. You need it whenever you attach a supplier to a tenant in **Create or update suppliers (bulk)**.\n\n### What you need first\n\n- A valid API key in the `API-Key` header and your `companyAccountId` in the address line.\n- Nothing else. It is a `GET` call with no body.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | Yes | (none) | Your company account id, from the web app under `Admin Settings`. Missing gives `400 Bad Request`. An id that belongs to nobody is not refused, it returns `[]`. |\n\n### The fields\n\nThis call has no body. There is nothing to fill in.\n\n### What you get back\n\n`200 OK` and a plain list of tenants, no paging, no wrapper. All of them come back at once, newest first.\n\n| Field | What it is |\n| --- | --- |\n| `tenantId` | **The value you need.** Copy it into `tenants[].tenantId` in the bulk call. It is called `tenantId`, not `id`. |\n| `companyName` | The tenant's company name, e.g. `Bauunternehmen CATHAGO`. May be `null`. |\n| `taxId` | The tenant's own VAT number. |\n| `companyId` | Your company account id, the same on every tenant. |\n| `mandant` | Your own code for that legal entity, free text. Often `null`. |\n| `description` | Free text about the tenant. May be `null`. |\n| `logoUrl` | The tenant logo, or `null`. |\n| `address` | `addressLineOne`, `addressLineTwo`, `city`, `country`, `zipcode`, `comments`, `mapLink`, `region` and an `id` of its own. |\n\nWith exactly one tenant you may leave `tenantId` out of the bulk call. With two or more you must send it.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `403 Forbidden` | The key is missing, unknown, expired or switched off. | Check the key; a staging key does not work in production. |\n| `400 Bad Request` | `companyAccountId` is missing from the address line. | Add `?companyAccountId=...`. |\n| An empty list `[]` | The `companyAccountId` is wrong or belongs to another environment. It is not checked, so a bad id returns nothing rather than an error. | Look it up in the web app under `Admin Settings`. |\n| Only one entry although you run several companies | Only one tenant exists under your company account. | Ask your Cathago contact to create the others. |\n| `406`, \"Multi tenant account found\" when creating suppliers | You left `tenantId` out of a `tenants` entry although several tenants are listed here. | Copy a `tenantId` from this list into `tenants[].tenantId`. |\n| You looked for `id` and found nothing | The field is named `tenantId` here. | Read `tenantId`. |"},"servers":[{"url":"https://api.cathago.de"}]},"/v3/api/gateways/integration/documents/search":{"post":{"operationId":"searchBusinessDocuments","summary":"Search business documents","description":"### What this call does\n\nSearches your company's business documents, orders, call-offs, delivery notes, invoices, credit notes, and returns them one page at a time.\n\n*Last updated: 15.05.2026*\n\n### What you need first\n\n- A valid API key in the `API-Key` header.\n- Your `companyAccountId`.\n- To filter by construction site: the Cathago `projectId`, from the **Projects** section.\n\n### Parameters\n\n| Parameter | Required | Default | Meaning |\n| --- | --- | --- | --- |\n| `companyAccountId` | **Yes** | none | Your company ID, in the address line. Only that company's documents are searched. |\n\nThe data packet itself is optional. `POST …/documents/search?companyAccountId=…` with no packet returns the first 10 documents, newest change first.\n\n### The fields\n\nEvery field is a filter, and every one is optional. **Filters combine with AND**; inside one list the values combine with OR, so `businessDocumentTypes: [\"ORDER\",\"DELIVERY\"]` means \"an order or a delivery note\".\n\n**Paging and sorting**\n\n| Field | Type | Default | Meaning |\n| --- | --- | --- | --- |\n| `pageIndex` | number | `0` | Which page. Counting starts at `0`. |\n| `pageSize` | number | `10` | Documents per page. |\n| `sortBy` | text | `lastModifiedAt` | `createdAt`, `orderDate`, `invoiceDate`, `deliveryDate`, `dueDate` or `skontoDate`. **Anything else, a misspelling included, silently sorts by last change.** |\n| `direction` | choice | `DESC` | `ASC` or `DESC`. |\n| `searchText` | text | `\"\"` | Part of a word, matched at once against the document ID, your `externalId`, the project, the supplier, the status, the line items, the attachments, `metadata.notes` and the buyer. |\n\n**Filters by identity**, lists of text, no default, except `createdBy`, which is a single text.\n\n| Field | Meaning |\n| --- | --- |\n| `ids` | Cathago IDs of documents. |\n| `projectIds` | Cathago IDs of construction sites. |\n| `supplierAccountIds` | Cathago IDs of supplier accounts. |\n| `orderIds` | Matches `metadata.orderId`. |\n| `tenantIds` | The tenant on the document's company. |\n| `assigneeIds` | Who it is assigned to. The value `MISSING` adds the unassigned ones. |\n| `buyerNames` | Exact buyer full name. `MISSING` adds documents with no buyer name. |\n| `supplierTaxIds` | Part of the tax ID. Spaces, hyphens, underscores and capitals are ignored, so `de 812-345_678` finds `DE812345678`. |\n| `creditorNumbers` | Part of the creditor number, handled the same way. |\n| `createdBy` | **Exact** match on who created the document, not a partial one. |\n\n**Filters by kind and state**, no default.\n\n| Field | Type | Meaning |\n| --- | --- | --- |\n| `businessDocumentTypes` | list of choice | `ORDER`, `CALL_OFF`, `DELIVERY`, `RETURN_DELIVERY_NOTE`, `INVOICE`, `CREDIT_NOTE`, `PRICELIST`, `CONTRACT`, `OTHER`. |\n| `businessDocumentStatuses` | list of choice | `OPEN`, `ASKED_FOR_CHANGE`, `IN_APPROVAL`, `REQUESTED`, `CONFIRMED`, `PROCESS_VERIFICATION`, `DECLINED`, `VERIFIED`, `VERIFICATION_FAILED`, `APPROVED`, `DELAYED`, `PARTIALLY_DELIVERED`, `DELIVERED`, `RECLAIM`, `MATCHED`, `REJECTED`. |\n| `automationStatuses` | list of choice | `PROCESS_VERIFICATION`, `VERIFIED`, `VERIFICATION_FAILED`, `MATCHED`. |\n| `signatureDetected` | true/false | `true` returns only documents with a signature. |\n| `eDeliveryNote` | true/false | `true` returns only electronic delivery notes. `false` returns everything else, the documents where the field was never set included. |\n\n**Filters by date and amount**, no default. Dates are `YYYY-MM-DD`, both ends included. A document with no date in that field drops out while the range is active.\n\n| Field | Meaning |\n| --- | --- |\n| `fromDate` / `toDate` | When the document was created in Cathago. |\n| `orderFromDate` / `orderToDate` | `metadata.orderDate`. |\n| `invoiceFromDate` / `invoiceToDate` | `metadata.invoiceDate`. |\n| `deliveryFromDate` / `deliveryToDate` | `metadata.deliveryInformation.deliveryDate`. |\n| `dueFromDate` / `dueToDate` | Due date, `metadata.paymentInformation.paymentDate`. |\n| `skontoFromDate` / `skontoToDate` | Last day of the early-payment discount, `metadata.paymentInformation.earlyPaymentDate`. |\n| `fromNetAmount` / `toNetAmount` | Net total, `metadata.paymentInformation.netAmount`. Numbers, not text. |\n\n`companyAccountIds`, `memberId`, `myDocuments` and `searchCriteriaDtos` are accepted but never read by this call. Use the `companyAccountId` in the address line instead.\n\n### What you get back\n\n`200 OK` with up to three parts: `data`, the documents found, **left out completely when nothing matched**; `pagination`none`pageIndex`, `pageSize`, `sort` (always `null` here), `totalElements`, `totalPages`; and `query`, the search as Cathago understood it, where `query.sortBy` shows the sort really used.\n\n> **`pagination.totalPages` is one whole page short.** 25 hits at `pageSize` 10 gives `totalPages: 2` when there are really 3. **Page on `totalElements` instead:** ask for the next `pageIndex` while `pageIndex * pageSize` is below `totalElements`.\n\nEach document carries `id`, the Cathago ID you need to update, delete and attach files, and your own `externalId`; `documentType` and `documentStatus` (note: you *send* `businessDocumentStatus` and *get back* `documentStatus`); `customer` (`id`, `name`); `project` (`id`, `name`, `costCentre`, `address`, `addressDetails`); `metadata`; `additionalFields` (`technicalName`, `displayName`, `required`, `value`); `attachedFiles` (you *send* `attachments` and *get back* `attachedFiles`); `lineItems`, each with its own Cathago `id`; `signatures`; `documentReferences`, each carrying the target's status, date, channel, external ID and type; `connectedDocuments` (`id`, `externalId`, `documentType`, `documentStatus`, `orderDate`, `deliveryDate`, `invoiceDate`); and `createdBy`, `createdAt`, `lastModifiedAt`. Anything empty is left out, so a document with no attachments simply has no `attachedFiles` key.\n\n> **Times in the answer end with `Z`**, that is UTC, not local time. In German summer time you are two hours ahead: `05:46Z` is 07:46 for you.\n\n### `sourcingType`, how the document was sourced\n\nEvery document that comes back carries `sourcingType` beside `documentType`.\n\n| Value | Meaning |\n| --- | --- |\n| `STANDARD` | An ordinary document |\n| `CALL_OFF` | Drawn down against a call-off agreement |\n| `CONCRETE` | Drawn down against a concrete agreement |\n\n> **`sourcingType` replaced `callOffType`.** `callOffType` was removed on 16.09.2026 and no longer comes back on any document. If your integration reads it, read `sourcingType` instead. The older spelling `CALLOFF` is still accepted on the way in and is stored as `CALL_OFF`.\n\n> `documentType` says what kind of document it is; `sourcingType` says where it was sourced from. A `CALL_OFF` document is normally `sourcingType: CALL_OFF`, but they are two separate fields and you should read the one you actually mean.\n\n### `additionalFields` in the answer\n\nEvery document comes back with the `additionalFields` you stored on it, in the same shape you sent:\n\n| Field | Meaning |\n| --- | --- |\n| `technicalName` | The key. This is what you match on. |\n| `displayName` | The label a person sees, frozen onto this document |\n| `required` | Stored, never enforced |\n| `showOnTopPdf` | `true` prints the field in the document header |\n| `value` | The value, always text |\n\n> **Fields you never sent can appear here.** Cathago fills a document's additional fields from the settings behind it as well as from your payload, so the list that comes back may be longer than the list you sent. Match on `technicalName` and ignore what you do not recognise; never assume position.\n\n> Empty fields are left out of the answer rather than returned as `null`, so a document with no additional fields simply has no `additionalFields` key.\n\n### Common mistakes\n\n| What you see | Why | What to do |\n| --- | --- | --- |\n| `401 Unauthorized` | Key missing, wrong, or not entitled to that `companyAccountId` | Check the key and the company. A staging key does not work in production. |\n| The call is rejected | The `//` comments are still in the data packet | Remove them, see the start page. |\n| No `data` key in the answer | Nothing matched, and an empty list is dropped | Read `pagination.totalElements`. `0` means no hits; it is not an error. |\n| A filter had no effect | The field name is misspelt, and unknown fields are dropped without a word | Copy the names from the tables above. `documentTypes` is not a field, it is `businessDocumentTypes`. |\n| Nothing found although the type looks right | The value is not one of the nine, so it counts as nothing sent | `PROFORMA_INVOICE` and `DELIVERY_NOTE` do not exist here. Use `INVOICE` and `DELIVERY`. |\n| The last page is missing | You paged on `totalPages` | It is one short. Page on `totalElements`. |","tags":["Business Documents"],"parameters":[{"name":"companyAccountId","in":"query","required":true,"description":"Your company ID, in the address line. Only that company's documents are searched.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"example":{"searchText":"Wohnpark","businessDocumentTypes":["ORDER","DELIVERY"],"businessDocumentStatuses":["OPEN","REQUESTED"],"automationStatuses":["VERIFIED"],"ids":["C112505136899480646"],"projectIds":["b4TqR9wX","n8ZcW4tH"],"supplierAccountIds":["m2LpK7dV"],"orderIds":["C0125051366449370"],"tenantIds":["t-leipzig-01"],"assigneeIds":["u9XmT3bF","MISSING"],"buyerNames":["Sharif Malik"],"supplierTaxIds":["DE812345678"],"creditorNumbers":["KRED-1042"],"createdBy":"sharif.malik@cathago.de","signatureDetected":true,"eDeliveryNote":true,"fromDate":"2026-04-01","toDate":"2026-05-15","orderFromDate":"2026-04-01","orderToDate":"2026-05-15","deliveryFromDate":"2026-04-01","deliveryToDate":"2026-05-15","invoiceFromDate":"2026-04-01","invoiceToDate":"2026-05-15","dueFromDate":"2026-05-01","dueToDate":"2026-06-30","skontoFromDate":"2026-05-01","skontoToDate":"2026-05-31","fromNetAmount":1000,"toNetAmount":25000,"sortBy":"invoiceDate","direction":"DESC","pageIndex":0,"pageSize":25}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"examples":{"order":{"summary":"Order","value":{"data":[{"id":"C112506010841072202","externalId":"BE-2026-004822","documentType":"ORDER","sourcingType":"STANDARD","documentStatus":"REQUESTED","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506010841072204","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678","vatId":"DE812345678","addressDetails":{"addressLineOne":"Hauptstraße 88","city":"Dresden","zipcode":"01067","region":"Sachsen","country":"Deutschland"}},"orderDate":"2026-06-01","orderId":"C0125051366449370","notes":"Gesamtbestellung Bauabschnitt B. Abruf in Tranchen aus Rahmenvertrag RV-2026-0042.","buyer":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551020","email":"sharif.malik@cathago.de"},"receiver":{"fullName":"Anja Krause","contactNumber":"+49 341 5551044","email":"anja.krause@cathago.de"},"paymentInformation":{"currency":"EUR","paymentTime":"30 DAYS","skontoTime":"10 DAYS","skontoPercent":2,"taxUnit":"PERCENT","taxRate":19,"netAmount":6180,"taxAmount":1174.2,"grossAmount":7354.2,"totalSkontoAmount":123.6},"deliveryInformation":{"startTime":"07:00","endTime":"11:00","deliveryType":"APPOINTMENT","deliveryDate":"2026-06-16T07:00:00.000Z","deliveryLocations":[{"id":"L4kR8vTz","title":"Hauptlager Tor 3","addressDetails":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Tor 3","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}}]},"createdAt":"2026-06-01T08:41:07.222Z","lastModifiedAt":"2026-06-01T08:41:07.222Z"},"lineItems":[{"id":"C112506010841072211","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","description":"Kalksandstein-Planelement, Rohdichte 2,0, Druckfestigkeitsklasse 20","quantity":1200,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":4620,"taxCode":"VAT19","taxRate":19,"tax":877.8,"grossPrice":5497.8,"position":"0010","costCentre":"KST-4711","lineItemStatus":"REQUESTED","lineItemType":"ORDER","lineItemSource":"ORDER","productType":"MATERIAL","lineItemChannel":"API","supplierAccountId":"m2LpK7dV","documentId":"C112506010841072202","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"},{"id":"C112506010841072212","title":"Mauermörtel MG IIa, 40-kg-Sack","articleNumber":"MOE-MGIIA-40","quantity":240,"quantityUnit":"Sack","unitPrice":6.5,"netPrice":1560,"taxCode":"VAT19","taxRate":19,"tax":296.4,"grossPrice":1856.4,"position":"0020","costCentre":"KST-4711","lineItemStatus":"REQUESTED","lineItemType":"ORDER","lineItemSource":"ORDER","productType":"MATERIAL","lineItemChannel":"API","supplierAccountId":"m2LpK7dV","documentId":"C112506010841072202","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-01T08:41:07.222Z","lastModifiedAt":"2026-06-05T09:15:33.040Z","connectedDocuments":[{"id":"C112506050915330402","externalId":"AB-2026-000318","documentType":"CALL_OFF","sourcingType":"CALL_OFF","documentStatus":"CONFIRMED","orderDate":"2026-06-05T00:00:00.000Z"},{"id":"C112506160922410502","externalId":"LS-2026-010233","documentType":"DELIVERY","sourcingType":"STANDARD","documentStatus":"PARTIALLY_DELIVERED","deliveryDate":"2026-06-16T07:30:00.000Z"},{"id":"C112506301407520702","externalId":"RE-2026-051204","documentType":"INVOICE","sourcingType":"STANDARD","documentStatus":"OPEN","invoiceDate":"2026-06-30T00:00:00.000Z"}]},{"id":"C112506051039221407","externalId":"BE-2026-004833","documentType":"ORDER","sourcingType":"STANDARD","documentStatus":"CONFIRMED","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506051039221409","supplierAccount":{"id":"s6TyH1nP","name":"Stahlhandel Nordsachsen GmbH","contactNumber":"+49 341 5557711","creditorNo":"KRED-1188","taxId":"DE815552310"},"orderDate":"2026-06-05","orderConfirmationDate":"2026-06-08T09:12:33.410Z","notes":"Bewehrung Bauabschnitt B, Abladen mit Kran durch den Lieferanten.","buyer":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551020","email":"sharif.malik@cathago.de"},"paymentInformation":{"currency":"EUR","paymentTime":"30 DAYS","taxUnit":"PERCENT","taxRate":19,"netAmount":4005,"taxAmount":760.95,"grossAmount":4765.95},"deliveryInformation":{"startTime":"06:30","endTime":"09:00","deliveryType":"APPOINTMENT","deliveryDate":"2026-06-22T06:30:00.000Z","deliveryLocations":[{"id":"L4kR8vTz","title":"Hauptlager Tor 3","addressDetails":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Tor 3","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}}]}},"lineItems":[{"id":"C112506051039221421","title":"Betonstahl B500B, Stabstahl d = 12 mm","articleNumber":"BST-500B-D12","quantity":4.5,"quantityUnit":"t","unitPrice":890,"netPrice":4005,"taxCode":"VAT19","taxRate":19,"tax":760.95,"grossPrice":4765.95,"position":"0010","costCentre":"KST-4711","lineItemStatus":"CONFIRMED","lineItemType":"ORDER","lineItemSource":"ORDER_CONFIRMATION","productType":"MATERIAL","lineItemChannel":"API","supplierAccountId":"s6TyH1nP","documentId":"C112506051039221407","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-05T10:39:22.140Z","lastModifiedAt":"2026-06-08T09:12:33.410Z","connectedDocuments":[{"id":"C112506251522100411","externalId":"RE-2026-000998","documentType":"INVOICE","sourcingType":"STANDARD","documentStatus":"OPEN","invoiceDate":"2026-06-25T00:00:00.000Z"}]}],"pagination":{"pageIndex":0,"pageSize":25,"sort":null,"totalElements":2,"totalPages":0},"query":{"businessDocumentTypes":["ORDER"],"businessDocumentStatuses":["REQUESTED","CONFIRMED"],"supplierAccountIds":["m2LpK7dV","s6TyH1nP"],"projectIds":["b4TqR9wX"],"buyerNames":["Sharif Malik"],"orderFromDate":"2026-06-01","orderToDate":"2026-06-30","sortBy":"orderDate","direction":"ASC","pageIndex":0,"pageSize":25}}},"call-off":{"summary":"Call-off","value":{"data":[{"id":"C112506050915330402","externalId":"AB-2026-000318","documentType":"CALL_OFF","sourcingType":"CALL_OFF","documentStatus":"CONFIRMED","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"contracts":[{"contractId":"K8mQ3vRt","externalId":"RV-2026-0042","name":"Rahmenvertrag Mauerwerk 2026, Weber & Sohn GmbH","description":"Kalksandstein und Mauermörtel für alle Bauabschnitte Wohnpark Süd-West.","validFrom":"2026-01-01","validUntil":"2026-12-31","commercialConditions":{"paymentPeriod":"30 DAYS","scontoPercentage":2,"scontoPeriodDays":10,"deliveryTerms":"FREE_TO_SITE_UNLOADED","freightCostBasis":"FREE_ABOVE_ORDER_VALUE","freeFromOrderValue":1500}}],"metadata":{"id":"C112506050915330404","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678","vatId":"DE812345678","addressDetails":{"addressLineOne":"Hauptstraße 88","city":"Dresden","zipcode":"01067","region":"Sachsen","country":"Deutschland"}},"orderDate":"2026-06-05","orderId":"C0125051366449370","notes":"Abruf 1 von 3 aus Rahmenvertrag RV-2026-0042 zur Bestellung BE-2026-004822.","buyer":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551020","email":"sharif.malik@cathago.de"},"receiver":{"fullName":"Anja Krause","contactNumber":"+49 341 5551044","email":"anja.krause@cathago.de"},"paymentInformation":{"currency":"EUR","paymentTime":"30 DAYS","skontoTime":"10 DAYS","skontoPercent":2,"taxUnit":"PERCENT","taxRate":19,"netAmount":2472,"taxAmount":469.68,"grossAmount":2941.68,"totalSkontoAmount":49.44},"deliveryInformation":{"startTime":"07:00","endTime":"11:00","deliveryType":"APPOINTMENT","deliveryDate":"2026-06-16T07:00:00.000Z","deliveryLocations":[{"id":"L4kR8vTz","title":"Hauptlager Tor 3","addressDetails":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Tor 3","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}}]}},"documentReferences":[{"id":"R112506050915330421","referenceType":"CONTRACT","documentReferenceId":"K8mQ3vRt","externalId":"RV-2026-0042","external":false,"referencedResolved":true,"referencedStatus":"ACTIVE","referencedDocumentType":"CONTRACT","referencedExternalId":"RV-2026-0042"},{"id":"R112506050915330422","referenceType":"ORDER","documentReferenceId":"C112506010841072202","externalId":"BE-2026-004822","external":false,"referencedResolved":true,"referencedStatus":"REQUESTED","referencedDocumentType":"ORDER","referencedExternalId":"BE-2026-004822","referencedDate":"2026-06-01T00:00:00.000Z","referencedChannelType":"API"}],"lineItems":[{"id":"C112506050915330411","callOffLineItemId":"CI-RV0042-0001","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":480,"calledOffQty":480,"openQty":1520,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":1848,"taxCode":"VAT19","taxRate":19,"tax":351.12,"grossPrice":2199.12,"position":"0010","costCentre":"KST-4711","lineItemStatus":"CONFIRMED","lineItemType":"CALL_OFF","lineItemSource":"ORDER","productType":"MATERIAL","lineItemChannel":"API","supplierAccountId":"m2LpK7dV","documentId":"C112506050915330402","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"},{"id":"C112506050915330412","callOffLineItemId":"CI-RV0042-0002","title":"Mauermörtel MG IIa, 40-kg-Sack","articleNumber":"MOE-MGIIA-40","quantity":96,"calledOffQty":96,"openQty":304,"quantityUnit":"Sack","unitPrice":6.5,"netPrice":624,"taxCode":"VAT19","taxRate":19,"tax":118.56,"grossPrice":742.56,"position":"0020","costCentre":"KST-4711","lineItemStatus":"CONFIRMED","lineItemType":"CALL_OFF","lineItemSource":"ORDER","productType":"MATERIAL","lineItemChannel":"API","supplierAccountId":"m2LpK7dV","documentId":"C112506050915330402","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-05T09:15:33.040Z","lastModifiedAt":"2026-06-16T09:22:41.050Z","connectedDocuments":[{"id":"C112506010841072202","externalId":"BE-2026-004822","documentType":"ORDER","sourcingType":"STANDARD","documentStatus":"REQUESTED","orderDate":"2026-06-01T00:00:00.000Z"},{"id":"C112506160922410502","externalId":"LS-2026-010233","documentType":"DELIVERY","sourcingType":"STANDARD","documentStatus":"PARTIALLY_DELIVERED","deliveryDate":"2026-06-16T07:30:00.000Z"}]}],"pagination":{"pageIndex":0,"pageSize":25,"sort":null,"totalElements":1,"totalPages":0},"query":{"businessDocumentTypes":["CALL_OFF"],"businessDocumentStatuses":["REQUESTED","CONFIRMED"],"projectIds":["b4TqR9wX"],"supplierAccountIds":["m2LpK7dV"],"searchText":"RV-2026-0042","deliveryFromDate":"2026-06-01","deliveryToDate":"2026-06-30","sortBy":"deliveryDate","direction":"ASC","pageIndex":0,"pageSize":25}}},"delivery-note":{"summary":"Delivery note","value":{"data":[{"id":"C112506160922410502","externalId":"LS-2026-010233","documentType":"DELIVERY","sourcingType":"STANDARD","documentStatus":"PARTIALLY_DELIVERED","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506160922410504","signatureDetected":true,"supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678","vatId":"DE812345678","addressDetails":{"addressLineOne":"Hauptstraße 88","city":"Dresden","zipcode":"01067","region":"Sachsen","country":"Deutschland"}},"orderId":"C0125051366449370","notes":"Teillieferung zu Abruf AB-2026-000318. 6 Sack Mörtel fehlen, Rest folgt.","receiver":{"fullName":"Anja Krause","contactNumber":"+49 341 5551044","email":"anja.krause@cathago.de"},"deliveryInformation":{"startTime":"07:30","endTime":"09:10","deliveryType":"STANDARD","deliveryId":"LF-2026-88231","trackingId":"SPED-2026-88231","totalWeight":15600,"totalWeightUnit":"KG","deliveryDate":"2026-06-16T07:30:00.000Z","deliveryEndDate":"2026-06-16T09:10:00.000Z","eDeliveryNote":true,"deliveryLocations":[{"id":"L4kR8vTz","title":"Hauptlager Tor 3","addressDetails":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Tor 3","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}}]}},"attachedFiles":[{"id":"A112506160922410541","externalId":"ANH-LS-2026-010233","documentId":"C0625061609224105","url":"https://erp.hoffmann-hochbau.de/belege/LS-2026-010233.pdf","fileName":"lieferschein-LS-2026-010233.pdf","attachmentType":"PDF","createdAt":"2026-06-16T09:22:41.050Z"}],"documentReferences":[{"id":"R112506160922410521","referenceType":"ORDER","documentReferenceId":"C112506010841072202","externalId":"BE-2026-004822","external":false,"referencedResolved":true,"referencedStatus":"REQUESTED","referencedDocumentType":"ORDER","referencedExternalId":"BE-2026-004822","referencedDate":"2026-06-01T00:00:00.000Z","referencedChannelType":"API"},{"id":"R112506160922410522","referenceType":"CALL_OFF","documentReferenceId":"C112506050915330402","externalId":"AB-2026-000318","external":false,"referencedResolved":true,"referencedStatus":"CONFIRMED","referencedDocumentType":"CALL_OFF","referencedExternalId":"AB-2026-000318","referencedDate":"2026-06-05T00:00:00.000Z","referencedChannelType":"API"}],"signatures":[{"id":"S112506160922410531","receivingPerson":"Anja Krause","emailAddress":"anja.krause@cathago.de","ipAddress":"203.0.113.45","attachmentOutDto":{"id":"A112506160922410532","externalId":"SIG-LS-2026-010233","url":"https://erp.hoffmann-hochbau.de/unterschriften/LS-2026-010233.png","fileName":"unterschrift-LS-2026-010233.png","attachmentType":"SIGNATURE","channel":"API","createdAt":"2026-06-16T09:22:41.050Z"},"createdAt":"2026-06-16T09:10:12.418Z"}],"lineItems":[{"id":"C112506160922410511","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":480,"shipmentQuantity":480,"quantityUnit":"Stück","position":"0010","costCentre":"KST-4711","lineItemStatus":"DELIVERED","lineItemType":"DELIVERY","lineItemSource":"DELIVERY_NOTE","productType":"MATERIAL","lineItemChannel":"API","supplierAccountId":"m2LpK7dV","documentId":"C112506160922410502","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"},{"id":"C112506160922410512","title":"Mauermörtel MG IIa, 40-kg-Sack","articleNumber":"MOE-MGIIA-40","quantity":96,"shipmentQuantity":90,"quantityUnit":"Sack","position":"0020","costCentre":"KST-4711","lineItemStatus":"PARTIALLY_DELIVERED","lineItemType":"DELIVERY","lineItemSource":"DELIVERY_NOTE","productType":"MATERIAL","lineItemChannel":"API","supplierAccountId":"m2LpK7dV","documentId":"C112506160922410502","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-16T09:22:41.050Z","lastModifiedAt":"2026-06-18T10:35:18.060Z","connectedDocuments":[{"id":"C112506010841072202","externalId":"BE-2026-004822","documentType":"ORDER","sourcingType":"STANDARD","documentStatus":"REQUESTED","orderDate":"2026-06-01T00:00:00.000Z"},{"id":"C112506050915330402","externalId":"AB-2026-000318","documentType":"CALL_OFF","sourcingType":"CALL_OFF","documentStatus":"CONFIRMED","orderDate":"2026-06-05T00:00:00.000Z"},{"id":"C112506181035180602","externalId":"RLS-2026-000147","documentType":"RETURN_DELIVERY_NOTE","sourcingType":"STANDARD","documentStatus":"RECLAIM","deliveryDate":"2026-06-18T13:00:00.000Z"},{"id":"C112506301407520702","externalId":"RE-2026-051204","documentType":"INVOICE","sourcingType":"STANDARD","documentStatus":"OPEN","invoiceDate":"2026-06-30T00:00:00.000Z"}]}],"pagination":{"pageIndex":0,"pageSize":25,"sort":null,"totalElements":1,"totalPages":0},"query":{"businessDocumentTypes":["DELIVERY"],"businessDocumentStatuses":["DELIVERED","PARTIALLY_DELIVERED"],"projectIds":["b4TqR9wX"],"eDeliveryNote":true,"signatureDetected":true,"deliveryFromDate":"2026-06-01","deliveryToDate":"2026-06-30","sortBy":"deliveryDate","direction":"DESC","pageIndex":0,"pageSize":25}}},"return-delivery-note":{"summary":"Return delivery note","value":{"data":[{"id":"C112506181035180602","externalId":"RLS-2026-000147","documentType":"RETURN_DELIVERY_NOTE","sourcingType":"STANDARD","documentStatus":"RECLAIM","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506181035180604","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678","vatId":"DE812345678","addressDetails":{"addressLineOne":"Hauptstraße 88","city":"Dresden","zipcode":"01067","region":"Sachsen","country":"Deutschland"}},"orderId":"C0125051366449370","notes":"20 Steine beim Abladen gebrochen, Rückgabe an Lieferfahrzeug am 18.06.2026.","receiver":{"fullName":"Marco Weber","contactNumber":"+49 341 5559086","email":"marco.weber@weber-sohn.de"},"buyer":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551020","email":"sharif.malik@cathago.de"},"deliveryInformation":{"startTime":"13:00","endTime":"13:40","deliveryType":"STANDARD","deliveryId":"RLF-2026-88407","totalWeight":500,"totalWeightUnit":"KG","deliveryDate":"2026-06-18T13:00:00.000Z","deliveryEndDate":"2026-06-18T13:40:00.000Z","eDeliveryNote":true,"deliveryLocations":[{"id":"L4kR8vTz","title":"Hauptlager Tor 3","addressDetails":{"addressLineOne":"Ottostraße 14","addressLineTwo":"Tor 3","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}}]}},"attachedFiles":[{"id":"A112506181035180641","externalId":"ANH-RLS-2026-000147","documentId":"C0625061810351806","url":"https://erp.hoffmann-hochbau.de/belege/RLS-2026-000147.pdf","fileName":"ruecklieferschein-RLS-2026-000147.pdf","attachmentType":"PDF","createdAt":"2026-06-18T10:35:18.060Z"}],"documentReferences":[{"id":"R112506181035180621","referenceType":"DELIVERY","documentReferenceId":"C112506160922410502","externalId":"LS-2026-010233","external":false,"referencedResolved":true,"referencedStatus":"PARTIALLY_DELIVERED","referencedDocumentType":"DELIVERY","referencedExternalId":"LS-2026-010233","referencedDate":"2026-06-16T07:30:00.000Z","referencedChannelType":"API","referencedSigned":true}],"lineItems":[{"id":"C112506181035180611","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":20,"shipmentQuantity":20,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":77,"taxCode":"VAT19","taxRate":19,"tax":14.63,"grossPrice":91.63,"position":"0010","costCentre":"KST-4711","lineItemStatus":"RECLAIM","lineItemType":"RETURN_DELIVERY_NOTE","lineItemSource":"RETURN_DELIVERY_NOTE","productType":"MATERIAL","reclaim":{"description":"20 Steine beim Abladen der Teillieferung LS-2026-010233 gebrochen.","reclaimType":"DAMAGED","quantity":20},"lineItemChannel":"API","supplierAccountId":"m2LpK7dV","documentId":"C112506181035180602","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-18T10:35:18.060Z","lastModifiedAt":"2026-07-06T09:48:26.080Z","connectedDocuments":[{"id":"C112506160922410502","externalId":"LS-2026-010233","documentType":"DELIVERY","sourcingType":"STANDARD","documentStatus":"PARTIALLY_DELIVERED","deliveryDate":"2026-06-16T07:30:00.000Z"},{"id":"C112507060948260802","externalId":"GS-2026-000412","documentType":"CREDIT_NOTE","sourcingType":"STANDARD","documentStatus":"OPEN","invoiceDate":"2026-07-06T00:00:00.000Z"}]}],"pagination":{"pageIndex":0,"pageSize":25,"sort":null,"totalElements":1,"totalPages":0},"query":{"businessDocumentTypes":["RETURN_DELIVERY_NOTE"],"businessDocumentStatuses":["RECLAIM"],"projectIds":["b4TqR9wX"],"supplierAccountIds":["m2LpK7dV"],"searchText":"LS-2026-010233","deliveryFromDate":"2026-06-16","deliveryToDate":"2026-07-15","sortBy":"deliveryDate","direction":"DESC","pageIndex":0,"pageSize":25}}},"invoice":{"summary":"Invoice","value":{"data":[{"id":"C112506251522100411","externalId":"RE-2026-000998","documentType":"INVOICE","sourcingType":"STANDARD","documentStatus":"OPEN","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506251522100413","supplierAccount":{"id":"s6TyH1nP","name":"Stahlhandel Nordsachsen GmbH","contactNumber":"+49 341 5557711","creditorNo":"KRED-1188","taxId":"DE815552310"},"invoiceDate":"2026-06-25T00:00:00.000Z","orderDate":"2026-06-05","notes":"Rechnung zur Bestellung BE-2026-004833, Bewehrung Bauabschnitt B.","paymentInformation":{"currency":"EUR","paymentTime":"30 DAYS","paymentDate":"2026-07-25T00:00:00.000Z","skontoTime":"10 DAYS","skontoPercent":2,"earlyPaymentDate":"2026-07-05T00:00:00.000Z","skontoDeadline":"05.07.2026","totalSkontoAmount":80.1,"taxUnit":"PERCENT","taxRate":19,"netAmount":4005,"taxAmount":760.95,"grossAmount":4765.95}},"documentReferences":[{"id":"R112506251522100421","referenceType":"ORDER","documentReferenceId":"C112506051039221407","externalId":"BE-2026-004833","external":false,"referencedResolved":true,"referencedStatus":"CONFIRMED","referencedDocumentType":"ORDER","referencedExternalId":"BE-2026-004833","referencedDate":"2026-06-05T00:00:00.000Z","referencedChannelType":"API"}],"lineItems":[{"id":"C112506251522100431","title":"Betonstahl B500B, Stabstahl d = 12 mm","articleNumber":"BST-500B-D12","quantity":4.5,"quantityUnit":"t","unitPrice":890,"netPrice":4005,"taxCode":"VAT19","taxRate":19,"tax":760.95,"grossPrice":4765.95,"position":"0010","costCentre":"KST-4711","lineItemStatus":"OPEN","lineItemType":"INVOICE","lineItemSource":"INVOICE","productType":"MATERIAL","automationStatus":"MATCHED","lineItemChannel":"API","supplierAccountId":"s6TyH1nP","documentId":"C112506251522100411","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-25T15:22:10.041Z","lastModifiedAt":"2026-06-25T15:22:10.041Z","connectedDocuments":[{"id":"C112506051039221407","externalId":"BE-2026-004833","documentType":"ORDER","sourcingType":"STANDARD","documentStatus":"CONFIRMED","orderDate":"2026-06-05T00:00:00.000Z"}]},{"id":"C112506301407520702","externalId":"RE-2026-051204","documentType":"INVOICE","sourcingType":"STANDARD","documentStatus":"OPEN","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112506301407520704","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678","vatId":"DE812345678","addressDetails":{"addressLineOne":"Hauptstraße 88","city":"Dresden","zipcode":"01067","region":"Sachsen","country":"Deutschland"}},"invoiceDate":"2026-06-30T00:00:00.000Z","orderDate":"2026-06-01","orderId":"C0125051366449370","notes":"Rechnung über die Teillieferung LS-2026-010233 vom 16.06.2026: 480 Steine und 90 Sack.","buyer":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551020","email":"sharif.malik@cathago.de"},"paymentInformation":{"currency":"EUR","paymentTime":"30 DAYS","paymentDate":"2026-07-30T00:00:00.000Z","skontoTime":"10 DAYS","skontoPercent":2,"earlyPaymentDate":"2026-07-10T00:00:00.000Z","skontoDeadline":"10.07.2026","totalSkontoAmount":48.66,"taxUnit":"PERCENT","taxRate":19,"netAmount":2433,"taxAmount":462.27,"grossAmount":2895.27,"discount":0,"discountPercentage":0}},"attachedFiles":[{"id":"A112506301407520731","externalId":"ANH-RE-2026-051204","documentId":"C0625063014075207","url":"https://erp.hoffmann-hochbau.de/belege/RE-2026-051204.pdf","fileName":"rechnung-RE-2026-051204.pdf","attachmentType":"PDF","createdAt":"2026-06-30T14:07:52.070Z"}],"documentReferences":[{"id":"R112506301407520721","referenceType":"ORDER","documentReferenceId":"C112506010841072202","externalId":"BE-2026-004822","external":false,"referencedResolved":true,"referencedStatus":"REQUESTED","referencedDocumentType":"ORDER","referencedExternalId":"BE-2026-004822","referencedDate":"2026-06-01T00:00:00.000Z","referencedChannelType":"API"},{"id":"R112506301407520722","referenceType":"DELIVERY","documentReferenceId":"C112506160922410502","externalId":"LS-2026-010233","external":false,"referencedResolved":true,"referencedStatus":"PARTIALLY_DELIVERED","referencedDocumentType":"DELIVERY","referencedExternalId":"LS-2026-010233","referencedDate":"2026-06-16T07:30:00.000Z","referencedChannelType":"API","referencedSigned":true}],"lineItems":[{"id":"C112506301407520711","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":480,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":1848,"taxCode":"VAT19","taxRate":19,"tax":351.12,"grossPrice":2199.12,"position":"0010","costCentre":"KST-4711","lineItemStatus":"OPEN","lineItemType":"INVOICE","lineItemSource":"INVOICE","productType":"MATERIAL","automationStatus":"VERIFIED","lineItemChannel":"API","supplierAccountId":"m2LpK7dV","documentId":"C112506301407520702","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"},{"id":"C112506301407520712","title":"Mauermörtel MG IIa, 40-kg-Sack","articleNumber":"MOE-MGIIA-40","quantity":90,"quantityUnit":"Sack","unitPrice":6.5,"netPrice":585,"taxCode":"VAT19","taxRate":19,"tax":111.15,"grossPrice":696.15,"position":"0020","costCentre":"KST-4711","lineItemStatus":"OPEN","lineItemType":"INVOICE","lineItemSource":"INVOICE","productType":"MATERIAL","automationStatus":"VERIFIED","lineItemChannel":"API","supplierAccountId":"m2LpK7dV","documentId":"C112506301407520702","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-06-30T14:07:52.070Z","lastModifiedAt":"2026-07-06T09:48:26.080Z","connectedDocuments":[{"id":"C112506010841072202","externalId":"BE-2026-004822","documentType":"ORDER","sourcingType":"STANDARD","documentStatus":"REQUESTED","orderDate":"2026-06-01T00:00:00.000Z"},{"id":"C112506160922410502","externalId":"LS-2026-010233","documentType":"DELIVERY","sourcingType":"STANDARD","documentStatus":"PARTIALLY_DELIVERED","deliveryDate":"2026-06-16T07:30:00.000Z"},{"id":"C112507060948260802","externalId":"GS-2026-000412","documentType":"CREDIT_NOTE","sourcingType":"STANDARD","documentStatus":"OPEN","invoiceDate":"2026-07-06T00:00:00.000Z"}]}],"pagination":{"pageIndex":0,"pageSize":25,"sort":null,"totalElements":2,"totalPages":0},"query":{"businessDocumentTypes":["INVOICE"],"businessDocumentStatuses":["OPEN"],"automationStatuses":["VERIFIED","MATCHED"],"projectIds":["b4TqR9wX"],"invoiceFromDate":"2026-06-01","invoiceToDate":"2026-06-30","dueFromDate":"2026-07-01","dueToDate":"2026-07-31","skontoFromDate":"2026-07-01","skontoToDate":"2026-07-15","fromNetAmount":500,"toNetAmount":25000,"sortBy":"dueDate","direction":"ASC","pageIndex":0,"pageSize":25}}},"credit-note":{"summary":"Credit note","value":{"data":[{"id":"C112507060948260802","externalId":"GS-2026-000412","documentType":"CREDIT_NOTE","sourcingType":"STANDARD","documentStatus":"OPEN","customer":{"id":"C0325110620407662","name":"Hoffmann Hochbau GmbH"},"project":{"id":"b4TqR9wX","costCentre":"KST-4711","name":"Neubau Wohnpark Süd-West","address":"Ottostraße 14, 04103 Leipzig","addressDetails":{"addressLineOne":"Ottostraße 14","city":"Leipzig","zipcode":"04103","region":"Sachsen","country":"Deutschland"}},"additionalFields":[{"technicalName":"leistungszeitraum","displayName":"Leistungszeitraum","required":false,"showOnTopPdf":true,"value":"01.06.2026 - 16.06.2026"},{"technicalName":"erp_beleg_nr","displayName":"ERP-Belegnummer","required":false,"value":"BE-2026-004711"}],"metadata":{"id":"C112507060948260804","supplierAccount":{"id":"m2LpK7dV","name":"Weber & Sohn GmbH","contactNumber":"+49 341 5559080","creditorNo":"KRED-1042","taxId":"DE812345678","vatId":"DE812345678","addressDetails":{"addressLineOne":"Hauptstraße 88","city":"Dresden","zipcode":"01067","region":"Sachsen","country":"Deutschland"}},"invoiceDate":"2026-07-06T00:00:00.000Z","orderId":"C0125051366449370","notes":"Gutschrift für die 20 gebrochenen Steine aus Retoure RLS-2026-000147 zur Rechnung RE-2026-051204.","buyer":{"fullName":"Sharif Malik","contactNumber":"+49 341 5551020","email":"sharif.malik@cathago.de"},"paymentInformation":{"currency":"EUR","taxUnit":"PERCENT","taxRate":19,"netAmount":-77,"taxAmount":-14.63,"grossAmount":-91.63}},"documentReferences":[{"id":"R112507060948260821","referenceType":"INVOICE","documentReferenceId":"C112506301407520702","externalId":"RE-2026-051204","external":false,"referencedResolved":true,"referencedStatus":"OPEN","referencedDocumentType":"INVOICE","referencedExternalId":"RE-2026-051204","referencedDate":"2026-06-30T00:00:00.000Z","referencedChannelType":"API"},{"id":"R112507060948260822","referenceType":"RETURN_DELIVERY_NOTE","documentReferenceId":"C112506181035180602","externalId":"RLS-2026-000147","external":false,"referencedResolved":true,"referencedStatus":"RECLAIM","referencedDocumentType":"RETURN_DELIVERY_NOTE","referencedExternalId":"RLS-2026-000147","referencedDate":"2026-06-18T13:00:00.000Z","referencedChannelType":"API"}],"lineItems":[{"id":"C112507060948260811","title":"Kalksandstein KS XL 240 mm, 2DF","articleNumber":"KS-XL-240-2DF","quantity":-20,"quantityUnit":"Stück","unitPrice":3.85,"netPrice":-77,"taxCode":"VAT19","taxRate":19,"tax":-14.63,"grossPrice":-91.63,"position":"0010","costCentre":"KST-4711","lineItemStatus":"OPEN","lineItemType":"CREDIT_NOTE","lineItemSource":"CREDIT_NOTE","productType":"MATERIAL","reclaim":{"description":"20 Steine beim Abladen gebrochen, zurückgegeben mit RLS-2026-000147.","reclaimType":"DAMAGED","quantity":20},"lineItemChannel":"API","supplierAccountId":"m2LpK7dV","documentId":"C112507060948260802","projectId":"b4TqR9wX","companyAccountId":"C0325110620407662"}],"createdBy":"sharif.malik@cathago.de","createdAt":"2026-07-06T09:48:26.080Z","lastModifiedAt":"2026-07-06T09:48:26.080Z","connectedDocuments":[{"id":"C112506301407520702","externalId":"RE-2026-051204","documentType":"INVOICE","sourcingType":"STANDARD","documentStatus":"OPEN","invoiceDate":"2026-06-30T00:00:00.000Z"},{"id":"C112506181035180602","externalId":"RLS-2026-000147","documentType":"RETURN_DELIVERY_NOTE","sourcingType":"STANDARD","documentStatus":"RECLAIM","deliveryDate":"2026-06-18T13:00:00.000Z"}]}],"pagination":{"pageIndex":0,"pageSize":25,"sort":null,"totalElements":1,"totalPages":0},"query":{"businessDocumentTypes":["CREDIT_NOTE"],"projectIds":["b4TqR9wX"],"creditorNumbers":["KRED-1042"],"searchText":"RE-2026-051204","invoiceFromDate":"2026-07-01","invoiceToDate":"2026-07-31","sortBy":"invoiceDate","direction":"DESC","pageIndex":0,"pageSize":25}}}}}}}}},"servers":[{"url":"https://api.cathago.de"}]}},"components":{"schemas":{"AddressInDto":{"type":"object","properties":{"addressLineOne":{"type":"string"},"addressLineTwo":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"zipcode":{"type":"string"},"comments":{"type":"string"},"mapLink":{"type":"string"},"region":{"type":"string"}}},"CompanyInDto":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"taxId":{"type":"string"},"bic":{"type":"string"},"iban":{"type":"string"},"address":{"type":"string"},"domain":{"type":"string"},"currency":{"type":"string"},"dateFormat":{"type":"string"}}},"ContactPersonInDto":{"type":"object","properties":{"fullName":{"type":"string"},"emailAddress":{"type":"string"},"contactNumber":{"type":"string"},"alternateContactNumber":{"type":"string"}}},"PublicApiSupplierAccountInDto":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["CONNECTED","PENDING","AVAILABLE"]},"company":{"$ref":"#/components/schemas/CompanyInDto"},"contactPerson":{"$ref":"#/components/schemas/ContactPersonInDto"},"address":{"$ref":"#/components/schemas/AddressInDto"},"members":{"type":"array","items":{"$ref":"#/components/schemas/SupplierMemberInDto"}},"tenants":{"type":"array","items":{"$ref":"#/components/schemas/PublicSupplierConnectionHasTenantInDto"}}}},"PublicSupplierConnectionHasTenantInDto":{"type":"object","properties":{"tenantId":{"type":"string"},"creditorNumber":{"type":"string"},"customerId":{"type":"string"},"isCatalogExpected":{"type":"boolean"},"isOrderConfirmationExpected":{"type":"boolean"},"isDeliveryExpected":{"type":"boolean"},"isInvoiceExpected":{"type":"boolean"}}},"SupervisorInDto":{"type":"object","properties":{"companyAccountId":{"type":"string"},"status":{"type":"string","enum":["PENDING_APPROVAL","APPROVED","REJECTED"]}}},"SupplierMemberInDto":{"type":"object","properties":{"contactPersonInDto":{"$ref":"#/components/schemas/ContactPersonInDto"},"supplierMemberType":{"type":"string","enum":["OWNER","ADMIN","MEMBER"]},"supervisorToAll":{"type":"boolean"},"supervisorInDtos":{"type":"array","items":{"$ref":"#/components/schemas/SupervisorInDto"}},"sendInvite":{"type":"boolean"}}},"AddressOutDto":{"type":"object","properties":{"addressLineOne":{"type":"string"},"addressLineTwo":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"zipcode":{"type":"string"},"comments":{"type":"string"},"mapLink":{"type":"string"},"region":{"type":"string"},"id":{"type":"string"}}},"CompanyOutDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"taxId":{"type":"string"},"bic":{"type":"string"},"iban":{"type":"string"},"address":{"type":"string"},"domain":{"type":"string"},"currency":{"type":"string"},"dateFormat":{"type":"string"}}},"ContactPersonOutDto":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":"string"},"emailAddress":{"type":"string"},"contactNumber":{"type":"string"},"alternateContactNumber":{"type":"string"}}},"PublicApiSupplierAccount":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["CONNECTED","PENDING","AVAILABLE"]},"accountStatus":{"type":"string","enum":["PENDING","ACTIVATED"]},"cathagoNetwork":{"type":"boolean"},"domain":{"type":"string"},"company":{"$ref":"#/components/schemas/CompanyOutDto"},"contactPerson":{"$ref":"#/components/schemas/ContactPersonOutDto"},"address":{"$ref":"#/components/schemas/AddressOutDto"},"tenants":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiSupplierConnectionHasTenantOutDto"}}}},"PublicApiSupplierConnectionHasTenantOutDto":{"type":"object","properties":{"id":{"type":"string"},"creditorNumber":{"type":"string"},"customerId":{"type":"string"},"tenantId":{"type":"string"},"isCatalogExpected":{"type":"boolean"},"isOrderConfirmationExpected":{"type":"boolean"},"isDeliveryExpected":{"type":"boolean"},"isInvoiceExpected":{"type":"boolean"},"tenant":{"$ref":"#/components/schemas/tenant"}}},"tenant":{"type":"object","properties":{"tenantId":{"type":"string"},"taxId":{"type":"string"},"companyId":{"type":"string"},"companyName":{"type":"string"},"mandant":{"type":"string"},"description":{"type":"string"},"logoUrl":{"type":"string"},"address":{"$ref":"#/components/schemas/AddressOutDto"}}},"BillingAddressInDto":{"type":"object","properties":{"addressLineOne":{"type":"string"},"addressLineTwo":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"zipcode":{"type":"string"},"comments":{"type":"string"},"mapLink":{"type":"string"},"region":{"type":"string"},"companyName":{"type":"string"},"vatId":{"type":"string"},"emailAddress":{"type":"string"},"contactPersonName":{"type":"string"}}},"CustomFieldInDto":{"type":"object","properties":{"displayName":{"type":"string"},"technicalName":{"type":"string"},"defaultValue":{"type":"string"},"fieldType":{"type":"string","enum":["PROJECT","SUPPLIER","LINE_ITEM","ORDER","TENANT","COMPANY_ACCOUNT"]},"valueType":{"type":"string","enum":["TEXT","NUMBER","DATE","FLOAT","SELECT","MULTI_SELECT","PASSWORD"]},"valueOptions":{"type":"array","items":{"type":"string"}}}},"PublicApiAdditionalFieldInDto":{"type":"object","properties":{"technicalName":{"type":"string"},"displayName":{"type":"string"},"value":{"type":"string"},"valueType":{"type":"string","enum":["TEXT","NUMBER","DATE","FLOAT","SELECT","MULTI_SELECT","PASSWORD"]},"valueOptions":{"type":"array","items":{"type":"string"}},"fieldId":{"type":"string"}}},"PublicApiContactPersonInDto":{"type":"object","properties":{"fullName":{"type":"string"},"contactNumber":{"type":"string"},"alternateContactNumber":{"type":"string"}}},"PublicApiCustomFieldValueInDto":{"type":"object","properties":{"customFieldId":{"type":"string"},"displayName":{"type":"string"},"technicalName":{"type":"string"},"valueType":{"type":"string","enum":["TEXT","NUMBER","DATE","FLOAT","SELECT","MULTI_SELECT","PASSWORD"]},"valueOptions":{"type":"array","items":{"type":"string"}},"value":{"type":"string"},"customFieldInDto":{"$ref":"#/components/schemas/CustomFieldInDto"}}},"PublicApiMemberInDto":{"required":["emailAddress"],"type":"object","properties":{"emailAddress":{"type":"string"},"sendInvite":{"type":"boolean"},"customCompanyAccountRoleId":{"type":"string"},"contactPerson":{"$ref":"#/components/schemas/PublicApiContactPersonInDto"},"role":{"type":"string","enum":["PROCUREMENT MANAGER","ADMIN","CONSTRUCTION MANAGER","FOREMEN","GUEST"]},"tenants":{"type":"array","items":{"$ref":"#/components/schemas/PublicMemberHasTenantInDto"}}}},"PublicApiProjectInDto":{"required":["title"],"type":"object","properties":{"externalProjectId":{"type":"string"},"title":{"type":"string"},"costCentre":{"type":"string"},"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"budget":{"type":"number"},"description":{"type":"string"},"tenantId":{"type":"string"},"projectStatus":{"type":"string","enum":["DRAFT","ACTIVE","ARCHIVED","DEACTIVATED"]},"address":{"$ref":"#/components/schemas/AddressInDto"},"billingAddress":{"$ref":"#/components/schemas/BillingAddressInDto"},"members":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiMemberInDto"}},"customFieldValues":{"type":"array","deprecated":true,"items":{"$ref":"#/components/schemas/PublicApiCustomFieldValueInDto"}},"additionalFields":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiAdditionalFieldInDto"}},"locations":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiProjectLocationInDto"}}}},"PublicApiProjectLocationInDto":{"type":"object","properties":{"title":{"type":"string"},"comments":{"type":"string"},"id":{"type":"string"},"overrideExistingLocation":{"type":"boolean"},"defaultLocation":{"type":"boolean"},"address":{"$ref":"#/components/schemas/AddressInDto"},"members":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiProjectMemberInDto"}}}},"PublicApiProjectMemberInDto":{"type":"object","properties":{"emailAddress":{"type":"string"}}},"PublicMemberHasTenantInDto":{"type":"object","properties":{"allProjects":{"type":"boolean"},"tenantId":{"type":"string"}}},"BillingAddressOutDto":{"type":"object","properties":{"addressLineOne":{"type":"string"},"addressLineTwo":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"zipcode":{"type":"string"},"comments":{"type":"string"},"mapLink":{"type":"string"},"region":{"type":"string"},"id":{"type":"string"},"companyName":{"type":"string"},"vatId":{"type":"string"},"emailAddress":{"type":"string"},"contactPersonName":{"type":"string"}}},"CustomFieldOutDto":{"type":"object","properties":{"displayName":{"type":"string"},"technicalName":{"type":"string"},"defaultValue":{"type":"string"},"fieldType":{"type":"string","enum":["PROJECT","SUPPLIER","LINE_ITEM","ORDER","TENANT","COMPANY_ACCOUNT"]},"valueType":{"type":"string","enum":["TEXT","NUMBER","DATE","FLOAT","SELECT","MULTI_SELECT","PASSWORD"]},"valueOptions":{"type":"array","items":{"type":"string"}},"id":{"type":"string"}}},"CustomFieldValueOutDto":{"type":"object","properties":{"value":{"type":"string"},"id":{"type":"string"},"projectId":{"type":"string"},"companyAccountId":{"type":"string"},"orderId":{"type":"string"},"lineItemId":{"type":"string"},"supplierAccountId":{"type":"string"},"customFieldOutDto":{"$ref":"#/components/schemas/CustomFieldOutDto"}}},"PublicApiAdditionalFieldOutDto":{"type":"object","properties":{"id":{"type":"string"},"fieldId":{"type":"string"},"technicalName":{"type":"string"},"displayName":{"type":"string"},"value":{"type":"string"},"valueType":{"type":"string","enum":["TEXT","NUMBER","DATE","FLOAT","SELECT","MULTI_SELECT","PASSWORD"]},"required":{"type":"boolean"},"position":{"type":"integer","format":"int32"},"valueOptions":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"lastModifiedAt":{"type":"string","format":"date-time"},"lastModifiedBy":{"type":"string"}}},"PublicApiMemberMinOutDto":{"type":"object","properties":{"id":{"type":"string"},"emailAddress":{"type":"string"},"role":{"$ref":"#/components/schemas/RoleMinOutDto"},"invitationSentDate":{"type":"string","format":"date-time"},"contactPerson":{"$ref":"#/components/schemas/ContactPersonOutDto"},"memberStatus":{"type":"string","enum":["PENDING","ACTIVE","DISABLED"]},"username":{"type":"string"}}},"PublicApiMemberOutDto":{"type":"object","properties":{"id":{"type":"string"},"emailAddress":{"type":"string"},"role":{"$ref":"#/components/schemas/RoleMinOutDto"},"invitationSentDate":{"type":"string","format":"date-time"},"contactPerson":{"$ref":"#/components/schemas/ContactPersonOutDto"},"memberStatus":{"type":"string","enum":["PENDING","ACTIVE","DISABLED"]},"username":{"type":"string"},"tenants":{"type":"array","items":{"$ref":"#/components/schemas/PublicMemberHasTenantOutDto"}}}},"PublicApiProjectLocationOutDto":{"type":"object","properties":{"title":{"type":"string"},"comments":{"type":"string"},"id":{"type":"string"},"defaultLocation":{"type":"boolean"},"address":{"$ref":"#/components/schemas/AddressOutDto"},"members":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiMemberMinOutDto"}},"createdAt":{"type":"string","format":"date-time"},"lastModifiedAt":{"type":"string","format":"date-time"}}},"PublicApiProjectOutDto":{"required":["title"],"type":"object","properties":{"externalProjectId":{"type":"string"},"title":{"type":"string"},"costCentre":{"type":"string"},"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"budget":{"type":"number"},"description":{"type":"string"},"id":{"type":"string"},"address":{"$ref":"#/components/schemas/AddressOutDto"},"billingAddress":{"$ref":"#/components/schemas/BillingAddressOutDto"},"members":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiMemberOutDto"}},"locations":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiProjectLocationOutDto"}},"customFieldValues":{"type":"array","deprecated":true,"items":{"$ref":"#/components/schemas/CustomFieldValueOutDto"}},"additionalFields":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiAdditionalFieldOutDto"}},"projectStatus":{"type":"string","enum":["DRAFT","ACTIVE","ARCHIVED","DEACTIVATED"]},"tenantId":{"type":"string"}}},"PublicMemberHasTenantOutDto":{"type":"object","properties":{"id":{"type":"string"},"memberId":{"type":"string"},"allProjects":{"type":"boolean"},"tenant":{"$ref":"#/components/schemas/TenantMinOutDto"}}},"RoleMinOutDto":{"type":"object","properties":{"roleName":{"type":"string"},"roleType":{"type":"string","enum":["SYSTEM_DEFINED","USER_DEFINED"]}}},"TenantMinOutDto":{"type":"object","properties":{"id":{"type":"string"},"taxId":{"type":"string"},"companyId":{"type":"string"},"companyName":{"type":"string"},"mandant":{"type":"string"},"description":{"type":"string"},"logoUrl":{"type":"string"},"addressOutDto":{"$ref":"#/components/schemas/AddressOutDto"}}},"PublicApiProjectUpdateInDto":{"required":["title"],"type":"object","properties":{"externalProjectId":{"type":"string"},"title":{"type":"string"},"costCentre":{"type":"string"},"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"budget":{"type":"number"},"description":{"type":"string"},"tenantId":{"type":"string"},"projectStatus":{"type":"string","enum":["DRAFT","ACTIVE","ARCHIVED","DEACTIVATED"]},"address":{"$ref":"#/components/schemas/AddressInDto"},"billingAddress":{"$ref":"#/components/schemas/BillingAddressInDto"},"members":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiMemberInDto"}},"customFieldValues":{"type":"array","deprecated":true,"items":{"$ref":"#/components/schemas/PublicApiCustomFieldValueInDto"}},"additionalFields":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiAdditionalFieldInDto"}},"locations":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiProjectLocationInDto"}},"id":{"type":"string"}}},"PublicApiMemberBulkUpdateInDto":{"required":["emailAddress"],"type":"object","properties":{"emailAddress":{"type":"string"},"sendInvite":{"type":"boolean"},"customCompanyAccountRoleId":{"type":"string"},"contactPerson":{"$ref":"#/components/schemas/PublicApiContactPersonInDto"},"role":{"type":"string","enum":["PROCUREMENT MANAGER","ADMIN","CONSTRUCTION MANAGER","FOREMEN","GUEST"]},"tenants":{"type":"array","items":{"$ref":"#/components/schemas/PublicMemberHasTenantInDto"}},"disable":{"type":"boolean"}}},"PaginationInDto":{"type":"object","properties":{"pageIndex":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"sort":{"$ref":"#/components/schemas/SortDto"}}},"SearchCriteriaDto":{"type":"object","properties":{"fieldName":{"type":"string"},"value":{"type":"object"},"operator":{"type":"string","enum":["in","like","lt","gt","eq","text_search","not_like","not_in","exists","not_exists","not_eq","between"]}}},"SortDto":{"type":"object","properties":{"property":{"type":"string"},"direction":{"type":"string","enum":["ASC","DESC"]},"ignoreCase":{"type":"boolean"}}},"SupplierSearchInDto":{"type":"object","properties":{"searchText":{"type":"string"},"searchCriteriaDtos":{"type":"array","items":{"$ref":"#/components/schemas/SearchCriteriaDto"}},"paginationInDto":{"$ref":"#/components/schemas/PaginationInDto"},"supplierAccountIds":{"type":"array","items":{"type":"string"}},"creditorNumbers":{"type":"array","items":{"type":"string"}},"taxIds":{"type":"array","items":{"type":"string"}},"customerIds":{"type":"array","items":{"type":"string"}}}},"PaginationOutDto":{"type":"object","properties":{"pageIndex":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"sort":{"$ref":"#/components/schemas/SortDto"},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"}}},"SearchOutDtoPublicApiSupplierAccount":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiSupplierAccount"}},"paginationOutDto":{"$ref":"#/components/schemas/PaginationOutDto"},"query":{"type":"object"}}},"ProjectSearchInDto":{"type":"object","properties":{"searchText":{"type":"string"},"searchCriteriaDtos":{"type":"array","items":{"$ref":"#/components/schemas/SearchCriteriaDto"}},"paginationInDto":{"$ref":"#/components/schemas/PaginationInDto"},"externalProjectId":{"type":"string"},"title":{"type":"string"},"costCentre":{"type":"string"},"projectStatus":{"type":"string","enum":["DRAFT","ACTIVE","ARCHIVED","DEACTIVATED"]},"tenantIds":{"type":"array","items":{"type":"string"}},"projectStatuses":{"type":"array","items":{"type":"string","enum":["DRAFT","ACTIVE","ARCHIVED","DEACTIVATED"]}},"memberEmailAddress":{"type":"string"},"accountMemberIds":{"type":"array","items":{"type":"string"}}}},"SearchOutDtoPublicApiProjectOutDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicApiProjectOutDto"}},"paginationOutDto":{"$ref":"#/components/schemas/PaginationOutDto"},"query":{"type":"object"}}},"PublicApiMemberPatchInDto":{"type":"object","properties":{"role":{"type":"string","enum":["PROCUREMENT MANAGER","ADMIN","CONSTRUCTION MANAGER","FOREMEN","GUEST"]},"customRoleId":{"type":"string"},"emailAddress":{"type":"string"},"contactPerson":{"$ref":"#/components/schemas/PublicApiContactPersonInDto"},"tenants":{"type":"array","items":{"$ref":"#/components/schemas/PublicMemberHasTenantInDto"}},"disable":{"type":"boolean"}}}},"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"API-Key","description":"Your API key from User Profile, Company Account Settings, API Keys."}}}}