---
title: Account connection
description: >-
Many apps integrate with external services like marketing platforms, sales
channels, or analytics providers. The account connection composition gives
merchants a clear interface to connect or
api_name: app-home
source_url:
html: >-
https://shopify.dev/docs/api/app-home/patterns/compositions/account-connection
md: >-
https://shopify.dev/docs/api/app-home/patterns/compositions/account-connection.md
---
# Account connection
Many apps integrate with external services like marketing platforms, sales channels, or analytics providers. The account connection composition gives merchants a clear interface to connect or disconnect these integrations.
Display connection status, the connected account name, and provide actions to connect or disconnect. Place this composition in your settings or on a dedicated integrations page.
### Related Components (7) APIs (2) Templates (1)
### Supported components
* [Button](https://shopify.dev/docs/api/app-home/polaris-web-components/actions/button)
* [Grid](https://shopify.dev/docs/api/app-home/polaris-web-components/layout-and-structure/grid)
* Grid​Item
* [Heading](https://shopify.dev/docs/api/app-home/polaris-web-components/typography-and-content/heading)
* [Section](https://shopify.dev/docs/api/app-home/polaris-web-components/layout-and-structure/section)
* [Stack](https://shopify.dev/docs/api/app-home/polaris-web-components/layout-and-structure/stack)
* [Text](https://shopify.dev/docs/api/app-home/polaris-web-components/typography-and-content/text)
### Available APIs
* [Modal API](https://shopify.dev/docs/api/app-home/apis/user-interface-and-interactions/modal-api)
* [Toast API](https://shopify.dev/docs/api/app-home/apis/user-interface-and-interactions/toast-api)
### Recommended templates
* [Settings](https://shopify.dev/docs/api/app-home/patterns/templates/settings)
#### Use cases
* Displaying connection status for sales channels or platforms
* Allowing merchants to connect or disconnect external accounts
* Integrating with marketing, social, or fulfillment services
***
## Examples
### Display connection status with connect button and terms
Merchants need to connect or disconnect external services (e.g. marketing platforms, sales channels) from your app. This pattern displays account connection layout with a connect button and terms. The [grid](https://shopify.dev/docs/api/app-home/web-components/layout-and-structure/grid) aligns account information and button, the [section](https://shopify.dev/docs/api/app-home/web-components/layout-and-structure/section) provides padding, and the terms text below describes the connection agreement.
##### jsx
```tsx
Puzzlify
No account connected
Connect
By clicking Connect, you agree to accept Sample App's terms and
conditions. You'll pay a commission rate of 15% on sales made through
Sample App.
```
##### html
```html
Puzzlify
No account connected
Connect
By clicking Connect, you agree to accept Sample App's terms and conditions. You'll pay a commission rate of 15% on sales made through Sample App.
```
### Confirm disconnect with Modal
Use the [Modal API](https://shopify.dev/docs/api/app-home/apis/modal-api) to confirm account disconnection before removing the integration.
##### jsx
```tsx
Puzzlify
Connected as puzzles@example.com
Disconnect
Your account has been connected since January 15, 2025.
Are you sure you want to disconnect your Puzzlify account? You'll need to reconnect to continue syncing data.
Any pending syncs will be cancelled and your integration settings will be removed.
Disconnect
Cancel
```
##### html
```html
Puzzlify
Connected as puzzles@example.com
Disconnect
Your account has been connected since January 15, 2025.
Are you sure you want to disconnect your Puzzlify account? You'll need to reconnect to continue syncing data.
Any pending syncs will be cancelled and your integration settings will be removed.
Disconnect
Cancel
```
### Show connection feedback with Toast
Use the [Toast API](https://shopify.dev/docs/api/app-home/apis/toast) to show feedback when an account is connected or disconnected.
##### jsx
```tsx
Puzzlify
No account connected
{
shopify.toast.show('Account connected successfully');
}}
>
Connect
By clicking Connect, you agree to accept Sample App's terms and
conditions. You'll pay a commission rate of 15% on sales made through
Sample App.
```
##### html
```html
Puzzlify
No account connected
Connect
By clicking Connect, you agree to accept Sample App's terms and
conditions. You'll pay a commission rate of 15% on sales made through
Sample App.
```
***