> For the complete documentation index, see [llms.txt](https://sharelink-docs.toss.im/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharelink-docs.toss.im/developers/open-api/api/performance.md).

# 실적 조회

기간을 지정해 클릭·판매·예상 수익금을 상품별 합계로 조회합니다.

기간 안의 클릭은 전체 합계로, 판매·예상 수익금은 상품별 합계로 조회하는 **잠정 실적**입니다.

정산 회차 기준 확정 수익금은 [정산내역 조회](https://sharelink-docs.toss.im/developers/open-api/api/settlement.md)에서 확인합니다. 상품별 합계라서 주문별 수익과 수수료 유형은 구분할 수 없으니, 필요하면 [주문상품 조회](https://sharelink-docs.toss.im/developers/open-api/api/order-products.md)를 사용해 주세요.

```
GET /openapi/performance
```

필요 스코프: `sharelink:read`

***

## 요청

| 파라미터          | 필수     | 설명                                                                                                  |
| ------------- | ------ | --------------------------------------------------------------------------------------------------- |
| `fromDate`    | **필수** | 조회 시작일 (`YYYY-MM-DD`). 클릭은 방문일, 그 밖의 실적은 결제일 기준                                                     |
| `toDate`      | **필수** | 조회 종료일 (`YYYY-MM-DD`). `fromDate` 이상. 기간은 최대 31일이며 더 길면 나눠 호출                                       |
| `subTagId`    | 선택     | 이 [subTag](https://sharelink-docs.toss.im/developers/open-api/api/sub-tags.md)의 실적만 조회. 생략하면 거래처 전체 |
| `attribution` | 선택     | `DIRECT` / `INDIRECT` / `UNKNOWN` 중 하나. 생략하면 전부                                                     |
| `cursor`      | 선택     | 직전 응답의 `nextCursor`. 첫 요청에는 생략                                                                      |
| `size`        | 선택     | 한 페이지 개수. 기본 50, 1\~100                                                                             |

| 입력                                                         | 처리                                                                              |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------- |
| 필수 날짜 누락, 날짜 형식 오류, `size` 숫자 변환 실패, 지원하지 않는 `attribution` | HTTP 400 + `resultType: "FAIL"`. 고정 오류 코드를 가정하지 마세요                             |
| `fromDate` > `toDate`                                      | HTTP 200 + `errorCode: "INVALID_ARGUMENT"`                                      |
| 기간이 31일 초과                                                 | HTTP 200 + `errorCode: "INVALID_ARGUMENT"`                                      |
| `size`가 1\~100 밖                                           | HTTP 200 + `errorCode: "INVALID_ARGUMENT"`                                      |
| 등록되지 않았거나 다른 거래처의 `subTagId`                               | HTTP 200 + `errorCode: "SHARELINK_OPENAPI_ACCESS_DENIED"`                       |
| 조건에 맞는 실적이 없음                                              | 정상 응답. `items`는 빈 배열, `summary`의 금액은 모두 `0`. 판매가 없어도 `clickCount`는 0보다 클 수 있습니다 |

오류 응답 형식은 [공통 규약](https://sharelink-docs.toss.im/developers/open-api/convention.md)을 따릅니다.

```bash
curl -H "Authorization: Bearer {액세스 토큰}" \
  "https://sharelink.toss.im/openapi/performance?fromDate=2026-08-01&toDate=2026-08-31&size=50"
```

***

## 응답

```json
{
  "resultType": "SUCCESS",
  "success": {
    "fromDate": "2026-08-01",
    "toDate": "2026-08-31",
    "subTagId": null,
    "summary": {
      "clickCount": 1820,
      "soldQuantity": 64,
      "refundedQuantity": 3,
      "salesAmount": 1284000,
      "discountAmount": 96000,
      "netPaymentAmount": 1188000,
      "expectedCommissionAmount": 59400,
      "confirmedCommissionAmount": 41200,
      "lastUpdatedAt": "2026-09-02T10:30:00"
    },
    "items": [
      {
        "productId": 12345,
        "productName": "무선 이어폰 A",
        "thumbnailUrl": "https://static.toss.im/example/thumbnail.png",
        "attribution": "DIRECT",
        "soldQuantity": 21,
        "refundedQuantity": 1,
        "salesAmount": 420000,
        "discountAmount": 30000,
        "netPaymentAmount": 390000,
        "expectedCommissionAmount": 19500,
        "confirmedCommissionAmount": 14200
      }
    ],
    "nextCursor": "djF8YWJjZGVm",
    "hasNext": true,
    "size": 50
  }
}
```

| 필드                    | 타입             | 설명                               |
| --------------------- | -------------- | -------------------------------- |
| `fromDate` / `toDate` | string         | 요청한 조회 기간                        |
| `subTagId`            | string \| null | 요청한 `subTagId`. 지정하지 않았으면 `null` |
| `summary`             | object         | 조회 기간 전체 합계                      |
| `items`               | array          | 상품별 실적. 예상 수익금이 높은 순             |
| `nextCursor`          | string \| null | 다음 페이지 커서. 마지막 페이지면 `null`       |
| `hasNext`             | boolean        | 다음 페이지 존재 여부                     |
| `size`                | number         | 요청한 페이지 크기                       |

### `summary` 필드

| 필드                          | 타입             | 설명                                                                     |
| --------------------------- | -------------- | ---------------------------------------------------------------------- |
| `clickCount`                | number         | 발급 링크로 토스 앱의 상품 상세까지 들어온 방문 건수. 구매 여부와 별개로 집계하며, 고유 방문자 수나 구매 건수가 아닙니다 |
| `soldQuantity`              | number         | 결제된 상품 수량. **취소·환불을 빼기 전 수량**                                          |
| `refundedQuantity`          | number         | 결제된 상품 중 취소·환불된 누적 수량                                                  |
| `salesAmount`               | number         | 판매금액 (원). 환불분을 뺀 금액이며 배송비(배송비 할인을 뺀 금액)를 포함                            |
| `discountAmount`            | number         | 할인금액 (원). 쿠폰·토스포인트 등. 배송비에 사용한 포인트 포함                                  |
| `netPaymentAmount`          | number         | 실 결제금액 (원). `salesAmount` − `discountAmount`                           |
| `expectedCommissionAmount`  | number         | 예상 수익금 (원, 원천징수 전). 실 결제금액 기준 잠정 금액                                    |
| `confirmedCommissionAmount` | number         | 조회 기간에 결제된 주문 중 구매확정된 수익금 (원, 원천징수 전). 구매확정월 기준 정산 금액과 다를 수 있습니다       |
| `lastUpdatedAt`             | string \| null | 상품 실적의 마지막 집계 반영 시각 (한국 시간). 집계된 상품 실적이 없으면 `null`                     |

예상·확정 수익금은 원천징수 전 금액이며 일반과세 개인사업자·법인사업자는 부가세가 포함된 금액입니다. [정산내역 조회](https://sharelink-docs.toss.im/developers/open-api/api/settlement.md)의 **원천징수와 부가세**를 확인해 주세요.

### `items[]` 필드

| 필드             | 타입             | 설명                                                                                    |
| -------------- | -------------- | ------------------------------------------------------------------------------------- |
| `productId`    | number         | **상품 옵션 ID (`tacaItemId`)**. 링크 발급·상품 상세 조회에 쓰는 값과 같습니다                               |
| `productName`  | string         | 상품명. 불러오지 못하면 빈 문자열                                                                   |
| `thumbnailUrl` | string \| null | 썸네일 주소. 불러오지 못하면 `null`                                                               |
| `attribution`  | string         | `DIRECT` / `INDIRECT` / `UNKNOWN`. 같은 상품도 값이 다르면 별도 행이므로, 상품 단위로는 `productId`로 묶어 주세요 |
| 그 밖의 수치 필드     | number         | `summary`와 같은 의미이며 그 상품 몫만 담깁니다 (`clickCount` 제외)                                     |

***

## 직접 기여와 간접 기여

| 값          | 의미                         |
| ---------- | -------------------------- |
| `DIRECT`   | 공유한 링크의 그 상품이 구매된 경우       |
| `INDIRECT` | 링크를 타고 들어온 뒤 다른 상품을 구매한 경우 |
| `UNKNOWN`  | 위 둘로 분류되지 않은 경우            |

**`attribution`은 수수료율을 구분하는 값이 아닙니다.** 수수료 유형은 [주문상품 조회](https://sharelink-docs.toss.im/developers/open-api/api/order-products.md)의 `productCommissionType`으로 확인합니다.

직접·간접 구매 모두 [수익 인정 기준](https://sharelink-docs.toss.im/income/earnings/earnings-rules)을 충족해야 합니다.

***

## 확인할 점

* 환불되면 환불한 날이 아니라 결제일 실적이 줄어듭니다. 과거 기간의 수치도 달라지니 필요할 때 다시 조회해 주세요.
* 실적 반영에는 시차가 있으며, `summary.lastUpdatedAt`이 그 시각까지의 모든 방문·구매가 반영됐다는 뜻은 아닙니다.
* 2026-11-13 20:39:40(한국 시간) 전에 실적에 반영된 뒤 다시 반영되지 않은 주문은 `salesAmount`에 배송비 할인 전 배송비가 들어가고 `discountAmount`에 배송비에 사용한 포인트가 빠져 있을 수 있습니다. `expectedCommissionAmount`는 처음 계산한 값을 유지하므로, 그 전에 결제된 주문은 이전 기준으로 계산되었을 수 있습니다.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://sharelink-docs.toss.im/developers/open-api/api/performance.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
