Determines the stock of an item across all warehouses.
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
The tenant ID for the target ERP instance.
Path Parameters
The ID of the item for which stock is to be determined across all warehouses.
"b45f6432-2462-4c6f-b00f-1d9d01000000"
Response
Success.
An item's stock, aggregated over all warehouses.
The total quantity of an item: its total physical stock over all warehouses, including quantities that are reserved for orders or locked.
The available quantity of an item: the freely disposable quantity over all warehouses. For a plain stock item it consists of physical warehouse stock plus virtual and supplier stock, minus the quantity committed to open sales orders, minus stock locked for availability, plus stock currently being transferred out of a locked warehouse. The item's own buffer is NOT subtracted - subtract StorageConstraints.Buffer (on GET items/{itemId}) yourself if "available minus buffer" is what you need. This value is NOT derivable from TotalQuantity: the two are built from different terms - TotalQuantity excludes virtual stock while this value includes it, and this value additionally adds back stock inbound from a locked warehouse. It can therefore legitimately exceed TotalQuantity, and it may be negative for items that permit overselling. If the item has no stock management (StorageConstraints.IsInventoryManagementActive is false), this value is 0 by definition, regardless of any physical stock present. Parent items derive the value from their children, and the two parent kinds differ. For a bill-of-materials item it is the number of complete kits that can be built: the MINIMUM over its components of (the component's own available quantity minus that COMPONENT's buffer) divided by the quantity the component contributes per kit, rounded down unless the parent item is divisible; a component without stock management counts as unlimited. For a variation-combination parent it is the SUM over its variations, counting only variations that have stock management and a positive available quantity - so a variation without stock management, or with a negative quantity, contributes 0.