horse revenue Docs

Tutorial: your first app

Connect your Apple developer account

Horse uses an App Store Connect API key to find your apps, import your products and prices, and check purchases with Apple. You add it once per developer team, and every app on that team shares it.

#What you'll need

  • Your Team ID: 10 letters and digits. It's on developer.apple.com/account under Membership details.
  • Access to Users and Access in App Store Connect. Creating a Team Key needs the Admin role, and the first key on a team must be enabled by the Account Holder.

#Create the API key in App Store Connect

  1. Open the keys page

    Sign in to App Store Connect and go to Users and Access → Integrations → App Store Connect API, then choose Team Keys.

    If you've never used the API, Apple shows Request Access first. The Account Holder accepts the terms once, and then anyone with the Admin role can create keys.

  2. Generate a key

    Choose Generate API Key (or the + button), name it Horse Revenue, and give it App Manager access. App Manager is enough for everything Horse does. Admin works too.

    Use a Team Key, not an Individual Key. An individual key stops working when that person leaves the team.

  3. Download the key file

    Choose Download on the new key's row. You get a file called AuthKey_XXXXXXXXXX.p8.

  4. Note the Key ID and Issuer ID

    The Key ID is in the key's row (it's also the 10 characters in the file name). The Issuer ID is the long id shown above the list of keys. Copy both.

#Add it to Horse

  1. Add the developer account

    In the dashboard, open Accounts in the sidebar and choose Add account. Pick App Store, give it a name (your team or company), and enter the Team ID.

  2. Upload the key

    On the new account, choose Upload key next to App Store Connect API key. Pick the .p8 file (or paste its contents), and check the Key ID and Issuer ID. Horse fills in the Key ID from the file name. Choose Upload & test.

  3. Check that it works

    Horse calls Apple with the key straight away. ✓ Connected to Apple means you're done. If the test fails, the message says why. The usual causes are a wrong Issuer ID, or a key that was revoked in App Store Connect.

A developer account with a working App Store Connect API key, in the demo workspace.
A developer account with a working App Store Connect API key, in the demo workspace.

The key is sent once over HTTPS and stored encrypted in a secret manager. It's never shown again, not even to you, and only your workspace can use it.

#Optional extras

On the accountWhat it adds
In-App Purchase keyA separate key used for Apple's App Store Server API. It's optional: Horse uses the App Store Connect key when there isn't one. Make it under Users and Access → Integrations → In-App Purchase.
Vendor numberLets Horse download Apple's daily sales reports, so the app's App Store tab can check Horse's revenue against Apple's own figures. It's under Payments and Financial Reports in App Store Connect.

#What's next

With the key in place, Horse can see your apps. Add your app.