ERP XT icon

ERP XT

Integracja z Comarch ERP XT (Betterfly) - faktury, kontrahenci, produkty

Kontrahent → Utwórz

AI-generated

Summary

Create a new kontrahent in ERP XT.

Inputs

  • customerName (required) — Nazwa kontrahenta (wymagana)
  • customerFields — Dodatkowe pola kontrahenta. Adresowe ulice, budynek, lokal, kod pocztowy i miasto są grupowane w obiekcie Address; pozostałe pola przekazywane są jako pola dodatkowe. Dostępne opcje: CustomerTaxNumber (NIP/PESEL), CustomerCode (kod generowany automatycznie jeśli pusty), Mail, PhoneNumber, CustomerType (Osoba Fizyczna / Podmiot Gospodarczy), CustomerStatus (Krajowy, Wewnątrzunijny, Pozaunijny, Wewnątrzunijny Trójstronny, procedura OSS), CountryCode (wymagany dla wewnątrzunijnych/OSS), RepresentativeFirstName, RepresentativeLastName, Street, BuildingNumber, FlatNumber, PostalCode, City.

Output shape

The API returns the created kontrahent record, which n8n wraps in execution metadata. Binary data is not produced for this operation.

The operation sends a POST to /api2/public/v1.2/customers with payload { Name: customerName, ...otherFields from customerFields, Address: { ... } if any address fields are provided }. All customerFields sub-options are validated per the node's property definitions; their inclusion in the API body follows the source code's address/otherFields extraction logic.

Examples

Example 1: Create a company kontrahent with NIP, e-mail and address.

customerName: 'ABC Sp. z o.o.'; customerFields: { CustomerTaxNumber: '123456789', Mail: 'contact@ab.pl', Street: 'Główna', BuildingNumber: '10', City: 'Warszawa', CustomerType: 1, CustomerStatus: 0, CountryCode: 'PL' }

Links

Discussion