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.
Anchor to Use casesUse cases
- 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.
Anchor to PropertiesProperties
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.
- Anchor to idididnumbernumberrequiredrequired
The unique identifier for the product. Use for product lookups, implementing product-specific functionality, and integrating with external systems.
- Anchor to variantIdvariantIdvariantIdnumbernumberrequiredrequired
The unique identifier for the product variant. Use for variant-specific operations, cart additions, and inventory management.
Anchor to Best practicesBest practices
- 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.
Anchor to LimitationsLimitations
- 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.