What this call does

Creates or updates several price lists at once, in a single call.

Last updated: 29.09.2026

What you need first

  • A valid API key in the API-Key header, and your companyAccountId.
  • For every new price list, the supplier's supplierId from the Suppliers section.
  • For updates, the price list id from "Find price lists".

The three modes (mode)

mode is a query parameter, not a payload field.

mode

What happens

ADD_OR_UPDATE

Default. Entry without id = create, entry with an id = update. Unknown id gives 404.

ADD

Create only. An existing id gives 409, and an id you invent is ignored, ids are always generated for you.

PATCH

Update only. Every entry needs an id. No id = 400, unknown id = 404.

Parameters

Parameter

Required

Default

Meaning

companyAccountId

Yes

none

Your company ID. On create it is stamped onto the new price list.

mode

No

ADD_OR_UPDATE

One of the three modes above

The fields

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

Field

Type

Required

Default

Meaning

id

text

No, Yes when mode=PATCH

(none)

Leave it out to create; with an id it updates.

companyAccountId

text

No

(none)

Leave this out.

name

text

No

(none)

Name of the price list. Not required.

description

text

No

(none)

Free text

supplierId

text

Yes when creating

(none)

The only required field. Missing or blank on create gives 400.

supplierName

text

No

(none)

Stored as sent. It is not looked up from supplierId.

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.

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.

type

choice

No

STANDARD on create only

STANDARD, CALL_OFF, CONCRETE, RENTAL. Leave it out on an update and the stored value is kept.

currency

text

No

EUR

Currency code, stored as sent

status

choice

No

INACTIVE

ACTIVE or INACTIVE. Without a status a new price list is inactive and wins no prices.

validFrom / validTo

date + time

No

(none)

YYYY-MM-DDThh:mm:ss, no time zone

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.

variantConfig

object

No

(none)

Variant grouping rule, see below

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.
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.

The four kinds (type)

Value

What it is

STANDARD

An ordinary supplier price list. This is what the section is about.

RENTAL

Priced per day, week or month instead of per unit.

CALL_OFF

A call-off agreement. Create these in Price Lists → Call-Off, not here.

CONCRETE

Ready-mix concrete. Not covered by these pages.

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.
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.

Variants (variantConfig)

Many 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.

source

What happens

What you fill in

USER_DIFFERENTIATOR

Rows with the same articleNumber are grouped, and told apart by the fields you name.

differentiatorFields: at least one field name

SUPPLIER_COLUMN

Rows are grouped by the value of one supplier column.

supplierColumnField: the column name

NONE

No grouping. Every row stays its own part.

nothing

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.

Sending 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.

What you get back

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.

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.

Common mistakes

Every error answer has the same shape: code, message, timestamp and path.

What you see

Why

What to do

401 Unauthorized, empty body

Key missing, wrong, or not valid for this companyAccountId

A staging key does not work in production.

The payload is rejected

The // comments are still in it

Remove them, see the start page.

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.

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.

400 on type or status

A value outside the allowed list

type: STANDARD, CALL_OFF, CONCRETE, RENTAL. status: ACTIVE, INACTIVE.

404nonePriceList 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".

409nonePriceList already exists for ADD

The id already exists and mode=ADD

Drop the id, or use ADD_OR_UPDATE.

409nonevariantConfig already set

It was set once before

Leave variantConfig out; ask your CATHAGO contact to clear it.

409nonesupplierId cannot be changed

The list already has parts on it

Delete the parts first, then re-point the supplier.

The price list is suddenly INACTIVE, or currency reset to EUR

A PATCH that omitted those fields

Send every field you want kept.

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.

What we could not confirm

Nothing. Everything on this page was read off the interface.

Adresse

HTTP
POST https://api.cathago.de/v3/api/gateways/integration/master-articles/pricelists/bulk?companyAccountId=<companyAccountId>&mode=ADD_OR_UPDATE

Beispielaufruf

Terminal
curl -X POST 'https://api.cathago.de/v3/api/gateways/integration/master-articles/pricelists/bulk?companyAccountId=<companyAccountId>&mode=ADD_OR_UPDATE' \
  -H 'API-Key: <Ihr API-Schlüssel>' \
  -H 'Content-Type: application/json' \
  -d '[
  {
    "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": []
      }
    ]
  }
]'

Beispiel für den Body

JSON
[
    {
        "name": "Betonstahl Rahmenpreise 2026 Q3",  // Optional. Name of the price list
        "description": "Rahmenvereinbarung Bewehrungsstahl, Werk Leipzig", // Optional. Free text
        "supplierId": "S-001",                      // Required when creating. Id from the Suppliers section
        "supplierName": "Stahlhandel Rheinland GmbH", // Optional. Stored exactly as sent
        "priority": 10,                             // Optional. Tie-break for the price: the LOWEST number wins
        "hidePrice": false,                         // Optional. true hides this list's prices from the people using it
        "type": "STANDARD",                         // Optional. STANDARD on create. Also RENTAL. CALL_OFF moves it out of this section
        "currency": "EUR",                          // Optional. Default EUR
        "status": "ACTIVE",                         // Optional. Default INACTIVE, which wins no prices
        "validFrom": "2026-07-01T00:00:00",         // Optional. Format YYYY-MM-DDThh:mm:ss, no time zone
        "validTo": "2026-09-30T23:59:59",           // Optional. Valid to, same format
        "variantConfig": {                          // Optional. Can only be set once; a second attempt gives 409
            "source": "USER_DIFFERENTIATOR",        // Required here. Also: SUPPLIER_COLUMN, NONE
            "differentiatorFields": [               // Required for USER_DIFFERENTIATOR, ignored otherwise
                "packagingSize",                    // Field that tells the variants apart
                "quantityPerPackage"                // A second differentiating field
            ],
            "supplierColumnField": null             // Left empty on purpose: only read when source is SUPPLIER_COLUMN
        },
        "tenantProjectAssignments": [               // Optional, but an empty list matches no order at all
            {
                "tenantId": "T-001",                // The tenant this assignment belongs to
                "allProjects": true,                // true = every site of this tenant may use the price list
                "projectIds": []                    // Left empty on purpose: allProjects is true
            },
            {                                       // Second entry, same three fields
                "tenantId": "T-002",                // A second tenant
                "allProjects": false,               // false = only the sites listed below may use it
                "projectIds": [                     // The sites covered when allProjects is false
                    "P-100",                        // Site id from the Projects section
                    "P-101"                         // A second construction site
                ]
            }
        ]
    },
    {                                               // Second entry: an update, because it carries an id
        "id": "C242607014839210567",                // From "Find price lists". Required when mode=PATCH
        "name": "Betonstahl Rahmenpreise 2026 Q3 (korrigiert)", // The field being changed
        "currency": "EUR",                          // Repeated on purpose: omitting it would write EUR
        "status": "ACTIVE",                         // Repeated on purpose: omitting it would write INACTIVE
        "tenantProjectAssignments": [               // Repeated on purpose: omitting it would clear the list
            {
                "tenantId": "T-001",                // Unchanged by this update
                "allProjects": true,                // Unchanged by this update
                "projectIds": []                    // Left empty on purpose: allProjects is true
            }
        ]
    }
]

Beispielantworten

200 OK, the stored price lists

Status: 200 OK

JSON
[
  {
    "id": "C242607014839210567",
    "companyAccountId": "<companyAccountId>",
    "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"
  }
]