Command: sku.reserve
Back to IndexReserve stock. If not enough stock is available, a back order will automatically be created and it will be fulfilled once enough stock is available.
Body
orderId | uuid The order containing the order line to create reservation for. Value is not validated, but if it’s not correct, reservations will not be recorded on the related order line. |
orderLineId | uuid The order line to create reservation for. If a reservation already exists, it will be updated. Any reserved quantity will be kept if the quantity is increased. |
inventoryKey | string The key of the inventory to reserve against. |
quantity | number The number of units to reserve. Must be greater than zero. |
inventoryDate | any value (optional) Optional date/time when the reserved stock should be available if the stock is not needed immediately. |
stockAllocations | array of string (optional) Optional list of allocations to use for the reservation. |
priority | number (optional) Higher priority means that the reservation will have higher priority if there’s not enough stock. Default is 0. |