Transfer an account
/account/transfer
Want to transfer an account ?, here is how to do it Chief π
POST https://live.chimoney.io/api/v0.1/account/transfer
Transfer account to sub account id
Headers
Name
Type
Description
X-API-Key*
API_KEY_FROM_DEV_PORTAL
Request Body
Name
Type
Description
receiver*
SUB_ACCOUNT_USER_ID
amount
1
wallet
airtime
{
// success
}#Javascript FETCH
var myHeaders = new Headers();
myHeaders.append("X-API-Key", "API_KEY_FROM_DEV_PORTAL");
var raw = "{\n \"receiver\": \"SUB_ACCOUNT_USER_ID\",\n \"amount\": 1,\n \"wallet\": \"airtime\"\n}";
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://live.chimoney.io/api/v0.1/account/transfer", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));#Python REQUESTS
#PHP cURL
Yay! It's done.
Last updated