---
title: ShouldRender API
description: >-
This API controls the render state of an admin action extension. Learn more in
the admin
extensions tutorial.
api_version: 2025-10
api_name: admin-extensions
source_url:
html: 'https://shopify.dev/docs/api/admin-extensions/latest/api/shouldrender-api'
md: 'https://shopify.dev/docs/api/admin-extensions/latest/api/shouldrender-api.md'
---
# Should​Render API
This API controls the render state of an admin action extension. Learn more in the [admin extensions tutorial](https://shopify.dev/docs/apps/build/admin/actions-blocks/hide-extensions?extension=react#hide-an-admin-action).
## ShouldRenderApi
* auth
Auth
required
Provides methods for authenticating calls to an app backend.
* data
Data
required
Information about the currently viewed or selected items.
* extension
{ target: ExtensionTarget; }
required
The identifier of the running extension target.
* i18n
I18n
required
Utilities for translating content according to the current localization of the admin. More info - /docs/apps/checkout/best-practices/localizing-ui-extensions
* intents
Intents
required
Provides information to the receiver of an intent.
* query
\(query: string, options?: { variables?: Variables; version?: Omit\; }) => Promise<{ data?: Data; errors?: GraphQLError\[]; }>
required
Used to query the Admin GraphQL API
* storage
Storage
required
Provides methods for setting, getting, and clearing browser data from the extension
### Auth
* idToken
Retrieves a Shopify OpenID Connect ID token for the current user.
```ts
() => Promise
```
```ts
interface Auth {
/**
* Retrieves a Shopify OpenID Connect ID token for the current user.
*/
idToken: () => Promise;
}
```
### Data
* selected
Information about the currently viewed or selected items.
```ts
{ id: string; }[]
```
```ts
export interface Data {
/**
* Information about the currently viewed or selected items.
*/
selected: {id: string}[];
}
```
### ExtensionTarget
```ts
keyof ExtensionTargets
```
### ExtensionTargets
* admin.abandoned-checkout-details.action.render
Renders an admin action extension in the abandoned checkout page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.abandoned-checkout-details.action.render'>,
ActionExtensionComponents
>
```
* admin.abandoned-checkout-details.action.should-render
Controls the render state of an admin action extension in the abandoned checkout page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.abandoned-checkout-details.action.should-render'>,
ShouldRenderOutput
>
```
* admin.abandoned-checkout-details.block.render
Renders an admin block in the abandoned checkout details page. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
BlockExtensionApi<'admin.abandoned-checkout-details.block.render'>,
BlockExtensionComponents
>
```
* admin.catalog-details.action.render
Renders an admin action extension in the catalog details page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.catalog-details.action.render'>,
ActionExtensionComponents
>
```
* admin.catalog-details.action.should-render
Controls the render state of an admin action extension in the catalog details page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.catalog-details.action.should-render'>,
ShouldRenderOutput
>
```
* admin.catalog-details.block.render
Renders an admin block in the catalog details page. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
BlockExtensionApi<'admin.catalog-details.block.render'>,
BlockExtensionComponents
>
```
* admin.collection-details.action.render
Renders an admin action extension in the collection details page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.collection-details.action.render'>,
ActionExtensionComponents
>
```
* admin.collection-details.action.should-render
Controls the render state of an admin action extension in the collection details page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.collection-details.action.should-render'>,
ShouldRenderOutput
>
```
* admin.collection-details.block.render
Renders an admin block in the collection details page. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
BlockExtensionApi<'admin.collection-details.block.render'>,
BlockExtensionComponents
>
```
* admin.collection-index.action.render
Renders an admin action extension in the collection index page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.collection-index.action.render'>,
ActionExtensionComponents
>
```
* admin.collection-index.action.should-render
Controls the render state of an admin action extension in the collection index page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.collection-index.action.should-render'>,
ShouldRenderOutput
>
```
* admin.company-details.action.render
Renders an admin action extension in the company details page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.company-details.action.render'>,
ActionExtensionComponents
>
```
* admin.company-details.action.should-render
Controls the render state of an admin action extension in the company details page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.company-details.action.should-render'>,
ShouldRenderOutput
>
```
* admin.company-details.block.render
Renders an admin block in the company details page. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
BlockExtensionApi<'admin.company-details.block.render'>,
BlockExtensionComponents
>
```
* admin.company-location-details.block.render
Renders an admin block in the company location details page. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
BlockExtensionApi<'admin.company-location-details.block.render'>,
BlockExtensionComponents
>
```
* admin.customer-details.action.render
Renders an admin action extension in the customer details page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.customer-details.action.render'>,
ActionExtensionComponents
>
```
* admin.customer-details.action.should-render
Controls the render state of an admin action extension in the customer details page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.customer-details.action.should-render'>,
ShouldRenderOutput
>
```
* admin.customer-details.block.render
Renders an admin block in the customer details page. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
BlockExtensionApi<'admin.customer-details.block.render'>,
BlockExtensionComponents
>
```
* admin.customer-index.action.render
Renders an admin action extension in the customer index page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.customer-index.action.render'>,
ActionExtensionComponents
>
```
* admin.customer-index.action.should-render
Controls the render state of an admin action extension in the customer index page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.customer-index.action.should-render'>,
ShouldRenderOutput
>
```
* admin.customer-index.selection-action.render
Renders an admin action extension in the customer index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.customer-index.selection-action.render'>,
ActionExtensionComponents
>
```
* admin.customer-index.selection-action.should-render
Controls the render state of an admin action extension in the customer index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime.
```ts
RunnableExtension<
ShouldRenderApi<'admin.customer-index.selection-action.should-render'>,
ShouldRenderOutput
>
```
* admin.customer-segment-details.action.render
Renders an admin action extension in the customer segment details page. Open this extension from the "Use segment" button. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.customer-segment-details.action.render'>,
ActionExtensionComponents
>
```
* admin.customer-segment-details.action.should-render
Controls the render state of an admin action extension in the customer segment details page. Open this extension from the "Use segment" button.
```ts
RunnableExtension<
ShouldRenderApi<'admin.customer-segment-details.action.should-render'>,
ShouldRenderOutput
>
```
* admin.customers.segmentation-templates.data
Renders a \[\`CustomerSegmentTemplate\`]\(/docs/api/admin-extensions/components/customersegmenttemplate) in the \[customer segment editor]\(https://help.shopify.com/en/manual/customers/customer-segmentation/customer-segments).
```ts
RunnableExtension<
CustomerSegmentTemplateApi<'admin.customers.segmentation-templates.data'>,
{templates: CustomerSegmentTemplate[]}
>
```
* admin.discount-details.action.render
Renders an admin action extension in the discount details page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.discount-details.action.render'>,
ActionExtensionComponents
>
```
* admin.discount-details.action.should-render
Controls the render state of an admin action extension in the discount details page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.discount-details.action.should-render'>,
ShouldRenderOutput
>
```
* admin.discount-details.function-settings.render
Renders an admin block in the discount details page. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
DiscountFunctionSettingsApi<'admin.discount-details.function-settings.render'>,
FunctionSettingsComponents
>
```
* admin.discount-index.action.render
Renders an admin action extension in the discount index page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.discount-index.action.render'>,
ActionExtensionComponents
>
```
* admin.discount-index.action.should-render
Controls the render state of an admin action extension in the discount index page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.discount-index.action.should-render'>,
ShouldRenderOutput
>
```
* admin.draft-order-details.action.render
Renders an admin action extension in the draft order details page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.draft-order-details.action.render'>,
ActionExtensionComponents
>
```
* admin.draft-order-details.action.should-render
Controls the render state of an admin action extension in the draft order details page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.draft-order-details.action.should-render'>,
ShouldRenderOutput
>
```
* admin.draft-order-details.block.render
Renders an admin block in the draft order details page. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
BlockExtensionApi<'admin.draft-order-details.block.render'>,
BlockExtensionComponents
>
```
* admin.draft-order-index.action.render
Renders an admin action extension in the draft orders page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.draft-order-index.action.render'>,
ActionExtensionComponents
>
```
* admin.draft-order-index.action.should-render
Controls the render state of an admin action extension in the draft orders page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.draft-order-index.action.should-render'>,
ShouldRenderOutput
>
```
* admin.draft-order-index.selection-action.render
Renders an admin action extension in the draft order page when multiple resources are selected. Open this extension from the "3-dot" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.draft-order-index.selection-action.render'>,
ActionExtensionComponents
>
```
* admin.draft-order-index.selection-action.should-render
Controls the render state of an admin action extension in the draft order page when multiple resources are selected. Open this extension from the "3-dot" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.draft-order-index.selection-action.should-render'>,
ShouldRenderOutput
>
```
* admin.gift-card-details.action.render
Renders an admin action extension in the gift card details page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.gift-card-details.action.render'>,
ActionExtensionComponents
>
```
* admin.gift-card-details.action.should-render
Controls the render state of an admin action extension in the gift card details page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.gift-card-details.action.should-render'>,
ShouldRenderOutput
>
```
* admin.gift-card-details.block.render
Renders an admin block in the gift card details page. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
BlockExtensionApi<'admin.gift-card-details.block.render'>,
BlockExtensionComponents
>
```
* admin.order-details.action.render
Renders an admin action extension in the order details page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.order-details.action.render'>,
ActionExtensionComponents
>
```
* admin.order-details.action.should-render
Controls the render state of an admin action extension in the order details page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.order-details.action.should-render'>,
ShouldRenderOutput
>
```
* admin.order-details.block.render
Renders an admin block in the order details page. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
BlockExtensionApi<'admin.order-details.block.render'>,
BlockExtensionComponents
>
```
* admin.order-details.print-action.render
Renders an admin print action extension in the order index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
PrintActionExtensionApi<'admin.order-details.print-action.render'>,
PrintActionExtensionComponents
>
```
* admin.order-details.print-action.should-render
Controls the render state of an admin print action extension in the order index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime.
```ts
RunnableExtension<
ShouldRenderApi<'admin.order-details.print-action.should-render'>,
ShouldRenderOutput
>
```
* admin.order-fulfilled-card.action.render
Renders an admin action extension in the order fulfilled card. Open this extension from the "3-dot" menu inside the order fulfilled card. Note: This extension will only be visible on orders which were fulfilled by your app. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.order-fulfilled-card.action.render'>,
ActionExtensionComponents
>
```
* admin.order-fulfilled-card.action.should-render
Controls the render state of an admin action extension in the order fulfilled card. Open this extension from the "3-dot" menu inside the order fulfilled card. Note: This extension will only be visible on orders which were fulfilled by your app.
```ts
RunnableExtension<
ShouldRenderApi<'admin.order-fulfilled-card.action.should-render'>,
ShouldRenderOutput
>
```
* admin.order-index.action.render
Renders an admin action extension in the order index page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.order-index.action.render'>,
ActionExtensionComponents
>
```
* admin.order-index.action.should-render
Controls the render state of an admin action extension in the order index page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.order-index.action.should-render'>,
ShouldRenderOutput
>
```
* admin.order-index.selection-action.render
Renders an admin action extension in the order index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.order-index.selection-action.render'>,
ActionExtensionComponents
>
```
* admin.order-index.selection-action.should-render
Controls the render state of an admin action extension in the order index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime.
```ts
RunnableExtension<
ShouldRenderApi<'admin.order-index.selection-action.should-render'>,
ShouldRenderOutput
>
```
* admin.order-index.selection-print-action.render
Renders an admin print action extension in the order index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
PrintActionExtensionApi<'admin.order-index.selection-print-action.render'>,
PrintActionExtensionComponents
>
```
* admin.order-index.selection-print-action.should-render
Controls the render state of an admin print action extension in the order index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime.
```ts
RunnableExtension<
ShouldRenderApi<'admin.order-index.selection-print-action.should-render'>,
ShouldRenderOutput
>
```
* admin.product-details.action.render
Renders an admin action extension in the product details page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.product-details.action.render'>,
ActionExtensionComponents
>
```
* admin.product-details.action.should-render
Controls the render state of an admin action extension in the product details page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.product-details.action.should-render'>,
ShouldRenderOutput
>
```
* admin.product-details.block.render
Renders an admin block in the product details page. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
BlockExtensionApi<'admin.product-details.block.render'>,
BlockExtensionComponents
>
```
* admin.product-details.configuration.render
Renders Product Configuration on product details and product variant details See the \[tutorial]\(/docs/apps/selling-strategies/bundles/product-config) for more information
```ts
RenderExtension<
ProductDetailsConfigurationApi<'admin.product-details.configuration.render'>,
BlockExtensionComponents
>
```
* admin.product-details.print-action.render
Renders an admin print action extension in the product index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
PrintActionExtensionApi<'admin.product-details.print-action.render'>,
PrintActionExtensionComponents
>
```
* admin.product-details.print-action.should-render
Controls the render state of an admin print action extension in the product index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime.
```ts
RunnableExtension<
ShouldRenderApi<'admin.product-details.print-action.should-render'>,
ShouldRenderOutput
>
```
* admin.product-details.reorder.render
Renders an admin block in the product details page. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
BlockExtensionApi<'admin.product-details.reorder.render'>,
BlockExtensionComponents
>
```
* admin.product-index.action.render
Renders an admin action extension in the product index page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.product-index.action.render'>,
ActionExtensionComponents
>
```
* admin.product-index.action.should-render
Controls the render state of an admin action extension in the product index page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.product-index.action.should-render'>,
ShouldRenderOutput
>
```
* admin.product-index.selection-action.render
Renders an admin action extension in the product index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.product-index.selection-action.render'>,
ActionExtensionComponents
>
```
* admin.product-index.selection-action.should-render
Controls the render state of an admin action extension in the product index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime.
```ts
RunnableExtension<
ShouldRenderApi<'admin.product-index.selection-action.should-render'>,
ShouldRenderOutput
>
```
* admin.product-index.selection-print-action.render
Renders an admin print action extension in the product index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
PrintActionExtensionApi<'admin.product-index.selection-print-action.render'>,
PrintActionExtensionComponents
>
```
* admin.product-index.selection-print-action.should-render
Controls the render state of an admin print action extension in the product index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime.
```ts
RunnableExtension<
ShouldRenderApi<'admin.product-index.selection-print-action.should-render'>,
ShouldRenderOutput
>
```
* admin.product-purchase-option.action.render
Renders an admin action extension in the product details page when a selling plan group is present. Open this extension from the "Purchase Options card". See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
PurchaseOptionsCardConfigurationApi<'admin.product-purchase-option.action.render'>,
ActionExtensionComponents
>
```
* admin.product-variant-details.action.render
Renders an admin action extension in the product variant details page. Open this extension from the "More Actions" menu. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ActionExtensionApi<'admin.product-variant-details.action.render'>,
ActionExtensionComponents
>
```
* admin.product-variant-details.action.should-render
Controls the render state of an admin action extension in the product variant details page. Open this extension from the "More Actions" menu.
```ts
RunnableExtension<
ShouldRenderApi<'admin.product-variant-details.action.should-render'>,
ShouldRenderOutput
>
```
* admin.product-variant-details.block.render
Renders an admin block in the product variant details page. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
BlockExtensionApi<'admin.product-variant-details.block.render'>,
BlockExtensionComponents
>
```
* admin.product-variant-details.configuration.render
Renders Product Configuration on product details and product variant details See the \[tutorial]\(/docs/apps/selling-strategies/bundles/product-config) for more information
```ts
RenderExtension<
ProductVariantDetailsConfigurationApi<'admin.product-variant-details.configuration.render'>,
BlockExtensionComponents
>
```
* admin.product-variant-purchase-option.action.render
Renders an admin action extension in the product variant details page when a selling plan group is present. Open this extension from the "Purchase Options card". See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
PurchaseOptionsCardConfigurationApi<'admin.product-variant-purchase-option.action.render'>,
ActionExtensionComponents
>
```
* admin.settings.internal-order-routing-rule.render
Renders Order Routing Rule Configuration on order routing settings. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
OrderRoutingRuleApi<'admin.settings.internal-order-routing-rule.render'>,
FunctionSettingsComponents
>
```
* admin.settings.order-routing-rule.render
```ts
RenderExtension<
OrderRoutingRuleApi<'admin.settings.order-routing-rule.render'>,
FunctionSettingsComponents
>
```
* admin.settings.validation.render
Renders Validation Settings within a given validation's add and edit views. See the \[list of available components]\(/docs/api/admin-extensions/components).
```ts
RenderExtension<
ValidationSettingsApi<'admin.settings.validation.render'>,
FunctionSettingsComponents
>
```
```ts
export interface ExtensionTargets {
/**
* Renders a [`CustomerSegmentTemplate`](/docs/api/admin-extensions/components/customersegmenttemplate) in the [customer segment editor](https://help.shopify.com/en/manual/customers/customer-segmentation/customer-segments).
*/
'admin.customers.segmentation-templates.data': RunnableExtension<
CustomerSegmentTemplateApi<'admin.customers.segmentation-templates.data'>,
{templates: CustomerSegmentTemplate[]}
>;
// Blocks
/**
* Renders an admin block in the product details page.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.product-details.block.render': RenderExtension<
BlockExtensionApi<'admin.product-details.block.render'>,
BlockExtensionComponents
>;
/**
* Renders an admin block in the order details page.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.order-details.block.render': RenderExtension<
BlockExtensionApi<'admin.order-details.block.render'>,
BlockExtensionComponents
>;
/**
* Renders an admin block in the discount details page.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.discount-details.function-settings.render': RenderExtension<
DiscountFunctionSettingsApi<'admin.discount-details.function-settings.render'>,
FunctionSettingsComponents
>;
/**
* Renders an admin block in the customer details page.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.customer-details.block.render': RenderExtension<
BlockExtensionApi<'admin.customer-details.block.render'>,
BlockExtensionComponents
>;
/**
* Renders an admin block in the collection details page.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.collection-details.block.render': RenderExtension<
BlockExtensionApi<'admin.collection-details.block.render'>,
BlockExtensionComponents
>;
/**
* Renders an admin block in the draft order details page.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.draft-order-details.block.render': RenderExtension<
BlockExtensionApi<'admin.draft-order-details.block.render'>,
BlockExtensionComponents
>;
/**
* Renders an admin block in the abandoned checkout details page.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.abandoned-checkout-details.block.render': RenderExtension<
BlockExtensionApi<'admin.abandoned-checkout-details.block.render'>,
BlockExtensionComponents
>;
/**
* Renders an admin block in the catalog details page.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.catalog-details.block.render': RenderExtension<
BlockExtensionApi<'admin.catalog-details.block.render'>,
BlockExtensionComponents
>;
/**
* Renders an admin block in the company details page.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.company-details.block.render': RenderExtension<
BlockExtensionApi<'admin.company-details.block.render'>,
BlockExtensionComponents
>;
/**
* Renders an admin block in the company location details page.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.company-location-details.block.render': RenderExtension<
BlockExtensionApi<'admin.company-location-details.block.render'>,
BlockExtensionComponents
>;
/**
* Renders an admin block in the gift card details page.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.gift-card-details.block.render': RenderExtension<
BlockExtensionApi<'admin.gift-card-details.block.render'>,
BlockExtensionComponents
>;
/**
* Renders an admin block in the product variant details page.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.product-variant-details.block.render': RenderExtension<
BlockExtensionApi<'admin.product-variant-details.block.render'>,
BlockExtensionComponents
>;
/**
* Renders an admin block in the product details page.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.product-details.reorder.render': RenderExtension<
BlockExtensionApi<'admin.product-details.reorder.render'>,
BlockExtensionComponents
>;
// Actions
/**
* Renders an admin action extension in the product details page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.product-details.action.render': RenderExtension<
ActionExtensionApi<'admin.product-details.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the catalog details page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.catalog-details.action.render': RenderExtension<
ActionExtensionApi<'admin.catalog-details.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the company details page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.company-details.action.render': RenderExtension<
ActionExtensionApi<'admin.company-details.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the gift card details page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.gift-card-details.action.render': RenderExtension<
ActionExtensionApi<'admin.gift-card-details.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the order details page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.order-details.action.render': RenderExtension<
ActionExtensionApi<'admin.order-details.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the customer details page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.customer-details.action.render': RenderExtension<
ActionExtensionApi<'admin.customer-details.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the customer segment details page. Open this extension from the "Use segment" button.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.customer-segment-details.action.render': RenderExtension<
ActionExtensionApi<'admin.customer-segment-details.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the product index page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.product-index.action.render': RenderExtension<
ActionExtensionApi<'admin.product-index.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the order index page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.order-index.action.render': RenderExtension<
ActionExtensionApi<'admin.order-index.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the customer index page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.customer-index.action.render': RenderExtension<
ActionExtensionApi<'admin.customer-index.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the discount index page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.discount-index.action.render': RenderExtension<
ActionExtensionApi<'admin.discount-index.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the collection details page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.collection-details.action.render': RenderExtension<
ActionExtensionApi<'admin.collection-details.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the collection index page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.collection-index.action.render': RenderExtension<
ActionExtensionApi<'admin.collection-index.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the abandoned checkout page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.abandoned-checkout-details.action.render': RenderExtension<
ActionExtensionApi<'admin.abandoned-checkout-details.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the product variant details page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.product-variant-details.action.render': RenderExtension<
ActionExtensionApi<'admin.product-variant-details.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the draft order details page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.draft-order-details.action.render': RenderExtension<
ActionExtensionApi<'admin.draft-order-details.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the draft orders page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.draft-order-index.action.render': RenderExtension<
ActionExtensionApi<'admin.draft-order-index.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the discount details page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.discount-details.action.render': RenderExtension<
ActionExtensionApi<'admin.discount-details.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the order fulfilled card. Open this extension from the "3-dot" menu inside the order fulfilled card.
* Note: This extension will only be visible on orders which were fulfilled by your app.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.order-fulfilled-card.action.render': RenderExtension<
ActionExtensionApi<'admin.order-fulfilled-card.action.render'>,
ActionExtensionComponents
>;
// Bulk Actions
/**
* Renders an admin action extension in the product index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.product-index.selection-action.render': RenderExtension<
ActionExtensionApi<'admin.product-index.selection-action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the order index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.order-index.selection-action.render': RenderExtension<
ActionExtensionApi<'admin.order-index.selection-action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the customer index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.customer-index.selection-action.render': RenderExtension<
ActionExtensionApi<'admin.customer-index.selection-action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the draft order page when multiple resources are selected. Open this extension from the "3-dot" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.draft-order-index.selection-action.render': RenderExtension<
ActionExtensionApi<'admin.draft-order-index.selection-action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the product details page when a selling plan group is present. Open this extension from the "Purchase Options card".
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.product-purchase-option.action.render': RenderExtension<
PurchaseOptionsCardConfigurationApi<'admin.product-purchase-option.action.render'>,
ActionExtensionComponents
>;
/**
* Renders an admin action extension in the product variant details page when a selling plan group is present. Open this extension from the "Purchase Options card".
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.product-variant-purchase-option.action.render': RenderExtension<
PurchaseOptionsCardConfigurationApi<'admin.product-variant-purchase-option.action.render'>,
ActionExtensionComponents
>;
// Print actions and bulk print actions
/**
* Renders an admin print action extension in the order index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.order-details.print-action.render': RenderExtension<
PrintActionExtensionApi<'admin.order-details.print-action.render'>,
PrintActionExtensionComponents
>;
/**
* Renders an admin print action extension in the product index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.product-details.print-action.render': RenderExtension<
PrintActionExtensionApi<'admin.product-details.print-action.render'>,
PrintActionExtensionComponents
>;
/**
* Renders an admin print action extension in the order index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.order-index.selection-print-action.render': RenderExtension<
PrintActionExtensionApi<'admin.order-index.selection-print-action.render'>,
PrintActionExtensionComponents
>;
/**
* Renders an admin print action extension in the product index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.product-index.selection-print-action.render': RenderExtension<
PrintActionExtensionApi<'admin.product-index.selection-print-action.render'>,
PrintActionExtensionComponents
>;
// Other
/**
* Renders Product Configuration on product details and product variant details
*
* See the [tutorial](/docs/apps/selling-strategies/bundles/product-config) for more information
*/
'admin.product-details.configuration.render': RenderExtension<
ProductDetailsConfigurationApi<'admin.product-details.configuration.render'>,
BlockExtensionComponents
>;
/**
* Renders Product Configuration on product details and product variant details
*
* See the [tutorial](/docs/apps/selling-strategies/bundles/product-config) for more information
*/
'admin.product-variant-details.configuration.render': RenderExtension<
ProductVariantDetailsConfigurationApi<'admin.product-variant-details.configuration.render'>,
BlockExtensionComponents
>;
/**
* Renders Order Routing Rule Configuration on order routing settings.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.settings.internal-order-routing-rule.render': RenderExtension<
OrderRoutingRuleApi<'admin.settings.internal-order-routing-rule.render'>,
FunctionSettingsComponents
>;
'admin.settings.order-routing-rule.render': RenderExtension<
OrderRoutingRuleApi<'admin.settings.order-routing-rule.render'>,
FunctionSettingsComponents
>;
/**
* Renders Validation Settings within a given validation's add and edit views.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.settings.validation.render': RenderExtension<
ValidationSettingsApi<'admin.settings.validation.render'>,
FunctionSettingsComponents
>;
// Admin action shouldRender targets
/**
* Controls the render state of an admin action extension in the product details page. Open this extension from the "More Actions" menu.
*/
'admin.product-details.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.product-details.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the catalog details page. Open this extension from the "More Actions" menu.
*/
'admin.catalog-details.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.catalog-details.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the company details page. Open this extension from the "More Actions" menu.
*/
'admin.company-details.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.company-details.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the gift card details page. Open this extension from the "More Actions" menu.
*/
'admin.gift-card-details.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.gift-card-details.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the order details page. Open this extension from the "More Actions" menu.
*/
'admin.order-details.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.order-details.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the customer details page. Open this extension from the "More Actions" menu.
*/
'admin.customer-details.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.customer-details.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the customer segment details page. Open this extension from the "Use segment" button.
*/
'admin.customer-segment-details.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.customer-segment-details.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the product index page. Open this extension from the "More Actions" menu.
*/
'admin.product-index.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.product-index.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the order index page. Open this extension from the "More Actions" menu.
*/
'admin.order-index.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.order-index.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the customer index page. Open this extension from the "More Actions" menu.
*/
'admin.customer-index.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.customer-index.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the discount index page. Open this extension from the "More Actions" menu.
*/
'admin.discount-index.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.discount-index.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the collection details page. Open this extension from the "More Actions" menu.
*/
'admin.collection-details.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.collection-details.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the collection index page. Open this extension from the "More Actions" menu.
*/
'admin.collection-index.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.collection-index.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the abandoned checkout page. Open this extension from the "More Actions" menu.
*/
'admin.abandoned-checkout-details.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.abandoned-checkout-details.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the product variant details page. Open this extension from the "More Actions" menu.
*/
'admin.product-variant-details.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.product-variant-details.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the draft order details page. Open this extension from the "More Actions" menu.
*/
'admin.draft-order-details.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.draft-order-details.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the draft orders page. Open this extension from the "More Actions" menu.
*/
'admin.draft-order-index.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.draft-order-index.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the discount details page. Open this extension from the "More Actions" menu.
*/
'admin.discount-details.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.discount-details.action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the order fulfilled card. Open this extension from the "3-dot" menu inside the order fulfilled card.
* Note: This extension will only be visible on orders which were fulfilled by your app.
*/
'admin.order-fulfilled-card.action.should-render': RunnableExtension<
ShouldRenderApi<'admin.order-fulfilled-card.action.should-render'>,
ShouldRenderOutput
>;
// Admin bulk action shouldRender targets
/**
* Controls the render state of an admin action extension in the product index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime.
*/
'admin.product-index.selection-action.should-render': RunnableExtension<
ShouldRenderApi<'admin.product-index.selection-action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the order index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime.
*/
'admin.order-index.selection-action.should-render': RunnableExtension<
ShouldRenderApi<'admin.order-index.selection-action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the customer index page when multiple resources are selected. Open this extension from the "More Actions" menu of the resource list. The resource ids are available to this extension at runtime.
*/
'admin.customer-index.selection-action.should-render': RunnableExtension<
ShouldRenderApi<'admin.customer-index.selection-action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin action extension in the draft order page when multiple resources are selected. Open this extension from the "3-dot" menu.
*/
'admin.draft-order-index.selection-action.should-render': RunnableExtension<
ShouldRenderApi<'admin.draft-order-index.selection-action.should-render'>,
ShouldRenderOutput
>;
// Admin print action and bulk print action shouldRender targets
/**
* Controls the render state of an admin print action extension in the order index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime.
*/
'admin.order-details.print-action.should-render': RunnableExtension<
ShouldRenderApi<'admin.order-details.print-action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin print action extension in the product index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime.
*/
'admin.product-details.print-action.should-render': RunnableExtension<
ShouldRenderApi<'admin.product-details.print-action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin print action extension in the order index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime.
*/
'admin.order-index.selection-print-action.should-render': RunnableExtension<
ShouldRenderApi<'admin.order-index.selection-print-action.should-render'>,
ShouldRenderOutput
>;
/**
* Controls the render state of an admin print action extension in the product index page when multiple resources are selected. Open this extension from the "Print" menu of the resource list. The resource ids are available to this extension at runtime.
*/
'admin.product-index.selection-print-action.should-render': RunnableExtension<
ShouldRenderApi<'admin.product-index.selection-print-action.should-render'>,
ShouldRenderOutput
>;
}
```
### RenderExtension
* api
```ts
Api
```
* components
```ts
ComponentsSet
```
* output
```ts
void | Promise
```
```ts
export interface RenderExtension {
api: Api;
components: ComponentsSet;
output: void | Promise;
}
```
### ActionExtensionApi
* auth
Provides methods for authenticating calls to an app backend.
```ts
Auth
```
* close
Closes the extension. Calling this method is equivalent to the merchant clicking the "x" in the corner of the overlay.
```ts
() => void
```
* data
Information about the currently viewed or selected items.
```ts
Data
```
* extension
The identifier of the running extension target.
```ts
{ target: ExtensionTarget; }
```
* i18n
Utilities for translating content according to the current localization of the admin. More info - /docs/apps/checkout/best-practices/localizing-ui-extensions
```ts
I18n
```
* intents
Provides information to the receiver of an intent.
```ts
Intents
```
* picker
Renders a custom \[Picker]\(picker) dialog allowing users to select values from a list.
```ts
PickerApi
```
* query
Used to query the Admin GraphQL API
```ts
(query: string, options?: { variables?: Variables; version?: Omit; }) => Promise<{ data?: Data; errors?: GraphQLError[]; }>
```
* resourcePicker
Renders the \[Resource Picker]\(resource-picker), allowing users to select a resource for the extension to use as part of its flow.
```ts
ResourcePickerApi
```
* storage
Provides methods for setting, getting, and clearing browser data from the extension
```ts
Storage
```
```ts
export interface ActionExtensionApi
extends StandardApi {
/**
* Closes the extension. Calling this method is equivalent to the merchant clicking the "x" in the corner of the overlay.
*/
close: () => void;
/**
* Information about the currently viewed or selected items.
*/
data: Data;
/**
* Renders the [Resource Picker](resource-picker), allowing users to select a resource for the extension to use as part of its flow.
*/
resourcePicker: ResourcePickerApi;
/**
* Renders a custom [Picker](picker) dialog allowing users to select values from a list.
*/
picker: PickerApi;
}
```
### I18n
* formatCurrency
Returns a localized currency value. This function behaves like the standard \`Intl.NumberFormat()\` with a style of \`currency\` applied. It uses the buyer's locale by default.
```ts
(number: number | bigint, options?: { inExtensionLocale?: boolean; } & NumberFormatOptions) => string
```
* formatDate
Returns a localized date value. This function behaves like the standard \`Intl.DateTimeFormatOptions()\` and uses the buyer's locale by default. Formatting options can be passed in as options.
```ts
(date: Date, options?: { inExtensionLocale?: boolean; } & DateTimeFormatOptions) => string
```
* formatNumber
Returns a localized number. This function behaves like the standard \`Intl.NumberFormat()\` with a style of \`decimal\` applied. It uses the buyer's locale by default.
```ts
(number: number | bigint, options?: { inExtensionLocale?: boolean; } & NumberFormatOptions) => string
```
* translate
Returns translated content in the buyer's locale, as supported by the extension. - \`options.count\` is a special numeric value used in pluralization. - The other option keys and values are treated as replacements for interpolation. - If the replacements are all primitives, then \`translate()\` returns a single string. - If replacements contain UI components, then \`translate()\` returns an array of elements.
```ts
I18nTranslate
```
```ts
export interface I18n {
/**
* Returns a localized number.
*
* This function behaves like the standard `Intl.NumberFormat()`
* with a style of `decimal` applied. It uses the buyer's locale by default.
*
* @param options.inExtensionLocale - if true, use the extension's locale
*/
formatNumber: (
number: number | bigint,
options?: {inExtensionLocale?: boolean} & Intl.NumberFormatOptions,
) => string;
/**
* Returns a localized currency value.
*
* This function behaves like the standard `Intl.NumberFormat()`
* with a style of `currency` applied. It uses the buyer's locale by default.
*
* @param options.inExtensionLocale - if true, use the extension's locale
*/
formatCurrency: (
number: number | bigint,
options?: {inExtensionLocale?: boolean} & Intl.NumberFormatOptions,
) => string;
/**
* Returns a localized date value.
*
* This function behaves like the standard `Intl.DateTimeFormatOptions()` and uses
* the buyer's locale by default. Formatting options can be passed in as
* options.
*
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat0
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options
*
* @param options.inExtensionLocale - if true, use the extension's locale
*/
formatDate: (
date: Date,
options?: {inExtensionLocale?: boolean} & Intl.DateTimeFormatOptions,
) => string;
/**
* Returns translated content in the buyer's locale,
* as supported by the extension.
*
* - `options.count` is a special numeric value used in pluralization.
* - The other option keys and values are treated as replacements for interpolation.
* - If the replacements are all primitives, then `translate()` returns a single string.
* - If replacements contain UI components, then `translate()` returns an array of elements.
*/
translate: I18nTranslate;
}
```
### I18nTranslate
This defines the i18n.translate() signature.
```ts
export interface I18nTranslate {
/**
* This returns a translated string matching a key in a locale file.
*
* @example translate("banner.title")
*/
(
key: string,
options?: Record,
): ReplacementType extends string | number
? string
: (string | ReplacementType)[];
}
```
### Intents
Intent information provided to the receiver of an intent.
* invoke
Invoke an intent workflow to create or edit Shopify resources.
```ts
IntentInvokeApi
```
* launchUrl
The URL that was used to launch the intent.
```ts
string | URL
```
```ts
export interface Intents {
/**
* The URL that was used to launch the intent.
*/
launchUrl?: string | URL;
/**
* Invoke an intent workflow to create or edit Shopify resources.
*/
invoke?: IntentInvokeApi;
}
```
### IntentInvokeApi
The invoke API for triggering intent workflows.
```ts
export interface IntentInvokeApi {
(query: IntentQuery): Promise;
(intentURL: string, options?: IntentQueryOptions): Promise;
}
```
### PickerApi
* options
```ts
PickerOptions
```
Promise\
```ts
Promise
```
```ts
(options: PickerOptions) => Promise
```
### PickerOptions
* headers
The data headers for the picker. These are used to display the table headers in the picker modal.
```ts
Header[]
```
* heading
The heading of the picker. This is displayed in the title of the picker modal.
```ts
string
```
* items
The items to display in the picker. These are used to display the rows in the picker modal.
```ts
Item[]
```
* multiple
The data headers for the picker. These are used to display the table headers in the picker modal.
```ts
boolean | number
```
```ts
interface PickerOptions {
/**
* The heading of the picker. This is displayed in the title of the picker modal.
*/
heading: string;
/**
* The data headers for the picker. These are used to display the table headers in the picker modal.
*/
multiple?: boolean | number;
/**
* The items to display in the picker. These are used to display the rows in the picker modal.
*/
items: Item[];
/**
* The data headers for the picker. These are used to display the table headers in the picker modal.
*/
headers?: Header[];
}
```
### Header
* content
The content to display in the table column header.
```ts
string
```
* type
The type of data to display in the column. The type is used to format the data in the column. If the type is 'number', the data in the column will be right-aligned, this should be used when referencing currency or numeric values. If the type is 'string', the data in the column will be left-aligned.
```ts
'string' | 'number'
```
```ts
interface Header {
/**
* The content to display in the table column header.
*/
content?: string;
/**
* The type of data to display in the column. The type is used to format the data in the column.
* If the type is 'number', the data in the column will be right-aligned, this should be used when referencing currency or numeric values.
* If the type is 'string', the data in the column will be left-aligned.
* @defaultValue 'string'
*/
type?: 'string' | 'number';
}
```
### Item
* badges
The badges to display in the first column of the row. These are used to display additional information about the item, such as progress of an action or tone indicating the status of that item.
```ts
PickerBadge[]
```
* data
The additional content to display in the second and third columns of the row, if provided.
```ts
DataPoint[]
```
* disabled
Whether the item is disabled or not. If the item is disabled, it cannot be selected.
```ts
boolean
```
* heading
The primary content to display in the first column of the row.
```ts
string
```
* id
The unique identifier of the item. This will be returned by the picker if selected.
```ts
string
```
* selected
Whether the item is selected or not when the picker is opened. The user may deselect the item if it is preselected.
```ts
boolean
```
* thumbnail
The thumbnail to display at the start of the row. This is used to display an image or icon for the item.
```ts
{ url: string; }
```
```ts
interface Item {
/**
* The unique identifier of the item. This will be returned by the picker if selected.
*/
id: string;
/**
* The primary content to display in the first column of the row.
*/
heading: string;
/**
* The additional content to display in the second and third columns of the row, if provided.
*/
data?: DataPoint[];
/**
* Whether the item is disabled or not. If the item is disabled, it cannot be selected.
* @defaultValue false
*/
disabled?: boolean;
/**
* Whether the item is selected or not when the picker is opened. The user may deselect the item if it is preselected.
*/
selected?: boolean;
/**
* The badges to display in the first column of the row. These are used to display additional information about the item, such as progress of an action or tone indicating the status of that item.
*/
badges?: PickerBadge[];
/**
* The thumbnail to display at the start of the row. This is used to display an image or icon for the item.
*/
thumbnail?: {url: string};
}
```
### PickerBadge
* content
```ts
string
```
* progress
```ts
Progress
```
* tone
```ts
Tone
```
```ts
interface PickerBadge {
content: string;
tone?: Tone;
progress?: Progress;
}
```
### Progress
```ts
'incomplete' | 'partiallyComplete' | 'complete'
```
### Tone
```ts
'info' | 'success' | 'warning' | 'critical'
```
### DataPoint
```ts
string | number | undefined
```
### Picker
* selected
A Promise that resolves with the selected item IDs when the user presses the "Select" button in the picker.
```ts
Promise
```
```ts
interface Picker {
/**
* A Promise that resolves with the selected item IDs when the user presses the "Select" button in the picker.
*/
selected: Promise;
}
```
### ApiVersion
Union of supported API versions
```ts
'2023-04' | '2023-07' | '2023-10' | '2024-01' | '2024-04' | '2024-07' | '2024-10' | '2025-01' | '2025-04' | 'unstable' | '2025-07' | '2025-10' | '2026-01'
```
### ResourcePickerApi
* options
```ts
ResourcePickerOptions
```
Promise\ | undefined>
```ts
Promise | undefined>
```
```ts
(
options: ResourcePickerOptions,
) => Promise | undefined>
```
### ResourcePickerOptions
* action
The action verb appears in the title and as the primary action of the Resource Picker.
```ts
'add' | 'select'
```
* filter
Filters for what resource to show.
```ts
Filters
```
* multiple
Whether to allow selecting multiple items of a specific type or not. If a number is provided, then limit the selections to a maximum of that number of items. When type is Product, the user may still select multiple variants of a single product, even if multiple is false.
```ts
boolean | number
```
* query
GraphQL initial search query for filtering resources available in the picker. See \[search syntax]\(/docs/api/usage/search-syntax) for more information. This is displayed in the search bar when the picker is opened and can be edited by users. For most use cases, you should use the \`filter.query\` option instead which doesn't show the query in the UI.
```ts
string
```
* selectionIds
Resources that should be preselected when the picker is opened.
```ts
BaseResource[]
```
* type
The type of resource you want to pick.
```ts
'product' | 'variant' | 'collection'
```
```ts
export interface ResourcePickerOptions {
/**
* The type of resource you want to pick.
*/
type: 'product' | 'variant' | 'collection';
/**
* The action verb appears in the title and as the primary action of the Resource Picker.
* @defaultValue 'add'
*/
action?: 'add' | 'select';
/**
* Filters for what resource to show.
*/
filter?: Filters;
/**
* Whether to allow selecting multiple items of a specific type or not. If a number is provided, then limit the selections to a maximum of that number of items. When type is Product, the user may still select multiple variants of a single product, even if multiple is false.
* @defaultValue false
*/
multiple?: boolean | number;
/**
* GraphQL initial search query for filtering resources available in the picker. See [search syntax](/docs/api/usage/search-syntax) for more information.
* This is displayed in the search bar when the picker is opened and can be edited by users.
* For most use cases, you should use the `filter.query` option instead which doesn't show the query in the UI.
* @defaultValue ''
*/
query?: string;
/**
* Resources that should be preselected when the picker is opened.
* @defaultValue []
*/
selectionIds?: BaseResource[];
}
```
### Filters
* archived
Whether to show \[archived products]\(https://help.shopify.com/en/manual/products/details?shpxid=70af7d87-E0F2-4973-8B09-B972AAF0ADFD#product-availability). Only applies to the Product resource type picker. Setting this to undefined will show a badge on draft products.
```ts
boolean | undefined
```
* draft
Whether to show \[draft products]\(https://help.shopify.com/en/manual/products/details?shpxid=70af7d87-E0F2-4973-8B09-B972AAF0ADFD#product-availability). Only applies to the Product resource type picker. Setting this to undefined will show a badge on draft products.
```ts
boolean | undefined
```
* hidden
Whether to show hidden resources, referring to products that are not published on any sales channels.
```ts
boolean
```
* query
GraphQL initial search query for filtering resources available in the picker. See \[search syntax]\(/docs/api/usage/search-syntax) for more information. This is not displayed in the search bar when the picker is opened.
```ts
string
```
* variants
Whether to show product variants. Only applies to the Product resource type picker.
```ts
boolean
```
```ts
interface Filters {
/**
* Whether to show hidden resources, referring to products that are not published on any sales channels.
* @defaultValue true
*/
hidden?: boolean;
/**
* Whether to show product variants. Only applies to the Product resource type picker.
* @defaultValue true
*/
variants?: boolean;
/**
* Whether to show [draft products](https://help.shopify.com/en/manual/products/details?shpxid=70af7d87-E0F2-4973-8B09-B972AAF0ADFD#product-availability).
* Only applies to the Product resource type picker.
* Setting this to undefined will show a badge on draft products.
* @defaultValue true
*/
draft?: boolean | undefined;
/**
* Whether to show [archived products](https://help.shopify.com/en/manual/products/details?shpxid=70af7d87-E0F2-4973-8B09-B972AAF0ADFD#product-availability).
* Only applies to the Product resource type picker.
* Setting this to undefined will show a badge on draft products.
* @defaultValue true
*/
archived?: boolean | undefined;
/**
* GraphQL initial search query for filtering resources available in the picker.
* See [search syntax](/docs/api/usage/search-syntax) for more information.
* This is not displayed in the search bar when the picker is opened.
*/
query?: string;
}
```
### BaseResource
* id
in GraphQL id format, ie 'gid://shopify/Product/1'
```ts
string
```
* variants
```ts
Resource[]
```
```ts
interface BaseResource extends Resource {
variants?: Resource[];
}
```
### Resource
* id
in GraphQL id format, ie 'gid://shopify/Product/1'
```ts
string
```
```ts
interface Resource {
/** in GraphQL id format, ie 'gid://shopify/Product/1' */
id: string;
}
```
### SelectPayload
```ts
SelectPayload
```
### Storage
* clear
Clears the storage.
```ts
() => Promise
```
* delete
Deletes a key from the storage.
```ts
(key: Keys) => Promise
```
* deleteMany
Deletes multiple keys from the storage at once.
```ts
(keys: Keys[]) => Promise>
```
* entries
Gets all the keys and values in the storage.
```ts
() => Promise>
```
* get
Gets the value of a key in the storage.
```ts
(key: Keys) => Promise
```
* getMany
Gets the values of multiple keys in the storage at once.
```ts
(keys: Keys[]) => Promise
```
* set
Sets the value of a key in the storage.
```ts
(key: Keys, value: StorageTypes[Keys]) => Promise
```
* setMany
Sets multiple key-value pairs in the storage at once. If the operation fails, no changes are made to storage.
```ts
(entries: Partial) => Promise
```
```ts
export interface Storage<
BaseStorageTypes extends Record = Record,
> {
/**
* Sets the value of a key in the storage.
*
* @param key - The key to set the value for.
* @param value - The value to set for the key.
* Can be any primitive type supported by `JSON.stringify`.
*
* Rejects with a `StorageExceededError` if the extension exceeds its allotted storage limit.
*/
set<
StorageTypes extends BaseStorageTypes = BaseStorageTypes,
Keys extends keyof StorageTypes = keyof StorageTypes,
>(
key: Keys,
value: StorageTypes[Keys],
): Promise;
/**
* Sets multiple key-value pairs in the storage at once.
*
* If the operation fails, no changes are made to storage.
*
* @param entries - An object containing key-value pairs to store.
* Values can be any primitive type supported by `JSON.stringify`.
*
* Rejects with a `StorageExceededError` if the extension exceeds its allotted storage limit.
*/
setMany(
entries: Partial,
): Promise;
/**
* Gets the value of a key in the storage.
*
* @param key - The key to get the value for.
* @returns The value of the key.
*
* If no value for the key exists, the resolved value is undefined.
*/
get<
StorageTypes extends BaseStorageTypes = BaseStorageTypes,
Keys extends keyof StorageTypes = keyof StorageTypes,
>(
key: Keys,
): Promise;
/**
* Gets the values of multiple keys in the storage at once.
*
* @param keys - An array of keys to get the values for.
* @returns An object containing key-value pairs for the requested keys.
*
* The returned array is in the same order as `keys`, with `undefined` values for keys that do not exist.
*/
getMany<
StorageTypes extends BaseStorageTypes = BaseStorageTypes,
Keys extends keyof StorageTypes = keyof StorageTypes,
>(
keys: Keys[],
): Promise<(StorageTypes[Keys] | undefined)[]>;
/**
* Clears the storage.
*/
clear(): Promise;
/**
* Deletes a key from the storage.
*
* @param key - The key to delete.
* @returns A promise that resolves to `true` if the key was deleted, or `false` if the key did not exist.
*/
delete<
StorageTypes extends BaseStorageTypes = BaseStorageTypes,
Keys extends keyof StorageTypes = keyof StorageTypes,
>(
key: Keys,
): Promise;
/**
* Deletes multiple keys from the storage at once.
*
* @param keys - An array of keys to delete.
* @returns A promise that resolves to an object with `keys` keys, and boolean values,
* which are `true` if the key was deleted, or `false` if the key did not exist.
*/
deleteMany<
StorageTypes extends BaseStorageTypes = BaseStorageTypes,
Keys extends keyof StorageTypes = keyof StorageTypes,
>(
keys: Keys[],
): Promise>;
/**
* Gets all the keys and values in the storage.
*
* @returns An iterator containing all the keys and values in the storage.
*/
entries<
StorageTypes extends BaseStorageTypes = BaseStorageTypes,
Keys extends keyof StorageTypes = keyof StorageTypes,
>(): Promise>;
}
```
### ActionExtensionComponents
```ts
StandardComponents | 'AdminAction'
```
### StandardComponents
```ts
'Avatar' | 'Badge' | 'Banner' | 'Box' | 'Button' | 'ButtonGroup' | 'Checkbox' | 'Chip' | 'Choice' | 'ChoiceList' | 'Clickable' | 'ClickableChip' | 'ColorField' | 'ColorPicker' | 'DateField' | 'DatePicker' | 'DropZone' | 'Divider' | 'EmailField' | 'Grid' | 'GridItem' | 'Heading' | 'Icon' | 'Image' | 'Link' | 'ListItem' | 'Menu' | 'MoneyField' | 'NumberField' | 'Option' | 'OptionGroup' | 'OrderedList' | 'Paragraph' | 'PasswordField' | 'QueryContainer' | 'SearchField' | 'Section' | 'Select' | 'Spinner' | 'Stack' | 'Switch' | 'Table' | 'TableBody' | 'TableCell' | 'TableHeader' | 'TableHeaderRow' | 'TableRow' | 'Text' | 'TextArea' | 'TextField' | 'Thumbnail' | 'Tooltip' | 'UnorderedList' | 'URLField'
```
### RunnableExtension
* api
```ts
Api
```
* output
```ts
Output | Promise