--- title: Shop API description: The API for interacting with shop. api_version: 2025-07 api_name: checkout-ui-extensions source_url: html: >- https://shopify.dev/docs/api/checkout-ui-extensions/2025-07/target-apis/platform-apis/shop-api md: >- https://shopify.dev/docs/api/checkout-ui-extensions/2025-07/target-apis/platform-apis/shop-api.md --- Migrate to Polaris Version 2025-07 is the last API version to support React-based UI components. Later versions use [web components](https://shopify.dev/docs/api/checkout-ui-extensions/latest/polaris-web-components), native UI elements with built-in accessibility, better performance, and consistent styling with [Shopify's design system](https://shopify.dev/docs/apps/design). Check out the [migration guide](https://shopify.dev/docs/api/checkout-ui-extensions/2026-04/upgrading-to-2026-04) to upgrade your extension. # Shop API The API for interacting with shop. ## StandardApi The base API object provided to `purchase` extension targets. * **shop** **Shop** **required** The shop where the checkout is taking place. ### Shop * id The shop ID. ```ts string ``` * myshopifyDomain The shop's myshopify.com domain. ```ts string ``` * name The name of the shop. ```ts string ``` * storefrontUrl The primary storefront URL. > Caution: > As of version \`2024-04\` this value will no longer have a trailing slash. ```ts string ``` ## use​Shop() Returns the `shop` where the checkout is taking place. ### Returns * **Shop** ### ### Shop * **id** **string** The shop ID. * **myshopifyDomain** **string** The shop's myshopify.com domain. * **name** **string** The name of the shop. * **storefrontUrl** **string** The primary storefront URL. **Caution:** \> As of version \2024-04\ this value will no longer have a trailing slash. ## Related [Reference - Targets](https://shopify.dev/docs/api/checkout-ui-extensions/targets) [Reference - Components](https://shopify.dev/docs/api/checkout-ui-extensions/components) [Reference - Configuration](https://shopify.dev/docs/api/checkout-ui-extensions/configuration) [Learn - Tutorials](https://shopify.dev/apps/checkout)