Optima REST API icon

Optima REST API

Interact with Comarch Optima ERP via REST API

Document → Create Additional Record

AI-generated

Summary

Create an additional purchase or sales record in Comarch Optima ERP via the REST API by posting the provided structured JSON document data to the appropriate endpoint based on document type.

Inputs

  • Document Type (required) — Select whether the document is a Purchase (expense) or Sale (income) additional record.
  • Margin Procedure — Specify the margin procedure to apply when Document Type is Margin; leave empty for non-margin documents.
  • Document Data (required) — Provide the full additional record details as a JSON object, including payer acronym and item positions as required by the API.

Output shape

a single JSON object representing the created additional record as returned by the Comarch Optima API

The response includes the API's JSON representation of the created additional record. If binary data was passed into the node, it is preserved on the output item.

Examples

Example 1: Create an additional purchase record with provided document data

Set Document Type to 'Purchase', provide margin procedure if applicable, and input document data JSON defining payers and items.

Links

Discussion