Skip to main content

Create PO Line Channel Reservations

POST 

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

Reserve part of an incoming purchase order line for one or more sales channels. All or nothing: if one entry does not fit, nothing is reserved and the error names the entry (reservations.<index>.<field>). Reserving again for the same channel and draw order adds to its open reservation.

Required scope: purchase-orders:write

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

When the line is received at its warehouse, reserved units move onto a stock hold only that channel can sell from, before any backorder is filled. The channel's own waiting backorders are then filled from that hold. On a partial receipt, sales orders reserved on the line are filled first, then channels in the order they were reserved. A reservation ends if the purchase order is closed, cancelled, voided, returned to draft or moved to another warehouse, or if the line is deleted or can no longer deliver the units.

Fields:

  • reservations (array, required, 1–50)
  • reservations.*.sales_channel_id (integer, required, distinct)
  • reservations.*.quantity (number > 0, required): at most the line's free_to_reserve
  • reservations.*.channel_draw_order (string, optional, default reserve_first): reserve_first (the channel's orders use the hold before free stock) or free_first

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

Request​

Responses​

Created

Response Headers
    Content-Type