Unleashed icon

Unleashed

Interact with Unleashed inventory management API

Sales Order → Create

AI-generated

Summary

Creates a new sales order in the Unleashed API with customer code, order details, and line items.

Inputs

  • customerCode (required) — The customer code for the sales order.
  • salesOrderDetails — Collection of order-level fields including currency code, delivery address, payment terms, and tax settings.
  • lineItemsMode — Selects input method: Manual (UI form) or Expression/JSON for dynamic arrays.
  • salesOrderLineItems — Collection of line items when using Manual mode. Required fields: productCode, quantity.
  • lineItemsJson — JSON array of line items when using Expression/JSON mode. Required keys: productCode, quantity.

Output shape

A single record containing the created sales order data.

The returned item contains the order number and status.

Examples

Example 1: Create a standard sales order with manual line items.

Set customerCode to a known customer ID, fill in delivery and payment details in the Sales Order Details collection, and add line items via the Sales Order Line Items collection.

Example 2: Create a sales order using a dynamic array of items from previous nodes.

Set lineItemsMode to 'Expression / JSON' and reference the output of a previous node (e.g., ={{ $.items }}) in the Line Items (JSON or Array) field.

Links

Discussion