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.
Customer API
The Customer API provides read-only access to customer data. Use this API to get customer information and build personalized experiences based on the selected customer context. The API offers the customer identifier for linking to customer data and enabling customer-specific features.
Anchor to Use casesUse cases
- Customer access: Access the customer identifier to implement customer-specific functionality.
- Customer extensions: Build extensions displaying customer information or loyalty program details.
- Contextual UI: Create contextual interfaces adapting based on current customer context.
- External integrations: Link customer data with external CRM (Customer Relationship Management) platforms or third-party integrations.
Anchor to PropertiesProperties
The Customer API object provides access to customer data. Access the following properties on the API object to get the customer identifier for building personalized experiences.
- Anchor to idididnumbernumberrequiredrequired
The unique identifier for the customer. Use for customer lookups, applying customer-specific pricing, enabling personalized features, and integrating with external systems.
Anchor to Best practicesBest practices
- Implement customer-specific features: Use the customer context to enable personalized functionality like customer-specific pricing, loyalty program integration, or customized product recommendations.
- Validate customer access: Verify that the customer ID is valid before performing customer-specific operations or external API calls.
Anchor to LimitationsLimitations
- The API provides only the customer identifier—use Shopify APIs or external systems to fetch additional customer details like name, email, or purchase history.
- Customer data reflects the current POS session and may not include real-time updates from other channels until the session is refreshed.