Skip to main content
Migrate to Polaris

Version 2025-07 is the last API version to support React-based UI components. Later versions use web components, native UI elements with built-in accessibility, better performance, and consistent styling with Shopify's design system. Check out the migration guide to upgrade your extension.

Product API

The Product API provides read-only access to product data. Use this API to get product information and build contextual experiences based on the selected product context. The API offers product details for implementing product-specific functionality and workflows.

  • Product access: Access the product identifier for product-specific functionality.
  • Product extensions: Build extensions displaying product information or inventory tools.
  • Contextual UI: Create interfaces adapting based on current product context.
  • External integrations: Link product data with external inventory management platforms.

The Product API object provides access to product data. Access the following properties on the API object to get the product identifier and variant identifier for implementing product-specific functionality.

number
required

The unique identifier for the product. Use for product lookups, implementing product-specific functionality, and integrating with external systems.

Anchor to variantId
variantId
number
required

The unique identifier for the product variant. Use for variant-specific operations, cart additions, and inventory management.


  • Implement variant-specific features: Use the variant ID to enable specialized functionality like variant-specific pricing, inventory checks, or cart operations.
  • Validate product access: Verify that the product ID and variant ID are valid before performing product-specific operations or external API calls.

  • The API provides only basic product identifiers—use Shopify APIs or external systems to fetch additional product details like title, description, pricing, or inventory levels.
  • Product data reflects the current POS session and may not include real-time updates from other channels until the session is refreshed.

Was this page helpful?