> For the complete documentation index, see [llms.txt](https://ofin.gitbook.io/document/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ofin.gitbook.io/document/payment/status.md).

# 결제 상태 조회

특정 결제건에 대한 **결제 진행 상태**를 조회하는 API입니다.

## Endpoints

* **URL:** `/api/v1/user/payment/status`
* **Method:** `POST`

## **Request**

* **apiKey (String) (Required) (maxLen:255)**
  * 플랫폼 API Key
* **orderNo (String) (Required) (maxLen:50)**
  * 주문번호

#### **Request Example**

```json
{
  "apiKey": "my8isVOhkPvAeLbtealSrEYyJBCZa ... BSDINWJPKs6th5QBTdYZHCtLxavagMR2I",
  "orderNo" : "order:20250901:000001"
}
```

## Response

* **orderNo (String) (maxLen:50)**
  * 주문번호
* **purchaseAmount (Integer) (maxLen:16)**
  * 결제 금액
* **paymentStatus** **(String) (maxLen:20)**
  * 구매자의 후불 결제 요청 상태
  * PENDING : 결제 대기 상태
  * PROCESSING : 결제 진행중 상태
  * APPROVED : 결제 승인 완료 상태 (플랫폼 지급 대기)
  * COMPLETED : 결제 완료 상태 (플랫폼 지급 완료)
  * FAILED : 결제 실패 상태
  * CANCELLED : 결제 취소 상태
  * EXPIRED : 결제 만료 상태 (토큰 만료 등으로 인한)
* **payoutStatus** **(String) (maxLen:20)**
  * 플랫폼 지급 상태
  * SCHEDULED : 지급 예정 상태
  * PROCESSING : 지급 진행중 상태
  * COMPLETED : 지급 완료 상태
  * FAILED : 지급 실패 상태
  * CANCELLED : 지급 취소 상태
* **withdrawalAmount (Integer) (maxLen:16)**
  * 회수 예정 금액
* **withdrawalDueDate (String)  (maxLen:10)**
  * 회수 예정 일자 (yyyy-mm-dd)

#### **Response Example**

```json
{
  "orderNo" : "order:20250901:000001",
  "purchaseAmount" : 100000,
  "paymentStatus" : "APPROVED",
  "payoutStatus" : "SCHEDULED",
  "withdrawalAmount" : null,
  "withdrawalDueDate" : null
}
```

### Error Handling

* PAYMENT\_NOT\_FOUND : 존재하지 않는 결제 정보입니다.
* BAD\_REQUEST : 유효하지 않은 데이터입니다.
* INTERNAL\_SERVER\_ERROR : 서버 내부 에러입니다.

```json
{
  "meta": {
    "code": "INTERNAL_SERVER_ERROR",
    "message": "서버 내부 에러입니다."
  },
  "data": null
}
```


---

# 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://ofin.gitbook.io/document/payment/status.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.
