Close

Close a cancel payment

post
Body
paymentIdstringRequired

ID of Payment

Example: 0x2d9100c28be32e1a29e55b2ead66d472a6271627235778379657d08c9dc1d901
confirmbooleanRequired

If this value is true, the cancel payment will be processed normally, and if this value is false, all processes that have been processed so far will be canceled.

Example: true
Responses
200Success
application/json
post
POST /v1/payment/cancel/close HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 97

{
  "paymentId": "0x2d9100c28be32e1a29e55b2ead66d472a6271627235778379657d08c9dc1d901",
  "confirm": true
}
200Success
{
  "code": 0,
  "data": {
    "paymentId": "0x2d9100c28be32e1a29e55b2ead66d472a6271627235778379657d08c9dc1d901",
    "purchaseId": "P00000000000203",
    "amount": "100000000000000000000",
    "currency": "krw",
    "shopId": "0x00011936a68f7c26797fa2ab64d444ea82c2fb1af36cdea6d4ff845da635f287",
    "account": "0x5A3Fc8990417b3e6ddCdAE0E8039E798A609Ef84",
    "paidPoint": "100000000000000000000",
    "paidValue": "100000000000000000000",
    "feePoint": "5000000000000000000",
    "feeValue": "5000000000000000000",
    "totalPoint": "105000000000000000000",
    "totalValue": "105000000000000000000",
    "terminalId": "KIOSK0001",
    "paymentStatus": 0
  },
  "error": {
    "message": "Failed to check the validity of parameters"
  }
}

Close a cancel payment

post
Body
paymentIdstringRequired

ID of Payment

Example: 0x2d9100c28be32e1a29e55b2ead66d472a6271627235778379657d08c9dc1d901
confirmbooleanRequired

If this value is true, the cancel payment will be processed normally, and if this value is false, all processes that have been processed so far will be canceled.

Example: true
signaturestringRequired

Signature of agent wallet

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

{
  "paymentId": "0x2d9100c28be32e1a29e55b2ead66d472a6271627235778379657d08c9dc1d901",
  "confirm": true,
  "signature": "0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b"
}
200Success
{
  "code": 0,
  "data": {
    "paymentId": "0x2d9100c28be32e1a29e55b2ead66d472a6271627235778379657d08c9dc1d901",
    "purchaseId": "P00000000000203",
    "amount": "100000000000000000000",
    "currency": "krw",
    "shopId": "0x00011936a68f7c26797fa2ab64d444ea82c2fb1af36cdea6d4ff845da635f287",
    "account": "0x5A3Fc8990417b3e6ddCdAE0E8039E798A609Ef84",
    "paidPoint": "100000000000000000000",
    "paidValue": "100000000000000000000",
    "feePoint": "5000000000000000000",
    "feeValue": "5000000000000000000",
    "totalPoint": "105000000000000000000",
    "totalValue": "105000000000000000000",
    "terminalId": "KIOSK0001",
    "paymentStatus": 0
  },
  "error": {
    "message": "Failed to check the validity of parameters"
  }
}