
# Connect App Store Connect

Open the iOS app in the dashboard, go to its **Onboarding** page and choose **Connect the App
Store**. The dialog asks what to share; there are two parts.

| Part | What it gives you | What you upload | Time |
|---|---|---|---|
| **Revenue and installs** (required for reports) | Daily sales, proceeds, refunds, downloads and product names, from Apple's reports | An App Store Connect API key (`.p8`) | About 3 minutes |
| **Real-time subscription events** (optional) | Trials, renewals and cancellations within minutes instead of the next day's report | An In-App Purchase key (`.p8`) and one URL to paste | About 2 minutes |

We use these keys only to read reports and events. They are stored encrypted, never shown again,
and you can replace them at any time.

## Revenue and installs: the reports key

1. In App Store Connect, open **Users and Access → Integrations → App Store Connect API**.
2. Generate a **team key** with the **Admin** access level, or **App Manager** plus **Finance**.
   A Reports-only key can't read product names.
3. Download `AuthKey_XXXX.p8`. Apple lets you download it only once.
4. In the dialog, upload the file. The **Key ID** fills in from the file name. Copy the **Issuer
   ID** from above the key list (one per team).
5. Pick the app from the list of apps the key's team can see, and enter your **vendor number**
   (8 digits, under **Payments and Financial Reports**).

The App Store ID is fixed to the Kerdly app once it is set: connecting a key checks that the key
can see that app.

## Real-time subscription events

1. In App Store Connect, open **Users and Access → Integrations → In-App Purchase** and **Generate
   key**. Upload `SubscriptionKey_XXXX.p8`. Apple signs each event; this key lets us look up the
   full transaction behind it.
2. Copy the **Server notification URL** the dialog shows. It looks like
   `https://hooks.kerdly.com/<project id>`.
3. In App Store Connect, open the app's **App Information → App Store Server Notifications** and
   paste it as the **Production Server URL**, **Version 2**.

Already send notifications to your own server? Keep doing so. Your project can forward each raw
notification to your own URLs under **Project → Store notifications**.

## What happens next

- **Sales and proceeds**: the last 45 days load right away, then every hour from 12:00 to 22:00 UTC.
  The rest of the past year follows in the background.
- **Installs and trials**: in 24 to 48 hours, once Apple makes the first analytics reports. We read
  them at 06:10 and 16:00 UTC.
- **Payouts**: Apple's monthly finance reports, read daily at 14:35 UTC, back to your first release.
- **Product names**: read daily at 07:00 UTC.
- **Real-time events**: as they happen, with a catch-up every 15 minutes.

The Onboarding page shows each of these with its own status.

## Disconnect

The same dialog removes either key, or disconnects the App Store entirely. Data already imported
stays. Apple doesn't let us revoke a key itself, so the dialog then shows where to revoke it in App
Store Connect. Skip that if another tool shares the key.

---

Source: https://kerdly.com/docs/get-started/app-store. Index of all docs: https://kerdly.com/llms.txt
