App
The App API provides information about the app and the status of its extensions.
At this time, the App API only supports checkout and customer account UI extensions.
Anchor to extensions methodExtensions method
The app.extensions()
method asynchronously retrieves detailed information about the app's checkout and customer account extensions, including which targets they are activated on.
It returns a Promise that resolves to an array of objects. Each object contains the extension's handle and its activation targets. The array may be empty if the app has no extensions.
- Anchor to activationsactivationsExtensionActivation[]required
List of activation records for the extension. Contains information about where the extension is currently activated.
- Anchor to handlehandlestringrequired
The unique identifier for the extension.
ExtensionActivation
Represents an activation record for an extension. Contains information about where an extension is activated.
- target
The target identifier for the extension activation.
string
export interface ExtensionActivation {
/**
* The target identifier for the extension activation.
*/
target: string;
}
Get Extensions Status
Examples
Get Extensions Status
Default
const extensions = await shopify.app.extensions();