Optima REST API icon

Optima REST API

Interact with Comarch Optima ERP via REST API

Customer → Get

AI-generated

Summary

Retrieves customer records from the Optima REST API using optional ID, filter, and pagination parameters. Returns customers as separate n8n items or as the API response in one item.

Inputs

  • Options → Customer ID — Optional customer ID to request.
  • Options → Filter — Optional SQL-like filter, such as Knt_Kod = 'ACME' or Knt_Nip = '1234567890'.
  • Options → Skip — Number of records to skip; defaults to 0.
  • Options → Take — Maximum number of records to return; defaults to 100.
  • Options → Output Mode — Choose Multiple Items (Split) (default) to output each customer separately, or Single Item (Array) to output the full API response in one item.

Output shape

One or more n8n items containing customer data.

The API request uses GET /api/customer with any supplied options as query parameters. In split mode, each customer is a separate item; if no customers are returned, the node emits one item with Success, TotalCount, an empty Customers array, and _empty: true. In array mode, the single item contains the full API response, including its Customers array and any metadata. Requires Optima REST API credentials.

Links

Discussion