Skip to main content
Important

This feature is currently in Early Availability (EA) status. For more information, see GraphQL API policy.

Inventory queries

The GraphQL API offers two queries for reading an Inventory:

  • inventory—Retrieves a specific product inventory by inventory ID.

  • inventoryByEditionCode—Retrieves a specific product inventory by edition code and vendor ID.

Each of these queries returns the specified Inventory.

The GraphQL API also offers an inventoryRulesConfiguration query that returns the rules that specify how Inventory results are to be used in the marketplace. It returns two boolean values:

  • shouldDisplayStockCount—Whether the stock count returned for an inventory can be displayed on the marketplace.

  • shouldValidateInventory—Whether the stock count should affect the checkout process.

Was this page helpful?