--- title: Shop API description: The API for interacting with shop. api_version: 2026-04 api_name: checkout-ui-extensions source_url: html: https://shopify.dev/docs/api/checkout-ui-extensions/2026-04-rc/target-apis/platform-apis/shop-api md: https://shopify.dev/docs/api/checkout-ui-extensions/2026-04-rc/target-apis/platform-apis/shop-api.md --- # 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)