Skip to main content

Cancel Line Quantity

POST 

/api/sales-order-lines/:salesOrderLine/cancel-quantity

Cancel part (or all) of a sales order line's remaining quantity without changing the ordered quantity — the line keeps its original quantity as a permanent record and canceled_quantity rises, so the net quantity to fulfill drops. Cancelling everything nets the line to zero: allocations are released, backorder demand clears, and any open (not yet submitted) fulfillment orders shrink to match.

Units already shipped, externally fulfilled, committed to a live fulfillment (submitted / picked / packed, a staged pickup, or an order already handed to a shipping provider), or already cancelled cannot be cancelled — cancel or void that fulfillment first. Exceeding the cancellable quantity returns 409.

Body fields:

  • quantity (required, integer, min 1) — units to cancel.
  • reason (optional, string, max 1000) — recorded on the order's notes for the audit trail.

Returns the refreshed sales order.

Request

Responses

OK

Response Headers
    Content-Type