> ## Documentation Index
> Fetch the complete documentation index at: https://developers.perform.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Shopify integration setup

> Connect your Shopify store to Perform.AI so shipments import automatically and are tracked end to end.

The Shopify integration imports orders and shipments from your Shopify store into Perform.AI automatically, with no API coding required. Setup has three steps: create the integration in Perform.AI, create a Shopify app in the Dev Dashboard, then add the app's credentials in Perform.AI and activate.

> [!NOTE]
>
> Perform.AI only **reads** the relevant Shopify data (orders, fulfillments, product images); it never writes back to your store.

## Before you start

* In Shopify, you need the **App developer** role, or on Shopify Plus the **Build and manage apps** organization permission. Store owners have it by default. Collaborator accounts can't use the Dev Dashboard.
* Create the app in the same Shopify organization that owns the store. Perform.AI connects with Shopify's client credentials grant, which only works when the app and the store belong to the same organization.

## Step 1: Create the integration in Perform.AI

1. In Perform.AI, go to **Settings** > **Integrations**.
2. Under **Available Integrations**, select **Add Store** on the Shopify tile.
3. Enter the **Store URL** and any store details you want, then select **Save**. The integration is saved with the status **Draft**.

**Store credentials**

| Field | Needed for | Notes |
| - | - | - |
| **Store URL** | Saving and activating | Only the subdomain part of your `myshopify.com` address: for `northwind-apparel.myshopify.com`, enter `northwind-apparel`. Use 4 to 60 lowercase letters, digits and single hyphens. |
| **API Key** | Activating | Your Shopify app's **Client ID**, created in Step 2. |
| **API Secret Key** | Activating | Your Shopify app's **Client secret**. |

You can leave **API Key** and **API Secret Key** empty for now and add them in Step 3.

**Store details** (all optional)

* **Store Display Name**: a name for the store in Perform.AI. It is also added as a tag to imported shipments.
* **Tracking Page**: links imported shipments to one of your published Tracking Pages for shopper notifications and tracking.
* **Store Tag**: tags added to every shipment imported from this store.
* **Manual Sync Duration**: available once the integration is activated. Shipments import automatically, but you can re-pull recent data: choose **Today** or **Last Week**, then select **Sync**.

## Step 2: Create a Shopify app in the Dev Dashboard

The integration authenticates through an app you create in Shopify's Dev Dashboard.

> [!WARNING]
>
> Shopify's legacy custom apps are no longer supported for new integrations. Create the app in the Dev Dashboard.

**1. Open the Dev Dashboard**

In your Shopify admin, go to **Settings** > **Apps** and select **Develop apps**. If the **App development** page opens, select **Build apps in Dev Dashboard**. You can also go straight to `https://dev.shopify.com/dashboard/`.

**2. Create the app**

Under **Apps**, select **Create app**, then **Start from Dev Dashboard**. Enter a name and select **Create**. Any name works; we recommend `Perform.AI Integration - {your account name}`.

**3. Configure the app version**

On the app's **Versions** page:

* Set the **App URL** to `https://www.perform.ai` and **uncheck** **Embed app in Shopify admin**. The app has no interface in your Shopify admin.
* In **Webhooks API Version**, select the **oldest available version**. Shopify releases versions quarterly and moves a retired version forward to the next supported one automatically, so you set this once and never need to update it.

**4. Select access scopes**

In the **Access** section, select these four scopes. All are read-only, and all are **mandatory** for the integration to work:

* `read_orders`: order and shipment information
* `read_products`: line-item product images
* `read_assigned_fulfillment_orders`: fulfillment order information
* `read_fulfillments`: fulfillment information

Select **Release**, optionally enter a version name, and select **Release** again to publish the version.

**5. Set the contact email**

Open the app's **Settings**. Under **Contact Information**, select **Edit**, enter `shopify-integration@parcelperform.com` and select **Save**. This lets Perform.AI receive Shopify's notices about your app and fix issues quickly.

**6. Install the app on your store**

Open the app. In the **Installs** section, select **Install app**, choose your store if you have more than one, and select **Install**. To confirm, check that the app appears under **Settings** > **Apps** in your Shopify admin.

> [!NOTE]
>
> If you turn on an IP allowlist for your Shopify app, add Perform.AI's IP addresses to it, or Perform.AI's requests to your store fail. Shopify recommends an allowlist but doesn't require one for an app you create for your own store. For the addresses, contact your account team or Perform.AI Customer Success. See Shopify's [IP allowlist documentation](https://shopify.dev/docs/apps/build/dev-dashboard/ip-allowlist).

**7. Copy the credentials**

In the app's **Settings**, find the **Credentials** section. Keep the **Client ID** and **Client secret** at hand for Step 3.

## Step 3: Add the credentials and activate

1. In Perform.AI, go to **Settings** > **Integrations** and open your Shopify store from the **My Integrations** table.
2. Edit the store credentials: paste the Shopify **Client ID** into **API Key** and the **Client secret** into **API Secret Key**, then select **Save**. Perform.AI checks the credentials with Shopify when you save.
3. Select **Activate**, then **Confirm**. **Activate** stays unavailable until the store URL and both credentials are saved.

When activation succeeds, the status changes to **Activated**, followed by the store's status as reported by Shopify in brackets. Perform.AI subscribes to your store's order updates and starts a first sync, and shipments import automatically from then on.

## Manage the integration

* **Change credentials**: select **Deactivate** and confirm, then enter both the **API Key** and **API Secret Key** again in full. Saved credentials are masked, so both must be re-entered together. Save and activate again.
* **Change store details**: **Store Display Name**, **Tracking Page** and **Store Tag** can be changed at any time, including while the integration is active.
* **Re-pull data**: while the integration is active, choose a **Manual Sync Duration** and select **Sync**.
* **Delete the integration**: deactivate it first. Then open the actions menu in the panel header, select **Delete** and confirm. Draft integrations can be deleted straight away.

## Troubleshooting

| Message | Cause | Fix |
| - | - | - |
| Activation failed due to wrong credentials provided | The API Key or API Secret Key doesn't match the Shopify app | Copy the **Client ID** and **Client secret** from the app's **Settings** again, re-enter both, save and activate. Check that the app and the store are in the same Shopify organization. |
| Activation failed due to invalid store URL | The Store URL isn't a valid store subdomain | Enter only the part before `.myshopify.com`, in lowercase, and save again. |
| An error occurred: please try again | Activation failed for another reason, for example the app isn't installed on the store or the store's plan isn't active | Check that the app is installed on the store named in **Store URL** and that the store is active, then try again. If it still fails, contact Perform.AI Customer Success. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.