Magidoc

Stock
Object

Caution: use freeToAllocateQuantity (FTA) unless you have a good reason to opt for another field. Quantities other than FTA require more expensive calculations, which are reflected in query complexity scores.

Quantities in Stock have the following meaning

Caution: neither stockOffset from ProductVariant, nor threshold from Warehouse are included in the returned freeToAllocate. If your integration requires them for stock calculation, you can fetch these numbers and compare to the returned stock values.

More information

Fields

#

allocatedQuantity

Non-null

Quantity assigned to orders, but not shipped yet.

availableNowQuantity

Non-null

This is the amount of products available to allocate to orders minus the stock that has created demand.

availableQuantity

Non-null

Total stock, which is or will be available: FTA - demand + unlinked incoming quantity.

demandQuantity

Non-null

What is ordered, but not allocated yet, and not linked to a purchase (supplier) order. Usually backorder and/or preorder.

freeToAllocateQuantity

Non-null

Free to allocate (FTA) is the quantity to use in most cases: what is available for purchase and allocation to new orders at the moment. The FTA does not include possible warehouse threshold nor variant's stock offset.

incomingQuantity

Non-null

This field is only populated if you are using the Supplier Module and have purchase orders with products that are not yet delivered.

linkedIncomingQuantity

Non-null

The part of incomingQuantity, which is already linked to orders. It decreases demandQuantity.

onDeliveryQuantity

Non-null

This field is populated if a product is on a purchase order delivery that has not yet been accepted.

physicalQuantity

Non-null

Physical is what is on warehouse shelf, both FTA and already allocated to orders.

productSize

Non-null

unlinkedIncomingQuantity

Non-null

The part of incomingQuantity, which is not linked to orders. It also increases available quantity.

unshippedQuantity

Non-null

The quantity of ordered products, allocated or demand, but not yet shipped.

warehouse

Non-null

Usages

#

References

#