Extension
The API for interacting with the metadata of an extension.
Anchor to standardapiStandardApi
The base API object provided to this and other customer-account extension targets.
- Anchor to extensionextensionextensionExtensionExtensionrequiredrequired
Meta information about the extension.
Extension
Meta information about an extension target.
- apiVersion
The API version that was set in the extension config file.
ApiVersion - capabilities
The allowed capabilities of the extension, defined in your [shopify.ui.extension.toml](/docs/api/checkout-ui-extensions/configuration) file. * [`api_access`](/docs/api/checkout-ui-extensions/configuration#api-access): the extension can access the Storefront API. * [`network_access`](/docs/api/checkout-ui-extensions/configuration#network-access): the extension can make external network calls. * [`block_progress`](/docs/api/checkout-ui-extensions/configuration#block-progress): the extension can block a buyer's progress and the merchant has allowed this blocking behavior.
StatefulRemoteSubscribable<Capability[]> - editor
Information about the editor where the extension is being rendered. The value is undefined if the extension is not rendering in an editor.
Editor - rendered
Whether your extension is currently rendered to the screen. Shopify might render your extension before it's visible in the UI, typically to pre-render extensions that will appear on a later step of the checkout. Your extension might also continue to run after the buyer has navigated away from where it was rendered. The extension continues running so that your extension is immediately available to render if the buyer navigates back.
StatefulRemoteSubscribable<boolean> - scriptUrl
The URL to the script that started the extension target.
string - target
The identifier that specifies where in Shopify’s UI your code is being injected. This will be one of the targets you have included in your extension’s configuration file.
Target - version
The published version of the running extension target. For unpublished extensions, the value is `undefined`.
string
ApiVersion
The supported GraphQL Admin API versions. Use this to specify which API version your GraphQL queries should execute against. Each version includes specific features, bug fixes, and breaking changes. The `unstable` version provides access to the latest features, and can change without notice because it's not subject to versioning guarantees.
'2023-04' | '2023-07' | '2023-10' | '2024-01' | '2024-04' | '2024-07' | '2024-10' | 'unstable'Capability
Capabilities that extensions can request access to in their configuration. Each capability grants specific permissions for interacting with Shopify APIs, external services, or buyer data. Declare required capabilities in your extension's configuration file to enable these features. * [`api_access`](/docs/api/checkout-ui-extensions/configuration#api-access): Grants access to query the Storefront API for product, cart, and shop data. * [`network_access`](/docs/api/checkout-ui-extensions/configuration#network-access): Allows making external network calls to third-party APIs and services. * [`block_progress`](/docs/api/checkout-ui-extensions/configuration#block-progress): Enables blocking buyer checkout progress based on validation rules (requires merchant approval). * [`collect_buyer_consent.sms_marketing`](/docs/api/checkout-ui-extensions/configuration#collect-buyer-consent): Allows collecting buyer consent for SMS marketing communications. * [`collect_buyer_consent.customer_privacy`](/docs/api/checkout-ui-extensions/configuration#collect-buyer-consent): Allows registering buyer privacy consent decisions honored across Shopify services. * `iframe.sources`: Permits embedding external URLs in iframes within the extension.
'api_access' | 'network_access' | 'block_progress' | 'collect_buyer_consent.sms_marketing' | 'collect_buyer_consent.customer_privacy' | 'iframe.sources'Editor
- type
Indicates whether the extension is rendering in the checkout editor.
"checkout"
Anchor to useExtensionuse Extension()
Returns the metadata of the extension.
- apiVersionapiVersionApiVersionApiVersion
The API version that was set in the extension config file.
- capabilitiescapabilitiesStatefulRemoteSubscribable<Capability[]>StatefulRemoteSubscribable<Capability[]>
The allowed capabilities of the extension, defined in your shopify.ui.extension.toml file.
- renderedrenderedStatefulRemoteSubscribable<boolean>StatefulRemoteSubscribable<boolean>
Whether your extension is currently rendered to the screen.
Shopify might render your extension before it's visible in the UI, typically to pre-render extensions that will appear on a later step of the checkout.
Your extension might also continue to run after the buyer has navigated away from where it was rendered. The extension continues running so that your extension is immediately available to render if the buyer navigates back.
- scriptUrlscriptUrlstringstring
The URL to the script that started the extension target.
- targettargetTargetTarget
The identifier that specifies where in Shopify’s UI your code is being injected. This will be one of the targets you have included in your extension’s configuration file.
- editoreditorEditorEditor
Information about the editor where the extension is being rendered.
The value is undefined if the extension is not rendering in an editor.
- versionversionstringstring
The published version of the running extension target.
For unpublished extensions, the value is
undefined.
Extension
Meta information about an extension target.
Extension
Meta information about an extension target.
- apiVersion
The API version that was set in the extension config file.
ApiVersion - capabilities
The allowed capabilities of the extension, defined in your [shopify.ui.extension.toml](/docs/api/checkout-ui-extensions/configuration) file. * [`api_access`](/docs/api/checkout-ui-extensions/configuration#api-access): the extension can access the Storefront API. * [`network_access`](/docs/api/checkout-ui-extensions/configuration#network-access): the extension can make external network calls. * [`block_progress`](/docs/api/checkout-ui-extensions/configuration#block-progress): the extension can block a buyer's progress and the merchant has allowed this blocking behavior.
StatefulRemoteSubscribable<Capability[]> - editor
Information about the editor where the extension is being rendered. The value is undefined if the extension is not rendering in an editor.
Editor - rendered
Whether your extension is currently rendered to the screen. Shopify might render your extension before it's visible in the UI, typically to pre-render extensions that will appear on a later step of the checkout. Your extension might also continue to run after the buyer has navigated away from where it was rendered. The extension continues running so that your extension is immediately available to render if the buyer navigates back.
StatefulRemoteSubscribable<boolean> - scriptUrl
The URL to the script that started the extension target.
string - target
The identifier that specifies where in Shopify’s UI your code is being injected. This will be one of the targets you have included in your extension’s configuration file.
Target - version
The published version of the running extension target. For unpublished extensions, the value is `undefined`.
string
ApiVersion
The supported GraphQL Admin API versions. Use this to specify which API version your GraphQL queries should execute against. Each version includes specific features, bug fixes, and breaking changes. The `unstable` version provides access to the latest features, and can change without notice because it's not subject to versioning guarantees.
'2023-04' | '2023-07' | '2023-10' | '2024-01' | '2024-04' | '2024-07' | '2024-10' | 'unstable'Capability
Capabilities that extensions can request access to in their configuration. Each capability grants specific permissions for interacting with Shopify APIs, external services, or buyer data. Declare required capabilities in your extension's configuration file to enable these features. * [`api_access`](/docs/api/checkout-ui-extensions/configuration#api-access): Grants access to query the Storefront API for product, cart, and shop data. * [`network_access`](/docs/api/checkout-ui-extensions/configuration#network-access): Allows making external network calls to third-party APIs and services. * [`block_progress`](/docs/api/checkout-ui-extensions/configuration#block-progress): Enables blocking buyer checkout progress based on validation rules (requires merchant approval). * [`collect_buyer_consent.sms_marketing`](/docs/api/checkout-ui-extensions/configuration#collect-buyer-consent): Allows collecting buyer consent for SMS marketing communications. * [`collect_buyer_consent.customer_privacy`](/docs/api/checkout-ui-extensions/configuration#collect-buyer-consent): Allows registering buyer privacy consent decisions honored across Shopify services. * `iframe.sources`: Permits embedding external URLs in iframes within the extension.
'api_access' | 'network_access' | 'block_progress' | 'collect_buyer_consent.sms_marketing' | 'collect_buyer_consent.customer_privacy' | 'iframe.sources'Editor
- type
Indicates whether the extension is rendering in the checkout editor.
"checkout"
Anchor to useExtensionEditoruse Extension Editor()
Returns information about the editor where the extension is being rendered.
Editor
- type
Indicates whether the extension is rendering in the checkout editor.
"checkout"