For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dev Portal
DocsAPI ReferenceLearnCommunityChangelog
DocsAPI ReferenceLearnCommunityChangelog
    • About Our APIs
  • REST
    • Overview
  • GraphQL
    • Overview
      • Playground
          • QUERYcompanyRoles
          • QUERYcompanyRole
          • QUERYcompanyPermissions
          • QUERYaccountSettings
          • QUERYcustomerAccountSettings
          • QUERYinvoices
          • QUERYinvoice
          • QUERYinvoiceStats
          • QUERYinvoiceCustomerInformation
          • QUERYinvoicePaymentModules
          • QUERYinvoiceBcOrderAllowMethods
          • QUERYinvoicePaymentBcCart
          • QUERYinvoicePaymentFees
          • QUERYreceipts
          • QUERYreceipt
          • QUERYallReceiptLines
          • QUERYreceiptLine
          • QUERYreceiptLines
          • QUERYorder
          • QUERYallOrders
          • QUERYorderProducts
          • QUERYorderedProducts
          • QUERYcustomerOrders
          • QUERYcustomerOrder
          • QUERYcreatedByUser
          • QUERYshoppingLists
          • QUERYshoppingList
          • QUERYshoppingListsIdName
          • QUERYcustomerShoppingLists
          • QUERYcustomerShoppingList
          • QUERYcustomerShoppingListsIdName
          • QUERYcompanyExtraFields
          • QUERYuserCompany
          • QUERYcompanyValidateEmail
          • QUERYcompanyUserInfo
          • QUERYaccountFormFields
          • QUERYcompanyCreditConfig
          • QUERYcompanyPaymentTerms
          • QUERYcompanySubsidiaries
          • QUERYsuperAdminCompanies
          • QUERYsuperAdminMasquerading
          • QUERYquotes
          • QUERYcustomerQuotes
          • QUERYquote
          • QUERYquoteUserStoreInfo
          • QUERYquoteConfig
          • QUERYquoteExtraFieldsConfig
          • QUERYusers
          • QUERYuser
          • QUERYuserEmailCheck
          • QUERYcustomerEmailCheck
          • QUERYuserExtraFields
          • QUERYcurrentUser
          • QUERYcustomerInfo
          • QUERYuserLoginState
          • QUERYuserMasqueradingCompany
          • QUERYorderStatuses
          • QUERYbcOrderStatuses
          • QUERYcurrencies
          • QUERYautoLoader
          • QUERYstoreLimitations
          • QUERYstoreBasicInfo
          • QUERYstorefrontScript
          • QUERYstorefrontDefaultLanguage
          • QUERYstorefrontProductSettings
          • QUERYstorefrontSettings
          • QUERYstoreConfigSwitchStatus
          • QUERYstoreCheckoutConfig
          • QUERYstorefrontConfig
          • QUERYstorefrontConfigs
          • QUERYproductVariantsInfo
          • QUERYvariantSku
          • QUERYproductsInventory
          • QUERYproductsLoad
          • QUERYproductsSearch
          • QUERYtaxZoneRates
          • QUERYproductPurchasable
          • QUERYvalidateProduct
          • QUERYvalidateProducts
          • QUERYpriceProducts
          • QUERYaddresses
          • QUERYaddress
          • QUERYcountries
          • QUERYdefaultShippingAddress
          • QUERYdefaultBillingAddress
          • QUERYcustomerAddresses
          • QUERYcustomerAddress
          • QUERYaddressConfig
          • QUERYaddressExtraFields
  • MCP
    • Overview
Dev Portal
LogoLogo
GraphQLB2BQueries

productsInventory

Example Query
1query ExampleQuery($products: [ProductInventoryInputType]) {
2 productsInventory(products: $products) {
3 productId
4 variantId
5 quantity
6 modifiers
7 productInventoryTracking
8 productInventoryLevel
9 productInventoryWarningLevel
10 variantInventoryLevel
11 variantInventoryWarningLevel
12 purchasingDisabled
13 }
14}
Variables
1{
2 "products": [
3 {
4 "productId": 0,
5 "variantId": 0,
6 "quantity": 0
7 }
8 ]
9}
Example response
1{
2 "data": {
3 "productsInventory": [
4 {
5 "productId": 0,
6 "variantId": 0,
7 "quantity": 0,
8 "modifiers": [
9 "GenericScalar"
10 ],
11 "productInventoryTracking": "example",
12 "productInventoryLevel": 0,
13 "productInventoryWarningLevel": 0,
14 "variantInventoryLevel": 0,
15 "variantInventoryWarningLevel": 0,
16 "purchasingDisabled": true
17 }
18 ]
19 }
20}
Inventory information for a product. Requires a B2B Token.
Was this page helpful?
Previous

variantSku

Next

productsLoad

Built with

Arguments

productslist of optional ProductInventoryInputTypeRequired
A list of products. This field is required, but may be an empty list.

Returns

an optional list of optional ProductInventoryType
productIdInteger
The id of product
variantIdInteger
The variant id of product
quantityInteger
If can be purchased
modifierslist of optional GenericScalar
The modifiers sku of product
productInventoryTrackingString
The inventory tracking of product
productInventoryLevelInteger
The inventory level of product
productInventoryWarningLevelInteger
The inventory warning level of product
variantInventoryLevelInteger
The inventory level of product variant
variantInventoryWarningLevelInteger
The inventory warning level of product variant
purchasingDisabledBoolean
If can be purchased
isVisibleBoolean
if product is visible