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.
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.
idstringSales order ID.
line_idstringSales order line ID.
Responses
200
Successful response for Delete Sales Order Line