Xentral icon

Xentral

Interact with Xentral ERP API

Actions196

Sales Order → Update Line Item

AI-generated

Summary

Update a specific line item within a sales order by providing the sales order ID, line item ID, and the fields to update for that line item.

Inputs

  • Sales Order ID (required) — The ID of the sales order containing the line item to update.
  • Line Item ID (required) — The ID of the line item within the sales order to update.
  • Update Fields — An object collection of fields to update on the line item, including delivery date, description, discount percentage, external number, visibility on PDF, product name, price amount and currency, product ID, quantity, sort order, and tax legal notice. Only provide fields needing modification.

Output shape

a single record representing the updated line item details or related API response.

The operation updates the specified line item in place and returns the API result for that line item. There is no pagination for this operation.

Examples

Example 1: Update quantity and price of a specific line item in a sales order

Provide the salesOrderId and lineItemId to identify the line item, then set the 'quantity' and 'priceAmount' fields in Update Fields to new values.

Links

Discussion