# App Store Connect API

拉取appstore销售报表和财务报表，需要在Appflow配置App Store Connect API。

1. 在appflow配置appstore
   1. Setting -> Applications Manage
   2. 选中对应的application -> Edit
   3. 打开Enable Appstore
   4. 填写Issuer ID, KeyID, Vendor Number,
   5. 上传Connect Api Private Key证书文件

<figure><img src="/files/PcpoXR2nHZidR27v5HpT" alt=""><figcaption></figcaption></figure>

2. 如何在appstore connect后台获取以上配置信息？

详细步骤：

1. 登录AppStore connect后台
2. 选择User and Access -> Integrations -> App Store Connect API
3. 选择Team Keys
4. 复制Issuer ID到Appflow
5. 点击Edit创建密钥，将生成后的KEY ID和证书填写到appflow（ps: 证书只能下载一次，请注意保存）

appstore文档：[为appstore connect api创建密钥](https://developer.apple.com/documentation/appstoreconnectapi/creating-api-keys-for-app-store-connect-api)

<figure><img src="/files/M9B6vzofr9017HaJva5d" alt=""><figcaption></figcaption></figure>

2. Issuer ID 获取

<figure><img src="/files/3xd2bUiNlvCCCFdKebmz" alt=""><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://doc.appflow.ai/docs/integrations/app-store-connect-api.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.
