> For the complete documentation index, see [llms.txt](https://developers.payssam.kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.payssam.kr/api/api-v1/acceptance.md).

# 수납 및 결제취소

## 결제 취소

> 결제가 완료된 청구서의 결제 상태를 승인 -> 승인취소 처리 합니다.

```json
{"openapi":"3.0.1","info":{"title":"My Project API","version":"1.0.0"},"servers":[{"url":null,"description":"Generated server url"}],"paths":{"/if/bill/cancel":{"post":{"tags":["erp-partner-controller"],"summary":"결제 취소","description":"결제가 완료된 청구서의 결제 상태를 승인 -> 승인취소 처리 합니다.","operationId":"billCancel","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReqCancelBill"}}},"required":true},"responses":{"200":{"description":"성공","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelBill"}}}}}}}},"components":{"schemas":{"ReqCancelBill":{"required":["apikey","bill_id","hash","member","merchant","price"],"type":"object","properties":{"apikey":{"maxLength":32,"type":"string","description":"파트너 연동을 위한 고유키"},"merchant":{"maxLength":30,"type":"string","description":"파트너 매장 코드"},"member":{"maxLength":30,"type":"string","description":"파트너 사용자 코드"},"bill_id":{"type":"string","description":"청구서 ID  \n문자/숫자 20자리 (중복불가)  \n -개발: 사업자번호 + 10자리 자유롭게 사용  \n -운영: 20자리 자유롭게 사용"},"hash":{"type":"string","description":"통신 암호 키  \n{phone} 값이 설정된 경우 {bill_id} + \",\" + {phone} + \",\" + {price} 값으로 Hash 생성  \n{phone} 값이 설정되어 있지 않은 경우 {bill_id} + \",\" + {price} 값으로 Hash 생성"},"price":{"type":"string","description":"결제 금액"}}},"CancelBill":{"type":"object","properties":{"code":{"type":"string","description":"응답 코드"},"msg":{"type":"string","description":"응답 메세지"},"apikey":{"maxLength":32,"type":"string","description":"파트너 연동을 위한 고유키"},"member":{"maxLength":30,"type":"string","description":"파트너 매장 코드"},"merchant":{"maxLength":30,"type":"string","description":"파트너 사용자 코드"},"bill_id":{"maxLength":20,"type":"string","description":"청구서 ID  \n문자/숫자 20자리 (중복불가)  \n -개발: 사업자번호 + 10자리 자유롭게 사용  \n -운영: 20자리 자유롭게 사용"},"hash":{"type":"string","description":"통신 암호 키  \n{phone} 값이 설정된 경우 {bill_id} + \",\" + {phone} + \",\" + {price} 값으로 Hash 생성  \n{phone} 값이 설정되어 있지 않은 경우 {bill_id} + \",\" + {price} 값으로 Hash 생성"},"appr_num":{"type":"string","description":"취소 승인 번호"},"appr_origin_num":{"type":"string","description":"원거래 승인 번호"},"appr_cancel_dt":{"type":"string","description":"취소 일시"}}}}}}
```

## 결제 상태 조회

> 발송된 청구서에 대한 결제 상태를 조회합니다.

```json
{"openapi":"3.0.1","info":{"title":"My Project API","version":"1.0.0"},"servers":[{"url":null,"description":"Generated server url"}],"paths":{"/if/bill/read":{"post":{"tags":["erp-partner-controller"],"summary":"결제 상태 조회","description":"발송된 청구서에 대한 결제 상태를 조회합니다.","operationId":"readBill","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillReq"}}},"required":true},"responses":{"200":{"description":"성공","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Approval"}}}}}}}},"components":{"schemas":{"BillReq":{"required":["apikey","bill_id","member","merchant"],"type":"object","properties":{"apikey":{"maxLength":32,"type":"string","description":"파트너 연동을 위한 고유키"},"merchant":{"maxLength":30,"type":"string","description":"파트너 매장 코드"},"member":{"maxLength":30,"type":"string","description":"파트너 사용자 코드"},"bill_id":{"type":"string","description":"청구서 ID  \n문자/숫자 20자리 (중복불가)  \n -개발: 사업자번호 + 10자리 자유롭게 사용  \n -운영: 20자리 자유롭게 사용"}}},"Approval":{"type":"object","properties":{"apikey":{"maxLength":32,"type":"string","description":"파트너 연동을 위한 고유키"},"bill_id":{"maxLength":20,"type":"string","description":"청구서 ID  \n문자/숫자 20자리 (중복불가)  \n -개발: 사업자번호 + 10자리 자유롭게 사용  \n -운영: 20자리 자유롭게 사용"},"appr_cat_id":{"type":"string","description":"단말기번호"},"appr_pay_type":{"type":"string","description":"결제수단코드"},"appr_card_type":{"type":"string","description":"결제 카드 종류 (신용, 체크, ...)"},"appr_dt":{"type":"string","description":"승인일시"},"appr_origin_dt":{"type":"string","description":"원거래 승인일시"},"appr_price":{"type":"string","description":"승인금액"},"appr_issuer":{"type":"string","description":"결제은행 / 카드명"},"appr_issuer_cd":{"type":"string","description":"발행카드코드/은행코드"},"appr_issuer_num":{"type":"string","description":"결제카드 / 계좌번호"},"appr_acquirer_cd":{"type":"string","description":"매입사코드"},"appr_acquirer_nm":{"type":"string","description":"매입사명"},"appr_num":{"type":"string","description":"응답코드"},"appr_origin_num":{"type":"string","description":"원거래승인번호"},"appr_res_cd":{"type":"string","description":"응답코드"},"appr_monthly":{"type":"string","description":"결제시 할부개월수"},"appr_state":{"type":"string","description":"결제 상태  \nF:결제완료, W:미결제, C:취소, D:파기"},"appr_cash_num":{"type":"string","description":"현금영수증 발급 승인번호"},"appr_cash_trader":{"type":"string","description":"현금영수증 발급 구분  \n개인:0, 사업자:1"},"appr_cash_issuance_number":{"type":"string","description":"현금영수증 발급 요청 번호  \n -현금영수증 발급 시 사용\n\n -자진발급시 \"0100001234\""}}}}}}
```


---

# 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:

```
GET https://developers.payssam.kr/api/api-v1/acceptance.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.
