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.
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.
Anchor to Use casesUse cases
- 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.
Supported targets
- customer-account.
order-status. announcement. render - customer-account.
order-status. block. render - customer-account.
order-status. cart-line-item. render-after - customer-account.
order-status. cart-line-list. render-after - customer-account.
order-status. customer-information. render-after - customer-account.
order-status. fulfillment-details. render-after - customer-account.
order-status. payment-details. render-after - customer-account.
order-status. return-details. render-after - customer-account.
order-status. unfulfilled-items. render-after - customer-account.
order. page. render
Supported targets
- customer-account.
order-status. announcement. render - customer-account.
order-status. block. render - customer-account.
order-status. cart-line-item. render-after - customer-account.
order-status. cart-line-list. render-after - customer-account.
order-status. customer-information. render-after - customer-account.
order-status. fulfillment-details. render-after - customer-account.
order-status. payment-details. render-after - customer-account.
order-status. return-details. render-after - customer-account.
order-status. unfulfilled-items. render-after - customer-account.
order. page. render
Anchor to PropertiesProperties
The Shop API object provides information about the shop. Access the following properties on the API object to read shop data.
- Anchor to shopshopshopShopShoprequiredrequired
The shop where the order was placed, including its name, ID, storefront URL, and
myshopify.comdomain.
Shop
- id
A globally-unique identifier for the shop.
string - myshopifyDomain
The shop's `myshopify.com` domain. This is a stable identifier that doesn't change when the merchant updates their custom domain.
string - name
The merchant's store name as configured in the Shopify admin.
string - storefrontUrl
The primary storefront URL for the shop. This reflects the merchant's custom domain if one is configured.
string
Anchor to Best practicesBest practices
- Use
myshopifyDomainfor stable identification: ThemyshopifyDomaindoesn't change when the merchant updates their custom domain. Use it for API calls or stable references. - Check for
storefrontUrl: ThestorefrontUrlis optional and reflects the merchant's custom domain. Fall back tomyshopifyDomainwhen building links if it'sundefined.
Anchor to LimitationsLimitations
- 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.