Skip to main content

Action Extension API

This API is available to all action extension types. Refer to the tutorial for more information. Note that the AdminAction component is required to build Admin action extensions.

required

Provides methods for authenticating calls to an app backend.

Anchor to close
close
() => void
required

Closes the extension. Calling this method is equivalent to the merchant clicking the "x" in the corner of the overlay.

required

Information about the currently viewed or selected items.

Anchor to extension
extension
{ target: ; }
required

The identifier of the running extension target.

required

Utilities for translating content according to the current localization of the admin. More info - /docs/apps/checkout/best-practices/localizing-ui-extensions

Anchor to intents
intents
required

Provides information to the receiver of an intent.

Anchor to picker
picker
required

Renders a custom Picker dialog allowing users to select values from a list.

Anchor to query
query
< = unknown, Variables = { [key: string]: unknown; }>(query: string, options?: { variables?: Variables; version?: Omit<, "2023-04">; }) => Promise<{ data?: ; errors?: []; }>
required

Used to query the Admin GraphQL API

Anchor to resourcePicker
resourcePicker
required

Renders the Resource Picker, allowing users to select a resource for the extension to use as part of its flow.

Anchor to storage
storage
required

Provides methods for setting, getting, and clearing browser data from the extension

Was this page helpful?