
Nortly gets your apps, app events and revenue from the Shopify Partner API. You connect your Partner account in the second step of creating a workspace, and the workspace can't be used without it.

## Before you start

- **One Partner account per workspace.** You connect it once, while you create the workspace. The Partner ID can't be changed later. To use a different Partner account, create a separate workspace.
- **You need access to your Shopify Partner Dashboard** to look up your Partner ID and to create an API client.
- **The connection is read-only.** Nortly uses it to read app events and revenue. It never changes your apps and never creates charges.

You need two values from Shopify: your Partner ID and a Partner API access token.

## Find your Partner ID

Your Partner ID is the number in the address of your Shopify Partner Dashboard, right after the domain. For example, if the address ends in "/1234567", your Partner ID is "1234567". You'll also find it on the account settings page of your Partner Dashboard.

## Create a Partner API client and copy its token

1. In your Shopify Partner Dashboard, open **Settings**, then **Partner API clients**, and click **Manage**.
2. Click **Create API client** and give it a name you'll recognize, such as "Nortly Integration".
3. Turn on the **View financials** and **Manage apps** permissions.
4. Create the client and copy its access token.

Nortly needs both permissions and uses them only to read your app events and revenue.

The **Connect your Shopify Partner account** step in Nortly repeats these instructions under **Where to find these values**, with **Open settings** and **Open Partner API clients** links to your Partner Dashboard.

## Connect the account

1. Start creating your workspace as described in [Sign in and set up your workspace](https://chatwoot.devit.group/hc/nortly/articles/sign-in-and-set-up-your-workspace) and click **Continue** on the first step.
2. Optional: in **Connection name**, enter a name for this connection, such as "Main partner account". If you leave it empty, Nortly names it "Shopify Partner".
3. In **Partner ID**, enter your Partner ID. Use digits only.
4. In **Partner API access token**, paste the token you copied.
5. Click **Connect Shopify Partner account**.

Nortly first checks the Partner ID and token with Shopify. Only if they work does it create the workspace, save the connection and open **Home**. Your data import starts right away; see [How your data gets into Nortly](https://chatwoot.devit.group/hc/nortly/articles/how-your-data-gets-into-nortly).

> **Note:** After you connect, Nortly stores the token encrypted and never shows it again. Keep your own copy in a safe place if you need one.

## If the connection fails

When the check fails, you stay on the step, everything you typed stays in the fields, and no workspace is created. The message tells you what went wrong:

| Message | What to check |
|---|---|
| Enter your numeric Partner ID and access token. | The Partner ID must contain digits only, and the token field can't be empty or cut short. Paste the full token again. |
| Partner ID not found. Check the number from your Partner Dashboard URL. | Copy the number from your Partner Dashboard address again. |
| Shopify rejected the access token. Verify the token belongs to this Partner ID and has not been revoked. | Make sure the API client belongs to the same Partner account and is still active. If in doubt, create a new client and use its token. |
| The token is valid but lacks required permissions. Enable View financials and Manage apps on the API client. | Turn on both permissions for the API client in your Partner Dashboard, then try again. |
| Shopify Partner API rate limit reached. Wait a few seconds and try again. | Wait a moment and click **Connect Shopify Partner account** again. |
| Could not reach the Shopify Partner API. Check your connection and try again. | Check your internet connection and try again. If it keeps happening, [contact support](https://devit.group/support). |
| You already have a workspace with this name. | Click **Back** and choose another workspace name. |

## Check the connection or replace the token

After the workspace is set up, its Partner account is shown in **Settings** > **General**, under **Connected platforms**. You see this page only if your role has the **Edit general settings** permission; other members don't have **General** in the Settings menu.

The **Shopify** card shows the connection name, the **Partner ID**, when it was **Connected** and by whom, and when the token was **Last validated**.

To check that Nortly can still read your Partner account:

1. In Nortly Console, go to **Settings** > **General**.
2. Click **Test connection**.

**Connection is working** confirms the token works, and **Last validated** changes to today. If the test fails, a message names the problem, for example that Shopify rejected the access token or that the token lacks the **View financials** and **Manage apps** permissions.

To replace the token, for example after you revoked or rotated it in your Partner Dashboard:

1. Create a new access token in your Partner Dashboard, as described above.
2. In Nortly Console, go to **Settings** > **General**.
3. Click **Rotate token**.
4. In **New access token**, paste the new token.
5. Click **Validate and save**.

Nortly checks the new token against the same Partner ID before it saves it. When it's saved, **Access token rotated** appears and the import continues with the new token.

If the token stops working, the import stops and Home asks you to reconnect your Partner API key. Replace the token as described above. For other causes of missing data, see [Troubleshooting: data is missing or late](https://chatwoot.devit.group/hc/nortly/articles/troubleshooting-missing-or-late-data).

## What you can't change

- **You can't change the Partner ID** of a workspace. To use another Partner account, create a new workspace for it from the account menu. See [Accept an invitation and switch between workspaces](https://chatwoot.devit.group/hc/nortly/articles/join-and-switch-workspaces).
- **You can't disconnect the Partner account.** Removing the connection means deleting the whole organization in **Settings** > **Organization**, which can't be undone. See [Edit your organization profile](https://chatwoot.devit.group/hc/nortly/articles/organization).
