Skip to content
← Back to Index

Command: sku.setAllocation

Creates or updates a stock allocation of SKU for a given inventory.

Body
referencestring The reference to identify the allocation by. If already existing, it will be overwritten. The same reference can be reused over different stock positions.
inventoryKeystring The key of the inventory the allocation concern.
quantitynumber The number of units to allocate. Can exceed total available stock.
fromany value (optional) If set, allocation only affect reservations with inventory date from this date.
untilany value (optional) If set, allocation only affect reservations with inventory date before this date.

© 2024 Hantera AB. All rights reserved.