Book a product on an order
booqable_book_productAdd a quantity of a product to an order, allocating inventory (creates a planning and a line). By default adds to an existing planning for the same product if there is one. Booqable: POST /api/4/order_fulfillments with a book_product action.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | infer_planning (default): reuse the product's planning if any; create_new: always a new line; update_existing: add to planning_id. | |
| order_id | Yes | The order id (UUID). | |
| quantity | Yes | Units to book. | |
| product_id | Yes | The product id (UUID). | |
| planning_id | No | Required when mode is update_existing. | |
| confirm_shortage | No | true to accept a shortage warning when booking on a reserved or started order. |