# appstore_sales

> 한 앱 또는 Apple 팀 전체에 대한 Apple의 판매 보고서에서 다운로드, 재다운로드, 업데이트, 앱 내 구입, 수익을 읽습니다.

Source: https://air.build/ko/docs/mcp-tools/appstore_sales/

Apple의 판매 보고서를 합산합니다. 한 앱(`projectId` 또는 `appId`) 또는 Apple 팀의 모든 앱에 대한 다운로드, 재다운로드, 업데이트, 앱 내 구입, 수익입니다. 최근 며칠(기본 7일, 어제까지) 또는 한 달을 다룹니다. Apple은 각 날짜의 보고서를 약 하루 늦게 게시하며, 아직 보고서가 없는 날짜는 `noReportYet`에 나열됩니다. 아무것도 바꾸지 않습니다.

판매 보고서를 보려면 App Store Connect에서 Apple의 유료 앱 계약을 수락해야 합니다. AirBuild에 아직 Apple 팀의 공급업체 번호가 없으면, 첫 호출에서 AirBuild에 있는 팀 소유자의 Apple 로그인을 통해 Apple에 번호를 요청합니다.

이 도구는 기간이 길면 시간이 걸릴 수 있습니다. 클라이언트가 스트림을 받으면 진행 상황을 담은 스트림으로 응답합니다([서버와 로그인](https://air.build/ko/docs/mcp-tools/server/#transport) 참고).

| 읽기 전용 | 파괴적 | 멱등 |
| --- | --- | --- |
| 예 | 아니요 | 예 |

## 입력

| 입력 | 유형 | 필수 | 기본값 | 설명 |
| --- | --- | --- | --- | --- |
| `teamId` | 문자열 (UUID) | yes | — | [list_teams](https://air.build/ko/docs/mcp-tools/list_teams/)의 팀. |
| `projectId` | 문자열 (UUID) | no | — | 한 앱: [list_projects](https://air.build/ko/docs/mcp-tools/list_projects/)에서 얻은 프로젝트의 앱. |
| `appId` | string | no | — | 한 앱. [appstore_list_apps](https://air.build/ko/docs/mcp-tools/appstore_list_apps/)에서 얻은 App Store Connect id로 지정합니다. |
| `appleTeamId` | 문자열 (UUID) | 여러 Apple 팀이 연결되어 있고 앱을 지정하지 않았을 때 | 연결된 유일한 팀 | [appstore_list_apple_teams](https://air.build/ko/docs/mcp-tools/appstore_list_apple_teams/)의 Apple 팀. 앱을 지정하지 않으면 그 팀의 모든 앱을 집계합니다. |
| `days` | 정수, 1~31 | no | 7 | `endDate`로 끝나는 일수. |
| `endDate` | 문자열, `YYYY-MM-DD` | no | yesterday | 마지막 날짜(태평양 시간). |
| `month` | 문자열, `YYYY-MM` | no | — | 대신 한 달 전체. 이때 `days`와 `endDate`는 무시됩니다. |

모든 도구가 입력에 대해 하는 검사는 [서버와 로그인](https://air.build/ko/docs/mcp-tools/server/#errors)에 있습니다.

## 결과

텍스트와 `structuredContent`로 제공되는 JSON 객체.

| 필드 | 내용 |
| --- | --- |
| `scope` | 앱(`appId`, `name`) 또는 Apple 팀(`appleTeamId`, `apps: "all"`) |
| `period` | `from`과 `to` 날짜, 또는 `month` |
| `totals` | `downloads`(첫 다운로드), `redownloads`, `updates`, `inAppPurchases`(단위 수), 그리고 `proceeds`: Apple이 보고한 대로의 통화별 개발자 수익 |
| `byDay` | 월이 아닌 일 단위에서만: `date`, `downloads`, `inAppPurchases` |
| `topCountries` | 다운로드가 가장 많은 10개 국가: `country`(두 글자 코드), `downloads` |
| `products` | 업데이트를 제외하고 단위 수가 가장 많은 20개 제품: `sku`, `title`, `type`(Apple의 제품 유형), `units`, 통화별 `proceeds`. 한 앱이면 그 앱의 앱 내 구입이 포함됨 |
| `noReportYet` | 일부 보고서가 없을 때만: 보고서가 없는 날짜(또는 월) |

```json
{
  "scope": {
    "appId": "1234567890",
    "name": "Notes"
  },
  "period": {
    "from": "2026-11-12",
    "to": "2026-11-18"
  },
  "totals": {
    "downloads": 120,
    "redownloads": 14,
    "updates": 300,
    "inAppPurchases": 6,
    "proceeds": {
      "USD": 20.94
    }
  },
  "byDay": [
    {
      "date": "2026-11-18",
      "downloads": 18,
      "inAppPurchases": 1
    }
  ],
  "topCountries": [
    {
      "country": "US",
      "downloads": 64
    }
  ],
  "products": [
    {
      "sku": "com.example.notes",
      "title": "Notes",
      "type": "1F",
      "units": 120,
      "proceeds": {}
    }
  ]
}
```

## 오류

각 오류는 도구 오류(`isError: true`)로 반환됩니다. _기울임꼴_ 단어는 문장 안의 값을 나타냅니다. 모든 도구가 반환할 수 있는 오류는 [서버와 로그인](https://air.build/ko/docs/mcp-tools/server/#errors)에 있습니다.

| Message | 발생 조건 | 해결 방법 |
| --- | --- | --- |
| Apple has no sales reports for this team yet: the Paid Applications agreement must be accepted in App Store Connect first. | Apple에 Apple 팀의 공급업체 번호가 없음 | 계정 소유자가 App Store Connect에서 유료 앱 계약을 수락합니다 |
| month must look like 2026-09. | `month`가 `YYYY-MM`이 아님 | 형식을 고치세요 |
| endDate must look like 2026-09-30. | `endDate`가 `YYYY-MM-DD`가 아님 | 형식을 고치세요 |
| This Team has no Apple Developer account connected. The Team's owner connects one in AirBuild (Settings → Apple Developer). | 팀 소유자가 Apple Developer 계정을 연결하지 않음 | 팀 소유자에게 연결을 요청하세요(앱에서: **설정** › **개발자**) |
| None of this Team's Apple teams is connected yet. The Team's owner finishes connecting it in AirBuild. | 소유자의 Apple 팀은 있지만 켜져서 준비된 팀이 없음 | 팀 소유자에게 연결을 마쳐 달라고 요청하세요 |
| This Team works with several Apple teams; pass appleTeamId: _name_ = _id_, …. | Apple 팀이 여러 개 연결되어 있는데 `appleTeamId`를 보내지 않음 | 문장에 나열된 id 중 하나를 `appleTeamId`로 보내세요 |
| That Apple team is not one of this Team's. See appstore_list_apple_teams. | `appleTeamId`가 팀의 Apple 팀이 아님 | [appstore_list_apple_teams](https://air.build/ko/docs/mcp-tools/appstore_list_apple_teams/)에서 가져오세요 |
| This Project has not been built for iOS yet, so it has no bundle id to find its app by. Ask the Team's Agent to build it, or pass appId. | 프로젝트가 iOS용으로 빌드된 적이 없음 | 프로젝트의 에이전트에게 iOS 빌드를 요청하거나([send_message](https://air.build/ko/docs/mcp-tools/send_message/)), `appId`로 앱을 지정하세요 |
| This Project has no app on App Store Connect yet. Create one with appstore_create_app (its bundle id is the Project's), or pass appId. | 팀에 연결된 Apple 팀에 프로젝트의 번들 id를 가진 앱이 없거나, 연결된 Apple 팀이 없음 | [appstore_create_app](https://air.build/ko/docs/mcp-tools/appstore_create_app/)으로 앱을 만들거나, `appId`로 다른 앱을 지정하세요 |
| No connected Apple team of this Team has that app. See appstore_list_apps. | `appId`가 연결된 어떤 Apple 팀(또는 `appleTeamId`)의 앱도 아님 | [appstore_list_apps](https://air.build/ko/docs/mcp-tools/appstore_list_apps/)에서 id를 가져오세요 |
| The Team owner's Apple sign-in has lapsed and only they can renew it: ask them to open AirBuild and sign in to Apple again, then try once more. | AirBuild에서 팀 소유자의 Apple 로그인이 만료되었고, AirBuild가 소유자 없이 갱신하지 못함 | 팀 소유자에게 알리세요. 소유자가 AirBuild에서 다시 로그인합니다([Apple Developer 계정 연결하기](https://air.build/ko/docs/app-store/connect-apple-developer-account/) 참고). 그 전에 다시 시도하면 같은 응답이 나옵니다 |
| App Store Connect: _Apple's sentence_ | Apple이 요청을 거부함. Apple 자체의 문장이 최대 다섯 개 뒤따르며, Apple이 관련 필드를 지정하면 각 문장 뒤 괄호 안에 그 필드가 붙음. App Store Connect에서 대기 중인 Apple 계약도 이렇게 거부됨 | Apple의 문장에 따라 조치하세요. 계약은 Apple Developer 계정의 계정 소유자가 App Store Connect(Business › Agreements)에서 수락합니다 |
| App Store Connect answered _status_. Try again in a moment. | Apple이 이유 없이 거부함 | 잠시 후 다시 시도하세요 |

## 예시

```json
{
  "name": "appstore_sales",
  "arguments": {
    "teamId": "00000000-0000-0000-0000-000000000000",
    "projectId": "00000000-0000-0000-0000-000000000000",
    "days": 7
  }
}
```
