Skip to main content

Create PO Line Reservations

POST 

/api/v2/purchase-order-lines/:purchaseOrderLine/reservations

Reserve part of this purchase order line for one or more sales order lines. All or nothing: if one entry does not fit, nothing is reserved and the error names the entry (reservations.<index>.<field>).

Required scope: purchase-orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Fields:

  • reservations (array, required, 1–100)
  • reservations.*.sales_order_line_id (integer, required, distinct) — an open sales order line for the same product, shipping from the line's receiving warehouse
  • reservations.*.quantity (number > 0, required) — at most the line's free_to_reserve, and at most what the order line still needs
  • reservations.*.include_on_hand (boolean, optional, default false) — also take units the order already holds on the shelf; those units go back on sale for the next orders in line

The purchase order must be submitted (not draft), open, not dropship, with unreceived quantity on the line.

Scope: purchase-orders:write. Permissions: purchase_orders.update and sales_orders.update (403 without either).

Request​

Responses​

Created

Response Headers
    Content-Type