Skip to content

Rule Effect

skuCommand

Back to Index

Return this effect to apply a sku command from hooks that supports it.

Type

{
effect: 'skuCommand'
type: text // Command type
// Additional command properties are added here
}

Sku Commands

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.

setAllocation

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

setDynamicFields

Sets dynamic fields of a sku. Non specified fields will be left unchanged. Set value to null to remove field.

setIncomingStock

Creates or updates incoming stock of SKU for a given inventory. Reference can be used to map incoming stock to an external entity.

setPhysicalStock

Sets the physical stock quantity of SKU for a given inventory. If there is no existing StockPosition for the SKU/inventory it will be created.

unreserve

Removes any reservation or back order of the specified order line

Back to Index