Skip to main content

StockMovement

A StockMovement is created whenever stock of a particular ProductVariant goes in or out.

Signature

type

propertyStockMovementType

productVariant

stockLocation

stockLocationId

propertyID

quantity

propertynumber

customFields

propertyCustomStockMovementFields

An Allocation is created for each ProductVariant in an Order when the checkout is completed (as configured by the StockAllocationStrategy. This prevents stock being sold twice.

Signature

type

property

constructor

method(input: DeepPartial<Allocation>) => Allocation

orderLine

propertyOrderLine

A Cancellation is created when OrderItems from a fulfilled Order are cancelled.

Signature

type

property

constructor

method(input: DeepPartial<Cancellation>) => Cancellation

orderLine

propertyOrderLine

A Release is created when OrderItems which have been allocated (but not yet fulfilled) are cancelled.

Signature

type

property

constructor

method(input: DeepPartial<Release>) => Release

orderLine

propertyOrderLine

A Sale is created when OrderItems are fulfilled.

Signature

type

property

constructor

method(input: DeepPartial<Sale>) => Sale

orderLine

propertyOrderLine

A StockAdjustment is created when the stockOnHand level of a ProductVariant is manually adjusted.

Signature

type

property

constructor

method(input: DeepPartial<StockAdjustment>) => StockAdjustment
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page