Customer account UI extensions
Customer account UI extensions let app developers build custom functionality that merchants can install at defined points on the Order index, Order status, and Profile pages in customer accounts.
Some static extensions on the Profile page only render for B2B customers. B2B on Shopify is only available on the Shopify Plus plan. See B2B Profile targets
Anchor to scaffolding-extensionScaffolding an extension
Use Shopify CLI to generate a new extension in the directory of your app.
Scaffolding
Anchor to extension-targetsExtension targets
Extension targets

Anchor to configuration-fileConfiguration file
When you create a customer account UI extension, the shopify.extension.toml file is automatically generated in your customer account UI extension directory. It contains the extension's configuration, which includes the extension name, extension targets, metafields, capabilities and settings definition.
Shopify.ui.extension.example.toml
toml
Anchor to extension-apisExtension APIs
APIs enable customer account UI extensions to get information about the customer or related objects and to perform actions. For example, you can use APIs to retrieve previous orders of the customer so that you can offer related products as upsells.
Extensions use JavaScript to read and write data and call external services, and natively render UIs built using Shopify's checkout and customer account components.
Extension APIs
Anchor to ui-componentsUI components
Customer account UI extensions declare their interface using supported UI components. Shopify renders the UI natively so it's performant, accessible, and works in all of customer account supported browsers.
Components are designed to be flexible, enabling you to layer and mix them to create highly-customized app extensions that feel seamless within the customer account experience. All components that will inherit a merchant's brand settings and the CSS cannot be altered or overridden.
To build customer account UI extensions, you can use checkout components, and customer account components.
UI components

Anchor to custom-protocolsCustom protocols
Custom protocols make it easier to navigate to common locations, and construct URLs.
Anchor to custom-protocols-shopify-protocolShopify protocol
Use the shopify:customer-account
protocol when you want to construct a URL with a root of customer accounts.
Anchor to custom-protocols-relative-urlsRelative URLs
Relative URLs are relative to your extension and are useful when you want to link to a route in your extension.
Anchor to custom-protocols-extension-protocolExtension Protocol
Triggers a navigation to an extension using the extension:
protocol. The handle is the handle of the extension that will be navigated to in the same application. Build a full-page extension to create a new page in customer accounts and handle the navigation.
Shopify:customer-account
Anchor to securitySecurity
Customer account UI extensions are a safe and secure way to customize the appearance and functionality of the customer account pages without compromising the security of customer data.
- They run in an isolated sandbox, separate from the customer account page and other UI extensions.
- They don't have access to sensitive payment information or the customer account page itself (HTML or other assets).
- They are limited to specific UI components and APIs that are exposed by the platform.
- They have limited access to global web APIs.
- Apps that wish to access protected customer data, must submit an application and are subject to strict security guidelines and review proccesses by Shopify.
You can't override the CSS for UI components. The customer account UI extension will always render the merchant's own branding as shown in the image in the UI components section above.
Customer account UI extensions don't have access to the DOM and can't return DOM nodes. They can't return <div>
elements, for example. Building an arbitrary tree of HTML and loading additional scripts using script tags are also not supported.
Anchor to troubleshootingTroubleshooting
Find an end-to-end guide to testing your extensions in Testing customer account UI extensions.
Anchor to tutorialsTutorials
Learn how to build customer account UI extensions using APIs and UI components.