Skip to main content
Upgrade to Polaris

Version 2025-07 is the last API version to support React-based UI components. Later versions use Polaris web components, native UI elements with built-in accessibility, better performance, and consistent styling with Shopify's design system. Check out the upgrade guide to upgrade your extension and avoid being blocked from updating your extension after October 1st 2026.

Shop API

The Shop API provides information about the store where the order was placed, including its name, ID, storefront URL, and myshopify.com domain. Use it to display shop details or build links back to the storefront from the Order status page.

  • Link to the storefront: Create links back to the merchant's online store from your extension.
  • Identify the shop: Use the shop's permanent domain as a stable identifier when communicating with your backend service.
  • Display the shop name: Show the shop name in your extension's UI for context.

The Shop API object provides information about the shop. Access the following properties on the API object to read shop data.

required

The shop where the order was placed, including its name, ID, storefront URL, and myshopify.com domain.


  • Use myshopifyDomain for stable identification: The myshopifyDomain doesn't change when the merchant updates their custom domain. Use it for API calls or stable references.
  • Check for storefrontUrl: The storefrontUrl is optional and reflects the merchant's custom domain. Fall back to myshopifyDomain when building links if it's undefined.

  • The Shop API provides only basic shop identification. For detailed shop settings such as currency, timezone, or plan information, use the GraphQL Admin API through a backend service.

Was this page helpful?