Payment API 문서 - f-lab-edu/at_ticket GitHub Wiki
version 1.0.0-SNAPSHOT
Table of Contents
POST /payments/ HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Content-Length: 87
Host: localhost:8080
{
"paymentId" : "imp_221562613272",
"reservationId" : 1000,
"amount" : 3000
}
Path | Type | Description |
---|---|---|
|
|
결제 ID |
|
|
예약 ID |
|
|
가격 |
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 156
{
"code" : 200,
"message" : "요청에 성공하셨습니다.",
"data" : {
"paymentId" : "imp_221562613272",
"orderId" : "IMP355"
}
}
POST /payments/cancel HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Content-Length: 309
Host: localhost:8080
{
"paymentId" : "imp_221562613272",
"orderId" : "IMP355",
"amount" : 3000.0,
"taxFree" : 100.0,
"reason" : null,
"refundHolder" : null,
"refundTel" : null,
"refundBank" : null,
"refundAccount" : "null",
"linkedPlatform" : "I_AM_PORT",
"impKey" : null,
"impSecret" : null
}
Path | Type | Description |
---|---|---|
|
|
결제 ID |
|
|
주문 ID |
|
|
금액 |
|
|
면세 금액 |
|
|
취소 사유 |
|
|
환불계좌 예금주 |
|
|
환불계좌 예금주 연락처 |
|
|
환불계좌 은행 |
|
|
환불계좌 계좌번호 |
|
|
결제 연동 타입 |
|
|
API 키 |
|
|
비밀 키 |
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 75
{
"code" : 200,
"message" : "조회된 데이터가 없습니다."
}
Version 1.0.0-SNAPSHOT
Last updated 2023-10-22 13:49:35 +0900