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

companyAccountId

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

pageIndex

number

Page number. The first page is 0.

pageSize

number

Results per page.

sort

text

Accepted, but has no effect.

externalIds

list of text

Your own contract numbers from your ERP. Matched exactly.

supplierAccountIds

list of text

Supplier account ids. Note the plural.

statuses

list of choice

DRAFT, ACTIVE, INACTIVE.

contractTypes

list of text

Exact and case-sensitive. CATHAGO's screens use PURCHASE, SERVICE, RENTAL, PREFAB, SUBCONTRACT, LOGISTICS, DISPOSAL, OTHERS.

contractForms

list of text

Exact and case-sensitive. CATHAGO's screens use SPOT, FRAMEWORK, MSA.

priceListIds

list of text

Price list ids.

fromDate, toDate

date

The validity window, YYYY-MM-DD. See below.

minValue, maxValue

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.

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.

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

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.

A filter is simply ignored

It was misspelled. A misspelled field name is dropped silently, never rejected

Check it against the field table.

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.

contractTypes or contractForms match nothing

Both are case-sensitive: "purchase" misses "PURCHASE"

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, "10.000,00"

Page on with pageIndex. Send 10000.00, dot, not comma, no quotes.

Adresse

HTTP
POST https://api.cathago.de/v3/api/gateways/integration/contracts/search?companyAccountId=<companyAccountId>

Beispielaufruf

Terminal
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

JSON
{
    "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

JSON
{
    "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

JSON
{
    "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

JSON
{
    "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

JSON
{
    "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

JSON
{
    "data": [],
    "total": 0,
    "pageIndex": 0,
    "pageSize": 10
}

Example 6, 401 invalid API-Key

Status: 401 Unauthorized

JSON
{
    "timestamp": "2026-05-15T09:24:00Z",
    "status": 401,
    "error": "Unauthorized",
    "message": "Invalid API key"
}