잔액이전
Request
POST https://api.solapi.com/cash/v1/transfer
잔액을 다른 계정에 이전합니다.
Authorization 인증 필요 [?]
계정 권한
회원 권한
계정 상태
회원 상태
계정 인증
cash:write
role-cash:write
ACTIVE
ACTIVE
O
2차 인증 필요
ARS 전화 인증
이메일 OTP
Request Structure
{
"targetAccountId": "string",
"amount": "number",
"accountId": "string"
}
Body Params
Name
Type
Required
Description
targetAccountId
string
O
잔액 이전을 받을 계정 ID
amount
number
O
합계 금액
accountId
string
계정 고유 아이디
Samples
transfer.spec.js
Sample Request
{
"amount": 1000,
"targetAccountId": "214727"
}
Sample Response
"Success"
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: 1000,
targetAccountId: '214727'
},
method: 'POST',
json: true,
url: 'http://api.solapi.com/cash/v1/transfer'
};
request(options, function(error, response, body) {
if (error) throw error;
console.log('result :', body);
});
문서 생성일 : 2019-10-28
Last updated
Was this helpful?