What this call does
Searches your company's framework contracts, one page at a time.
Last updated: 15.05.2026
What you need first
A 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.
Parameters
Parameter | Required | Default | Meaning |
|---|---|---|---|
| Yes | none | Your company id, in the address line. A wrong value returns an empty page, not an error. |
The fields
Every 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".
Field | Type | Meaning |
|---|---|---|
| number | Page number. The first page is |
| number | Results per page. |
| text | Accepted, but has no effect. |
| list of text | Your own contract numbers from your ERP. Matched exactly. |
| list of text | Supplier account ids. Note the plural. |
| list of choice |
|
| list of text | Exact and case-sensitive. CATHAGO's screens use |
| list of text | Exact and case-sensitive. CATHAGO's screens use |
| list of text | Price list ids. |
| date | The validity window, |
| number | Accepted, but have no effect. |
Sent 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.
statuses: ["ACTIVE"] and read daysUntilExpiry off each result.What you get back
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.
Nothing 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.
Common mistakes
What you see | Why | What to do |
|---|---|---|
| Key missing, unknown, disabled or expired; or the | Check the |
A filter is simply ignored | It was misspelled. A misspelled field name is dropped silently, never rejected | Check it against the field table. |
| The dates were meant as an overlap filter, or | The dates are a containment window, see above. |
| Both are case-sensitive: | Use the exact spelling you stored. |
Results are missing, or an amount is refused | Only the first page was fetched; or the amount was sent as text, | Page on with |
Adresse
POST https://api.cathago.de/v3/api/gateways/integration/contracts/search?companyAccountId=<companyAccountId>Beispielaufruf
curl -X POST 'https://api.cathago.de/v3/api/gateways/integration/contracts/search?companyAccountId=<companyAccountId>' \
-H 'API-Key: <Ihr API-Schlüssel>' \
-H 'Content-Type: application/json' \
-d '{
"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"
}'Beispiel für den Body
{
"pageIndex": 0, // Optional. Page number, first page is 0. Default 0
"pageSize": 25, // Optional. Results per page. Default 10
"externalIds": [ // Optional. Your own contract numbers from your ERP, matched exactly
"RV-2026-0417",
"RV-2026-0418"
],
"supplierAccountIds": [ // Optional. Supplier account ids. Note the plural
"S-STAHLHANDEL-NORDBAU",
"S-BETONWERK-SACHSEN"
],
"statuses": [ // Optional. DRAFT, ACTIVE or INACTIVE
"ACTIVE"
],
"contractTypes": [ // Optional. Free text, case-sensitive. Screens use PURCHASE, SERVICE, RENTAL, PREFAB, SUBCONTRACT, LOGISTICS, DISPOSAL, OTHERS
"PURCHASE",
"LOGISTICS"
],
"contractForms": [ // Optional. Free text, case-sensitive. Screens use SPOT, FRAMEWORK, MSA
"FRAMEWORK"
],
"priceListIds": [ // Optional. Price list ids
"PL-STAHL-NORD-2026",
"PL-MATTEN-NORD-2026"
],
"fromDate": "2026-06-01", // Optional. Contracts starting on or AFTER this day. Format YYYY-MM-DD
"toDate": "2027-05-31" // Optional. Contracts ending on or BEFORE this day. With fromDate the whole term must fit inside
}Beispielantworten
Example 1, list everything (empty body / paginated)
Status: 200 OK
{
"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)
Status: 200 OK
{
"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
Status: 200 OK
{
"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)
Status: 200 OK
{
"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)
Status: 200 OK
{
"data": [],
"total": 0,
"pageIndex": 0,
"pageSize": 10
}Example 6, 401 invalid API-Key
Status: 401 Unauthorized
{
"timestamp": "2026-05-15T09:24:00Z",
"status": 401,
"error": "Unauthorized",
"message": "Invalid API key"
}