Generate In-App Purchase Key in App Store Connect

Streamline in-app purchase transactions and enhance security by generating an In-App Purchase Key in App Store Connect, enabling secure communication with Apple's servers

The In-App Purchase Key is a specialized API key created within App Store Connect, facilitating secure communication with Apple's servers for in-app purchase transactions. This key enhances security and streamlines the validation process for app purchases, aligning with Apple's focus on improving security measures.

📘

To generate API keys for the App Store Server API, you you must hold either an Admin role or an Account Holder role in App Store Connect. You can also read about how to generate API Keys in the Apple Developer Documentation.

  1. Open App Store Connect. Proceed to Users and AccessIntegrationsIn-App Purchase section.

  2. Then click the add button (+) next to the Active title.

    Generating new in-app purchase key
  3. In the opened Generate in-App Purchase Key window, enter the name of the key for your future reference, as it will not be used in Adapty.

  4. Click the Generate button. Once the Generate in-App Purchase Key window closes, you'll see the created key in the Active list.

    Generated in-app purchase key

    Generated in-app purchase key

  5. Once you've generated your API key, click the Download In-App Purchase Key button to obtain the key as a file.
    It's crucial to keep this file secure for future uploading to the Adapty Dashboard. Note that the generated file can only be downloaded once, so ensure safe storage until you upload it. The generated .p8 key from the In-App Purchase section can be used for both the In-app purchase API and promotional offers.

  6. Copy the values of Issuer ID and Key ID fields from this screen as well. You'll need them later when adding your app to Adapty.