# App Store

{% stepper %}
{% step %}

#### [Settings on the App Store Connect side](#settings-on-app-store-connect-side)

{% endstep %}

{% step %}

#### [Settings on devtodev side](#settings-on-devtodev-side-1)

{% endstep %}
{% endstepper %}

## **Settings on the App Store Connect side** <a href="#settings-on-app-store-connect-side" id="settings-on-app-store-connect-side"></a>

To get detailed information about the transaction, devtodev requires access to the App Store Server API. To grant this access, you will need to generate an **In-App Purchase API key**.

Generating the key:

1. Authorize on [App Store Connect](https://appstoreconnect.apple.com/).
2. Navigate to the Users and Access section.

   <figure><img src="https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2FsMg0ny4uBqN3QpIcXzBQ%2Fimage.png?alt=media&#x26;token=e149cd1a-7275-4b8c-bb8c-eca2dcce07a5" alt=""><figcaption></figcaption></figure>
3. In the **Integrations** tab (1), select **In-App Purchase** from the menu on the left (2), and click `(+)` to add the key (3).

   <figure><img src="https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2F9eHB6EbV5QC2N9USPalK%2Fimage.png?alt=media&#x26;token=3b5d3ff3-49fd-4dfb-936e-32d9f07c38f4" alt=""><figcaption></figcaption></figure>
4. Specify the name of the key, for example: "devtodev API Key", and click `Generate`.

   <figure><img src="https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2FutKfcgcxL3Xz54CXvulW%2Fimage.png?alt=media&#x26;token=bdf78d36-1744-4e85-82ac-d985664e0686" alt=""><figcaption></figcaption></figure>
5. To grant the necessary access to the devtodev service, it is necessary to pass  the following information:

   * Issuer ID
   * Key ID
   * The generated **.p8** file of the In-App Purchase key&#x20;
   * Bundle identifier of the application (App Bundle ID)

   <figure><img src="https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2F8OnNRg2pXIglCJ8SS4Vr%2Fimage.png?alt=media&#x26;token=a2e7970c-2e6a-48fa-a0ba-25d7fdf0266b" alt=""><figcaption></figcaption></figure>

## **Settings on devtodev side** <a href="#settings-on-devtodev-side" id="settings-on-devtodev-side"></a>

1. Go to `Settings → Payments integration → IA refunds tracking`.<br>

   <figure><img src="https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2FvhrhldDPrvonQ2VDnyRA%2FScreenshot%202025-07-28%20at%2017.37.52.png?alt=media&#x26;token=6c87aa63-7139-47d5-a4d7-91edecf0575c" alt=""><figcaption></figcaption></figure>
2. Fill in the integration form with the data [obtained earlier from the App Store](#settings-on-app-store-connect-side):&#x20;

   * App Bundle ID
   * Issuer ID
   * Key ID
   * Upload the **.p8** file of the In-App Purchase key.

   <figure><img src="https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2F3zcQgoa68rpc3aXsl1mt%2FScreenshot%202025-07-28%20at%2017.37.14.png?alt=media&#x26;token=bda6d2ce-607c-4370-bb8a-ac96f942ba3b" alt="refunds step 2 ios"><figcaption></figcaption></figure>
3. When the integration is complete, the status will change to **Active**.&#x20;

   <figure><img src="https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2FTCe4W5c0NHJ8Srm38kuu%2FScreenshot%202025-07-28%20at%2017.37.05.png?alt=media&#x26;token=e5028c51-99d7-4ff4-a498-fd40f446f46b" alt="refunds step 3 ios"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.devtodev.com/integration/autocapture/automatic-refund-tracking/app-store.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
