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.
purchase-orders:writeGrant 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'sfree_to_reservereservations.*.channel_draw_order(string, optional, defaultreserve_first):reserve_first(the channel's orders use the hold before free stock) orfree_first
Scope: purchase-orders:write. Permissions: purchase_orders.update and sales_orders.update (403 without either).
Request
Responses
- 201
- 401
- 403
- 404
- 422
- 429
Created
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden
Response Headers
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.