Skip to main content
The Real-Time Inventory Service APIs provide accurate and real-time inventory visibility to your site. These APIs give information such as Get Group Site Availability, Get Product Site Availability, Get Product Availability at Locations, and Get Group Product Availability at Location. This service is enabled by default for all implementations to support retrieving inventory levels.

Inventory Concepts

Learn about inventory management fundamentals

Developer Reference

See the Inventory API documentation for programmatic access
Refer to the Real-time Inventory Service for more information. For more general details about using the Inventory APIs, including best practices, see the Inventory API Overview.

GraphQL Queries

GraphQL queries should be made as a POST call to this endpoint:
The RIS GraphQL queries are externally available and Order Management clients can take advantage of them to drive their storefront experience. You can directly call the RIS queries for your Product Listing Pages or Product Details Pages pages. The request body varies depending on the specific query, as shown in the following sections.

Get Inventory API

The Get Inventory API call also provides RIS data using the endpoint .../api/commerce/realtime-inventory/v5/inventory. This is the same POST request as the standard GET Inventory call, but provides real-time inventory levels and additional fields for the inventory segmentation and accurate fulfillment date features.

Example API Response

The following are multiple Inventory APIs. You can either run using REST or GraphQL queries.

Get Group Site Availability

This query gets the product availability across the site for multiple product codes.

GraphQL Request Body

The includeNegativeInventory field defaults to false.

Example GraphQL Response

REST API Endpoint

The following are headers for API operation.

Example API Request

Example API Response

Get Product Site Availability

This query gets the product availability across the site for a particular product code.

GraphQL Request Body

The includeNegativeInventory field defaults to false.

Example GraphQL Response

REST API Endpoint

Example API Response

Get Product Availability at Locations

This query gets the availability for a product across multiple location codes.

GraphQL Request Body

Example GraphQL Response

REST API Endpoint

The following are headers for API operation.

Example API Response

Get Group Availability at Locations

This query gets the availability for multiple product codes or variants across multiple location codes.

GraphQL Request Body

Example GraphQL Response

REST API Endpoint

The following are headers for API operation.

Example API Request

Example API Response

Get Group Available Locations

This query gets the locations of available inventory for specific fulfillment types. Use the following productSearchType values to further fine-tune your search results as needed.
  • ALL: Only returns locations that have all of the quantity available for all of the products in the request.
  • PARTIAL: Only returns locations that have all of the quantity available for at least one of the products in the request, and only those products.
  • ANY: Returns locations that have any quantity available for any of the products in the request.
  • ALL_STORES: All stores that are part of the location network will be returned even if they have no inventory for the specified product.

GraphQL Request Body

This example queries for specific product inventory being fulfilled via pickup or direct ship.

Example GraphQL Response

REST API Endpoint

The following are headers for API operation.

Example API Request

Example API Response

Get Group Available Pickup Locations

This query gets the pickup locations of available inventory for only returns pickup locations. This supports ANY query which is a union across multiple locations. It also supports an ALL which is the intersection across multiple locations.

GraphQL Request Body

Example GraphQL Response