# Connect Shopify Partner account

Connecting Shopify is what makes CoreX light up — it back-fills your apps,
installs, subscriptions, and billing automatically.

## What you need
- Your **Partner Organization ID** — the number in `partners.shopify.com/<this-number>`.
- A **Partner API access token** — create one in the Partner dashboard under
  *Settings → Partner API clients* (grant read scopes).

## Steps
1. Open the connect step during signup, or go to **Settings → Workspace → Account** (the *Shopify Partner connection* card) anytime.
2. Paste your **Organization ID** and **Partner API token**.
3. Click connect. CoreX **verifies the token** before saving — an invalid token
   is rejected with the reason.
4. On success, CoreX immediately starts [pulling your apps](pull-apps.md) and
   back-filling events + billing in the background.

## Good to know
- The token is stored encrypted and used only for read syncs.
- Re-enter or rotate it anytime from **Settings → Workspace → Account**.
- After the initial backfill, Shopify syncs about every five minutes. Trigger a
  manual re-sync from the app's sync control.

## Troubleshooting
- **"Token invalid"** — confirm it's a *Partner API* token (not an app API key)
  and that the Org ID matches.
- **No data yet** — the first backfill runs in the background; large orgs take a
  few minutes.
