Open
Body
purchaseIdstringRequiredExample:
ID of Purchase
P00000000000203
amountstringRequiredExample:
Amount to be used for payment (info. decimals are 18)
100000000000000000000
currencystringRequiredExample:
Currency symbol for amount to be used for payment
krw
shopIdstringRequiredExample:
ID of shop
0x00011936a68f7c26797fa2ab64d444ea82c2fb1af36cdea6d4ff845da635f287
accountstringRequiredExample:
Temporary wallet address of user
0xfFfFFfFF5D8F0dB23fE79F2085C4069B00000000
terminalIdstringOptionalExample:
ID of terminal
KIOSK0001
Responses
200Success
application/json
post
POST /v1/payment/new/open HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 240
{
"purchaseId": "P00000000000203",
"amount": "100000000000000000000",
"currency": "krw",
"shopId": "0x00011936a68f7c26797fa2ab64d444ea82c2fb1af36cdea6d4ff845da635f287",
"account": "0xfFfFFfFF5D8F0dB23fE79F2085C4069B00000000",
"terminalId": "KIOSK0001"
}
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"
}
}
Body
purchaseIdstringRequiredExample:
ID of Purchase
P00000000000203
amountstringRequiredExample:
Amount to be used for payment (info. decimals are 18)
100000000000000000000
currencystringRequiredExample:
Currency symbol for amount to be used for payment
krw
shopIdstringRequiredExample:
ID of shop
0x00011936a68f7c26797fa2ab64d444ea82c2fb1af36cdea6d4ff845da635f287
accountstringRequiredExample:
Temporary wallet address of user
0xfFfFFfFF5D8F0dB23fE79F2085C4069B00000000
terminalIdstringRequiredExample:
ID of terminal
KIOSK0001
signaturestringRequiredExample:
Signature of agent wallet
0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b
Responses
200Success
application/json
post
POST /v2/payment/new/open HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 387
{
"purchaseId": "P00000000000203",
"amount": "100000000000000000000",
"currency": "krw",
"shopId": "0x00011936a68f7c26797fa2ab64d444ea82c2fb1af36cdea6d4ff845da635f287",
"account": "0xfFfFFfFF5D8F0dB23fE79F2085C4069B00000000",
"terminalId": "KIOSK0001",
"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"
}
}