Guides

In-App Purchase key: how to create it and what it gives you

An In-App Purchase key opens the App Store Server API: purchase history for each person. You create it next to the API key: Integrations → In-App Purchase → Generate In-App Purchase Key. The file is called SubscriptionKey_….p8. Without it the app still works, but counts purchases as totals from the reports.

Updated

Download on the App Store
Subscriptions in Lumetric: paying people and repeat purchases from the In-App Purchase key

At a glance

  • It is a second key, in addition to the App Store Connect key
  • It only reads purchases and is stored on the device, in the Keychain
  • Lumetric downloads the history for the last 180 days
  • Notifications about purchases, trials and refunds are part of Pro

Create and connect an In-App Purchase key

  1. Open Integrations

    App Store Connect → Users and Access → Integrations.

  2. Create the key

    On the left choose In-App Purchase and click Generate In-App Purchase Key (or +). Name it, for example, Lumetric.

  3. Download SubscriptionKey_XXXXXXXXXX.p8

    Apple lets you download the file only once. Keep a copy.

  4. Copy the Key ID

    It is next to the key. The Issuer ID is at the top of the same page and is the same as for your App Store Connect key: Lumetric fills it in itself.

  5. Connect in Lumetric

    Settings → Accounts & connections → your account → In-App Purchase key. Tap Choose the .p8 file, check the Key ID and Issuer ID and tap Connect.

What the key adds

Without the keyWith an In-App Purchase key
Purchases and subscriptions as totals from the reportsEvery purchase on its own, by person
A repeat purchase counts as one more personPaying people, how much one person paid, repeat buyers
Trials arrive in the reports with a delayNew trials and payments straight from Apple
-Cohorts by month of first payment
-Notifications about purchases, trials and refunds (Pro)

Notifications arrive when iOS allows a background check, usually every 1–4 hours. When you open Lumetric, the check runs immediately.

If Apple returned an empty history

The key works, but Apple returned no purchases for the last 30 days? Apple keeps history only for apps with App Store Server Notifications turned on: App Store Connect → your app → App Information → App Store Server Notifications → Production Server URL.

If you use a subscription service, the URL is most likely already set there. History starts from the day the URL was set and goes back no further than 180 days.

You can remove the key

The same screen has Download again and Remove the In-App Purchase key. After removal the app goes back to totals from the reports.

FAQ

Lumetric says it's the wrong key

You most likely picked an AuthKey_….p8 file. Here you need the In-App Purchase key: SubscriptionKey_….p8.

Apple doesn't accept the key

Check: the Key ID is from the In-App Purchase tab, not from the App Store Connect key; the Issuer ID is from the top of the same page; the key isn't revoked. A key created a minute ago may start working in a few minutes.

The key works but there is no data

The app needs App Store Server Notifications turned on, see above. If the app isn't in the App Store yet, Apple won't return any data.