Delete Sales Order Line

Beta
DELETE/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.
idstring

Sales order ID.

line_idstring

Sales order line ID.

Responses

200

Successful response for Delete Sales Order Line