Connect your Shopify Partner account to Ranksy to track revenue, customers, subscriptions, and business metrics for your app.

These features **require** the Partner API: the Revenue hub (all tabs except Usage Events), the CRM customer list and automations, revenue and install goals, Affiliates, App Store Ads revenue and ROAS, and Meta and Reddit conversions. For the full list, see [Which Features Need Which Connection](https://docs.ranksyapp.com/hc/docs/articles/integration-requirements).

## What You'll Get

Once connected, Ranksy automatically imports:

- **Revenue Data**: Daily, weekly, monthly earnings
- **MRR (Monthly Recurring Revenue)**: Predictable income tracking
- **Customer Count**: Total paying customers
- **New Installs**: Recent app installations
- **Churn**: Customers who cancelled
- **Subscription Changes**: Upgrades and downgrades
- **Customer Details**: Complete merchant information

Ranksy shows this data in the [Revenue Overview](https://docs.ranksyapp.com/hc/docs/articles/revenue-dashboard), [Subscriptions](https://docs.ranksyapp.com/hc/docs/articles/subscriptions), [Churn](https://docs.ranksyapp.com/hc/docs/articles/churn), and [CRM](https://docs.ranksyapp.com/hc/docs/articles/customer-management) pages.

## Before You Start

Make sure that you have:

- The owner role in your Shopify Partner organization. Only the organization owner can create a Partner API client.
- The **Manage Integrations** permission in your Ranksy team. Refer to [Team Management](https://docs.ranksyapp.com/hc/docs/articles/team-management).
- Approximately 3 minutes.

**Note:** If you are not the organization owner, you can ask the owner to connect the app for you. Refer to the section "Ask the Owner to Connect" in Step 2.

## Step 1: Get Your Credentials from Shopify

You need three items from your Shopify Partner Dashboard: the Organization ID, the App ID, and an access token.

### Find the Organization ID and App ID

1. Log in to the [Shopify Partner Dashboard](https://partners.shopify.com).
2. Go to **Apps**.
3. Click your app.
4. Look at the URL in the address bar of your browser. The URL has this format: `partners.shopify.com/123456/apps/789012`.
5. Copy the first number (`123456`). This is your **Organization ID**.
6. Copy the last number (`789012`). This is your **App ID**.

### Create an Access Token

Shopify makes the access token from a **Partner API client**.

1. Open [Partner Dashboard → Settings → Partner API clients](https://partners.shopify.com/current/settings/partner_api_clients).
2. Click **Manage Partner API clients**.
3. Click **Create API client**.
4. Type the name `Ranksy`. This name helps you find the client and revoke it later.
5. Tick **View financials**. Ranksy uses this permission for transactions and payouts.
6. Tick **Manage apps**. Ranksy uses this permission for install and subscription events.
7. Save the client.
8. Copy the access token. The token starts with `prtapi_`.

⚠️ **Warning:** Copy the token immediately and keep it in a safe location. Shopify can show the token only one time. Treat the token as a password. Do not share it and do not put it in a code repository.

## Step 2: Enter Credentials in Ranksy

### Open the Partner API Tab

1. In Ranksy, click your name at the bottom of the sidebar.
2. Click **Manage Apps**.
3. Click your app. [App Settings](https://docs.ranksyapp.com/hc/docs/articles/app-settings) opens.
4. Click the **Partner API** tab.

**Note:** If you click **Configure** in the message that shows after you add an app, App Settings also opens.

### Enter and Test Your Credentials

In the **Shopify Partner API** card:

1. Enter your **Organization ID**.
2. In the **API Key** field, paste the access token.
3. Enter your **App ID**.
4. Click **Test connection**.
5. Make sure that the message "Connection verified" shows.
6. Click **Save Configuration**.

The **Save Configuration** button stays disabled until the test passes. If you change a field after the test, you must test again.

### What Happens After Save

When you click **Save Configuration**:

1. Ranksy checks your credentials again.
2. Ranksy starts the first sync automatically.
3. The first sync imports the full history that the Partner API gives for your app.
4. The message "Partner API connected." shows.

**Note:** There is no separate sync button. When you save the credentials, the import starts.

### Ask the Owner to Connect

If you do not have access to the Partner organization, you can ask a different person to connect it:

1. On the **Partner API** tab, find the text **Not the one with access?**
2. Click **Ask them to connect it**.
3. Enter **Their email**. You can also add **Their name (optional)** and **Add a note (optional)**.
4. Click **Send request**.

Ranksy sends an email to that person with the steps to connect the app.

## Step 3: Monitor the Sync

### Check Sync Status

The **Shopify Partner API** card on the **Partner API** tab shows:

- A status badge, for example **Connected**, **Connecting**, **Error**, or **Auth Error**
- The time of the last sync
- An error message, if the sync failed

You can close the page. The sync continues in the background.

### Verify Data Appeared

After the first sync completes:

1. Open the **Dashboard**. The Revenue widget shows live data.
2. Click **Revenue** in the sidebar.
3. Make sure that you see data on these tabs:
    - **Overview**: MRR and the revenue summary
    - **Earnings**: Earnings, payouts, and Shopify fees
    - **Subscriptions**: Subscription metrics

To see the list of customers, click **CRM** → **Customers** in the sidebar.

## Managing Your Connection

### Automatic Syncing

After you connect, Ranksy syncs new and changed data automatically, approximately every 4 minutes. You do not have to do anything.

### Billing Model

The **Billing model** section shows how your app bills merchants. Ranksy detects this automatically and checks it again every hour. The options are:

- **Shopify App Pricing**
- **Legacy billing**
- **Mixed**

If the detected model is wrong, click the correct option. To give control back to Ranksy, click **Reset to auto-detect**.

### Count Trials as Active Subscriptions

By default, Ranksy does not count merchants in a free trial as active subscriptions. To count them, turn on **Count trials as active subscriptions**. This setting changes active subscriptions, plan distribution, and LTV.

### Update Credentials

Ranksy never shows your saved access token again. To change the credentials:

1. Open the **Partner API** tab.
2. Change the **Organization ID** or the **App ID**, if necessary.
3. Enter the access token again in the **API Key** field.
4. Click **Test connection**.
5. Click **Save Configuration**.

### Disconnect

1. Open the **Partner API** tab.
2. Click **Disconnect Partner API**.
3. Click **Yes, Disconnect**.

⚠️ **Warning:** When you disconnect, Ranksy clears your credentials and deletes the revenue data that it imported for this app. To get the data again, connect again. The first sync then imports the full history again.

## Troubleshooting

### Error: "Your API access token is invalid or revoked"

**Fix:**

- Copy the token again. The token is case-sensitive.
- Make sure that there are no spaces at the start or the end.
- If you do not have the token, create a new Partner API client and copy its token.

### Error: "We couldn't authenticate"

**Fix:**

- Make sure that the token is from the same Partner organization as the **Organization ID**.
- Make sure that **View financials** and **Manage apps** are both ticked on the Partner API client.

### Error: "Organization or App not found" or "App not found"

**Fix:**

- Make sure that you did not swap the **Organization ID** and the **App ID**.
- Compare the numbers with the URL of your app: `partners.shopify.com/ORG_ID/apps/APP_ID`.
- Make sure that the app belongs to the Partner organization that you entered.

### Error: "Access denied"

**Fix:**

- Make sure that the app belongs to the Partner organization that you entered.
- Make sure that the Partner API client has the **Manage apps** permission.

### Error: "Rate limited by Shopify"

**Fix:**

- Wait 1 minute. Then click **Test connection** again.

### Sync Stuck or Taking Too Long

**What to try:**

- Large apps can take some hours for the first sync.
- Look at the status badge and the time of the last sync on the **Partner API** tab.
- If the status is **Error** or **Auth Error**, read the error message and enter the credentials again.
- If the first sync does not complete in 6 hours, contact support.

### Data Doesn't Match Partner Dashboard

**Fix:**

- Make sure that the date ranges are the same.
- Some metrics use a different calculation or time zone in Ranksy.
- If the data is still different, contact support.

## Security & Privacy

**Credentials:**

- Ranksy encrypts the access token at rest.
- Ranksy never shows the token again, also not to you.
- To stop access immediately, delete the Partner API client in your Partner Dashboard.

**Data Access:**

- Ranksy uses read access only.
- Ranksy never changes your Shopify data.
- Your data is isolated from other teams.

## FAQ

**Is the Partner API free to use?**

Yes. Shopify does not charge for the Partner API within reasonable usage limits.

**Will this affect my Shopify billing?**

No. Connecting the Partner API doesn't change your Shopify costs.

**Can I connect multiple apps?**

Yes. Connect each app separately on its own **Partner API** tab. You can use the same token for apps in the same Partner organization.

**What if my access token leaks?**

Delete the Partner API client in your Partner Dashboard. Access stops immediately. Then create a new client and enter the new token in Ranksy.

**Can I pause syncing?**

No. Ranksy has no pause option. If you disconnect, Ranksy deletes the imported revenue data. When you connect again, Ranksy imports the full history again.

**Do I have to sync manually?**

No. Ranksy syncs automatically, approximately every 4 minutes. There is no manual sync button.

## Next steps

- [Connect BigQuery with Service Account](https://docs.ranksyapp.com/hc/docs/articles/connect-bigquery-service-account) — Add traffic and session data.
- [Revenue Overview](https://docs.ranksyapp.com/hc/docs/articles/revenue-dashboard) — Explore MRR, earnings, subscriptions, churn, trials, and customers.
- [App Settings](https://docs.ranksyapp.com/hc/docs/articles/app-settings) — Manage all integrations of your app.
- [support@ranksyapp.com](mailto:support@ranksyapp.com) — Get help by e-mail or in the chat widget. Include your app name and any error messages.