Delete Sales Order Line
BetaDELETE
/v1/sales/sales-orders/{id}/lines/{line_id}This endpoint is idempotent. Learn more
Deletes a sales order line and its pick lines.
A line cannot be removed once it has been packed onto a shipment, or once the order is fulfilled, and removing one from an order that is already completed or has a shipped shipment requires an admin. The remaining lines are renumbered so the sequence stays contiguous, and if this was the last line left to pick, the order's pick is deleted and the order falls back to estimate with its reserved inventory released.
Permissions requiredValues:customers:updatesuppliers:updatesales_orders:update
The role behind your API key or agent must grant every one of these permissions.
idstringSales order ID.
line_idstringSales order line ID.
Responses
200
Successful response for Delete Sales Order Line