Approval

Approve a cancel payment

post
Body
paymentIdstringRequired

ID of Payment

Example: 0x2d9100c28be32e1a29e55b2ead66d472a6271627235778379657d08c9dc1d901
approvalbooleanRequired

If this value is true, the payment is accepted; if false, the payment is rejected.

Example: true
signaturestringRequired

Signature of user wallet

Example: 0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b
Responses
200Success
application/json
post
POST /v1/payment/cancel/approval HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 245

{
  "paymentId": "0x2d9100c28be32e1a29e55b2ead66d472a6271627235778379657d08c9dc1d901",
  "approval": true,
  "signature": "0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b"
}
200Success
{
  "code": 0,
  "data": {
    "paymentId": "0x2d9100c28be32e1a29e55b2ead66d472a6271627235778379657d08c9dc1d901",
    "purchaseId": "P00000000000203",
    "amount": "100000000000000000000",
    "currency": "krw",
    "shopId": "0x00011936a68f7c26797fa2ab64d444ea82c2fb1af36cdea6d4ff845da635f287",
    "account": "0x5A3Fc8990417b3e6ddCdAE0E8039E798A609Ef84",
    "terminalId": "KIOSK0001",
    "paymentStatus": 0
  },
  "error": {
    "message": "Failed to check the validity of parameters"
  }
}

Approve a cancel payment

post
Body
paymentIdstringRequired

ID of Payment

Example: 0x2d9100c28be32e1a29e55b2ead66d472a6271627235778379657d08c9dc1d901
approvalbooleanRequired

If this value is true, the payment is accepted; if false, the payment is rejected.

Example: true
signaturestringRequired

Signature of user wallet

Example: 0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b
Responses
200Success
application/json
post
POST /v2/payment/cancel/approval HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 245

{
  "paymentId": "0x2d9100c28be32e1a29e55b2ead66d472a6271627235778379657d08c9dc1d901",
  "approval": true,
  "signature": "0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b"
}
200Success
{
  "code": 0,
  "data": {
    "paymentId": "0x2d9100c28be32e1a29e55b2ead66d472a6271627235778379657d08c9dc1d901",
    "purchaseId": "P00000000000203",
    "amount": "100000000000000000000",
    "currency": "krw",
    "shopId": "0x00011936a68f7c26797fa2ab64d444ea82c2fb1af36cdea6d4ff845da635f287",
    "account": "0x5A3Fc8990417b3e6ddCdAE0E8039E798A609Ef84",
    "terminalId": "KIOSK0001",
    "paymentStatus": 0
  },
  "error": {
    "message": "Failed to check the validity of parameters"
  }
}