Skip to main content
POST
Lieferanten aus SAP-System erstellen oder aktualisieren

Overview

Use this endpoint to sync suppliers from SAP into comstruct. The request body is always an array, so a single supplier and batches are handled through the same POST call. When number is present, comstruct stores it as the supplier external_id. If a supplier with the same external_id already exists for the customer, that supplier is updated.
Send number for every SAP supplier. The field is not required by schema validation, but it is required for idempotent SAP syncs and later lookups.

Permissions

The API key must be linked to a customer.

Headers

Request body

The body must be a JSON array of suppliers.

Supplier fields

Bank details (bank_details[])

Address (address)

Example

Behavior

  • number is stored as external_id; existing suppliers with the same external_id and customer are updated.
  • On conflicts, only external_id, legal_uid, country_code, withholding_tax_code, payment_term_id, title, comment, address, city, and zip are updated.
  • payment_term is resolved against the customer’s payment terms. Unknown values return 400.
  • default_account is resolved against the customer’s accounts. Unknown values return 400. When omitted on upsert, any existing default_account_id is preserved.
  • If wth_tax_code is omitted, comstruct stores the default value 00.
  • Bank details are merged by IBAN, supplier, and tenant; on conflicts, the bank detail external ID is updated.

Response codes

Authorizations

X-API-Key
string
header
required

API-Schlüssel zur Authentifizierung. Kontaktieren Sie Ihren Customer Success Manager, um einen API-Schlüssel zu erhalten.

Jeder Endpunkt erfordert spezifische Berechtigungen (Scopes); die erforderlichen Scopes werden pro Endpunkt angezeigt.

Body

application/json
title
string
required

Lieferantenname/Titel

Example:

"Beispiel GmbH-8"

number
string

Lieferantennummer aus SAP; wird als external_id gespeichert und für Upserts verwendet

Example:

"EXTERNAL-09092"

Optionale Umsatzsteuer-ID

Example:

"D456789900022202"

country_code
string

ISO 3166-1 alpha-2 Ländercode

Example:

"US"

comment
string

Freitext-Kommentar zum Lieferanten

Example:

"Bevorzugter Kontakt per E-Mail"

payment_term
string

Optionaler SAP-Zahlungsbedingungsschlüssel; muss, falls angegeben, im comstruct-Mandanten existieren

Example:

"90T"

default_account
string

Optionale Kontonummer des Standardkontos; muss, falls angegeben, im comstruct-Mandanten existieren

Example:

"4000"

wth_tax_code
string

Optionaler Quellensteuercode

Example:

"90"

bank_details
object[]

Optionale Bankverbindungen

address
object

Response

Lieferantendaten erfolgreich empfangen

message
string
Example:

"Supplier data received successfully"