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

# 응답 형식

이 문서는 파트너 서버 API의 공통 응답 형식을 설명해요.

모든 응답은 공통 봉투(envelope)로 감싸져요.

성공:

```json
{"resultType": "SUCCESS", "success": { ... }}
```

실패:

```json
{"resultType": "FAIL", "success": null, "error": {"errorType": 0, "errorCode": "4010", "reason": "...", "data": {}, "title": null}}
```

**비즈니스 오류는 HTTP 200으로 응답해요.** `resultType`이 `SUCCESS`인지 확인하고, `SUCCESS`가 아닌 값은 모두 실패로 처리하세요. 요청 형식 오류(필드 검증 실패)는 HTTP 400, 분류되지 않은 서버 오류는 HTTP 500으로 응답해요. 요청 한도를 초과하면 HTTP 200에 `errorCode: "4095"`와 `error.data.retryAfterSeconds`가 내려가요.


---

# 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 dynamically by asking a question.

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

```
GET https://developers-apps-in-toss.toss.im/documentation/api/response-format.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
