The API for interacting with shop.
The API object provided to this and other `customer-account.order-status` extension targets.
Shop where the purchase took place.
The shop ID.
The shop's myshopify.com domain.
The name of the shop.
The primary storefront URL. > Caution: As of version `2024-10` this value will no longer have a trailing slash.
Returns the `shop` where the checkout is taking place.
Returns the `Shop` where the checkout is taking place.
export function useShop< Target extends RenderOrderStatusExtensionTarget = RenderOrderStatusExtensionTarget, >(): Shop { const api = useApi<Target>(); const extensionTarget = api.extension.target; if (!('shop' in api)) { throw new ExtensionHasNoFieldError('shop', extensionTarget); } return api.shop; }
The shop ID.
The shop's myshopify.com domain.
The name of the shop.
The primary storefront URL. > Caution: As of version `2024-10` this value will no longer have a trailing slash.