Skip to content

Command: sku.setAllocation

Back to Index

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.

Back to Index