Command: sku.setAllocation
Back to IndexCreates or updates a stock allocation of SKU for a given inventory.
Body
reference | string The reference to identify the allocation by. If already existing, it will be overwritten. The same reference can be reused over different stock positions. |
inventoryKey | string The key of the inventory the allocation concern. |
quantity | number The number of units to allocate. Can exceed total available stock. |
from | any value (optional) If set, allocation only affect reservations with inventory date from this date. |
until | any value (optional) If set, allocation only affect reservations with inventory date before this date. |