Skip to main content
Version: 3.x

Stock

Represents stock.

type Stock implements Node {
id: ID!
warehouse: Warehouse!
productVariant: ProductVariant!
quantity: Int!
quantityAllocated: Int!
quantityReserved: Int!
}

Fields

id (ID!)

warehouse (Warehouse!)

productVariant (ProductVariant!)

quantity (Int!)

Quantity of a product in the warehouse's possession, including the allocated stock that is waiting for shipment.

Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS.

quantityAllocated (Int!)

Quantity allocated for orders.

Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS.

quantityReserved (Int!)

Quantity reserved for checkouts.

Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS.

Interfaces

Node

An object with an ID