Optima REST API icon

Optima REST API

Interact with Comarch Optima ERP via REST API

Product → Get

AI-generated

Summary

Retrieves products from the Optima REST API, optionally filtering by product ID or a SQL-like expression and limiting the results for pagination. Returns products as separate n8n items by default, or keeps the complete API response in one item when Array output mode is selected.

Inputs

  • ID — Product ID to request; sent as the Id query parameter when nonzero.
  • Filter — SQL-like filter expression, sent as the Filter query parameter when nonempty. For example, Twr_Kod='PROD01'.
  • Skip — Number of records to skip; sent as Skip when nonzero. Defaults to 0.
  • Take — Maximum number of records to return; sent as Take when nonzero. Defaults to 100.
  • Output Mode — Choose Multiple Items (Split), the default, to return each product as its own item, or Single Item (Array) to return the complete API response, including its metadata, in one item.

Output shape

One or more n8n items containing product data, or one item containing the complete API response.

The node makes an authenticated GET request to /api/product with the configured query parameters. In Split mode, each product is returned as an item; if the API returns an empty Products array, this branch returns no items. Array mode returns the complete response object, which the source identifies as containing Products and potentially Success and TotalCount. When processing incoming items, it makes a request for each input item.

Links

Discussion