ExtensionAPI
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.
Meta information about the extension.
Anchor to useExtensionuse Extension()
Returns the metadata of the extension.
Extension
The API version that was set in the extension config file.
The allowed capabilities of the extension, defined in your shopify.ui.extension.toml file.
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.
The URL to the script that started the extension 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.
Information about the editor where the extension is being rendered.
The value is undefined if the extension is not rendering in an editor.
The published version of the running extension target.
For unpublished extensions, the value is undefined
.
Anchor to useExtensionEditoruse Extension Editor()
Returns information about the editor where the extension is being rendered.