사용자 충전
Request
POST https://api.solapi.com/cash/v1/balance
사용자가 결제를 해 충전을 합니다.
Authorization 인증 필요 [?]
계정 권한
회원 권한
계정 상태
회원 상태
계정 인증
cash:write
role-cash:write
ACTIVE
ACTIVE
O
2차 인증 필요
ARS 전화 인증
이메일 OTP
Request Structure
{
"amount": "number",
"paymentId": "string"
}
Body Params
Name
Type
Required
Description
amount
number
O
합계 금액
paymentId
string
O
결제 ID
Samples
일반 유저가 잔액을 충전하는 경우
Sample Request
{
"amount": 10000,
"paymentId": "3842634568732773001572284631864"
}
Sample Response
{
"accountId": "19041920726336",
"oldBalance": 10130,
"newBalance": 20130,
"oldPoint": 0,
"newPoint": 0,
"balanceAmount": 10000,
"pointAmount": 0,
"type": "RECHARGE",
"historyId": "5db728d7aa83954519463ab8"
}
Sample Code
var request = require('request');
var options = {
headers: {
Authorization:
'HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4',
'Content-Type': 'application/json'
},
body: {
amount: 10000,
paymentId: '384263456873277300157228463...'
},
method: 'POST',
json: true,
url: 'http://api.solapi.com/cash/v1/balance'
};
request(options, function(error, response, body) {
if (error) throw error;
console.log('result :', body);
});
문서 생성일 : 2019-10-28
Last updated
Was this helpful?