Skip to content
← Back to Index

Command: sku.reserve

Reserve 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
orderIduuid 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.
orderLineIduuid 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.
inventoryKeystring The key of the inventory to reserve against.
quantitynumber The number of units to reserve. Must be greater than zero.
inventoryDateany value (optional) Optional date/time when the reserved stock should be available if the stock is not needed immediately.
stockAllocationsarray of string (optional) Optional list of allocations to use for the reservation.
prioritynumber (optional) Higher priority means that the reservation will have higher priority if there's not enough stock. Default is 0.

© 2024 Hantera AB. All rights reserved.