Actions26
- Sales Order Actions
- Invoice Actions
- Customer Actions
- Product Actions
Sales Order → Update
AI-generatedSummary
Updates an existing sales order in Unleashed with details, line items, and delivery information.
Inputs
- salesOrderGuid (required) — The GUID of the sales order to update.
- salesOrderDetails — A collection of fields to update, including delivery address, currency, tax, payment terms, and order metadata. Only fields present in this collection are sent to the API.
- lineItemsMode — Determines how line items are supplied: 'manual' (UI inputs) or '' (Expression/JSON array). Defaults to manual.
- lineItemsJson — A JSON array or string defining line items (productCode, quantity, unitPrice, etc.). Required when lineItemsMode is ''.
- salesOrderLineItems — A fixed collection of line items to update. Required when lineItemsMode is 'manual'.
Output shape
a single record
Returns the updated Sales Order object from Unleashed, containing all order details and line items.
Examples
Example 1: Update the delivery address and discount rate for an existing order
Set salesOrderGuid to the target order; add deliveryCity, deliveryCountry, deliveryStreetAddress to salesOrderDetails; set discountRate to 10.
Example 2: Update line items using JSON input
Set lineItemsMode to ''; provide lineItemsJson as an array of product codes and quantities.