Get started
Which App Store Connect API key role can download finance reports
In short
A key with the Sales and Reports role downloads daily sales reports and gets HTTP 403 on finance reports. A key with the Finance role downloads both. One Finance key is therefore enough for full reconciliation, and an Admin key, which can also do it, gives away far more access than reading reports needs.
What each role can actually download
The App Store Connect API treats sales reports and finance reports as separate scopes, and the role on your API key decides which of the two you get. These results came from three keys of different roles, each asked for the same daily sales report and the same monthly finance report:
| Key role | salesReports | financeReports |
|---|---|---|
| Admin | 200 | 200 |
| Sales and Reports | 200 | 403 |
| Finance | 200 | 200 |
The 403 body was explicit:
code: FORBIDDEN_ERROR, detail: "The API key in use does not allow this request"
So a Sales and Reports key is enough for a downloads dashboard and not enough for financial reconciliation. One Finance key covers both endpoints, which means a reconciliation tool needs exactly one key from you.
Why not just use an Admin key
An Admin key reads both reports, and it can also change your users, your app metadata, your pricing and your agreements. Reading reports needs none of that. If a Finance key leaks, somebody can read your sales history. If an Admin key leaks, somebody can act as you across the whole account. Pick the smaller blast radius.
Creating the key
- In App Store Connect, go to Users and Access, then Integrations, then App Store Connect API.
- Generate a key and set its access to Finance.
- Download the
.p8file. App Store Connect allows this once. If it is lost, the key has to be revoked and replaced. - Note the Key ID and the Issuer ID from the same page.
- Find your Vendor Number under Payments and Financial Reports. Report requests need it, and it is not part of the key.
How the key is used, and where it should live
The key signs a short-lived ES256 JWT. The signature happens wherever the
key is, and only the signed request travels to Apple. Downloading reports
needs no server anywhere in that path. A tool that asks you to upload your
.p8 is choosing to hold your credential, and you are trusting
its storage with read access to every sale you have ever made.
Repdio keeps the key in the system Keychain on your device, signs each request locally, and never writes the key to a log. There is no Repdio server for it to be sent to. The privacy policy states what is stored and where.
Reading the errors instead of retrying them
- 401 usually means the token, not the permission. Check for stray characters in the issuer identifier before suspecting the key, which is a mistake worth making only once.
- 403 is an answer, not a hiccup. The role is wrong, and a retry will return the same thing.
- 429 carries
Retry-After. Honour it rather than backing off on a guess. - 404 on a finance report often means the fiscal period is not published yet, or the region code has no activity for that period.
Common questions
What role should an App Store Connect API key have for reports?
Finance. A Finance key returned HTTP 200 on both salesReports and financeReports on the first attempt. A Sales and Reports key returned 200 on sales and 403 on finance, with the body code FORBIDDEN_ERROR and the detail "The API key in use does not allow this request". An Admin key works too, and is the wrong trade: it can change your account, and reading reports does not need that.
Why does my finance report request return 403 when sales works?
Almost always the key's role. The two reports are separate scopes in the API, and the Sales and Reports role covers only the sales one. Check the role on the key in Users and Access, Integrations, App Store Connect API. A 403 here is a permission answer and will not fix itself on a retry.
Can I download the .p8 private key again later?
No. App Store Connect lets you download the private key once. If it is lost, revoke that key and create another. The file alone is not enough either: the key identifier, the issuer identifier and the vendor number all go with it.
Does the key ever have to leave my machine?
It does not, and in Repdio it does not. The key signs a short-lived ES256 JWT locally, and only the signed request goes to Apple. Repdio stores the .p8 in the system Keychain, never logs it and has no server to send it to.
Related guides
- Set up RepdioThe three things Repdio needs, where to find each one, and what arrives on the first run.
- The three report layersEstimated, reported and paid. What each report means, when it arrives, and the five reasons the three numbers differ.
By Sait Firat NEMIS, developer of Repdio · Last updated 23 November 2026