Reorder Sales Order Lines

Beta
POST/v1/sales/sales-orders/{id}/lines/actions/reorder

Idempotent with Idempotency-Key header. Learn more

Reorders the product lines on a sales order to match the sequence supplied.

The lines are renumbered from 1 in the given order. Discount and freight lines always stay at the bottom of the list regardless of the sequence given here.

Permission requiredValues:sales_orders:update
In your own account, the role behind your API key or agent must grant this permission.
In a customer's accountValues:customers:update
When the OpenMRP-Account header names one of your customers, the role must grant this permission instead.
In a supplier's accountValues:suppliers:update
When the OpenMRP-Account header names one of your suppliers, the role must grant this permission instead.
idstring

Sales order ID.

line_idsarray of string

The order's product-line IDs in the desired display order.

Every product line on the order must be listed exactly once. The automatically generated discount and freight lines are kept at the bottom of the list and must not be included.

Responses

200

Successful response for Reorder Sales Order Lines