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.

Permissions requiredValues:customers:updatesuppliers:updatesales_orders:update
The role behind your API key or agent must grant every one of these permissions.
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