Transfer
/wallets/transfer
Transferring from one wallet to another is super easy, here is how to it, Chief π
POST https://live.chimoney.io/api/v0.1/wallets/transfer
Transfer from one wallet to another. Wallet can be a team wallet or a user wallet.
Headers
Name
Type
Description
X-API-Key*
API_KEY_FROM_DEV_PORTAL
Request Body
Name
Type
Description
receiver*
Account or Team ID to transfer to
amount*
1
wallet*
Wallet type: chi, airtime, momo. Will befault to ch
{
// transaction detail
}#Javascript FETCH
var myHeaders = new Headers();
myHeaders.append("X-API-Key", "API_KEY_FROM_DEV_PORTAL");
var raw = "{\n \"receiver\": \"Account or Team ID to transfer to\",\n \"amount\": 1,\n \"wallet\": \"Wallet type: chi, airtime, momo. Will befault to chi\"\n}";
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://live.chimoney.io/api/v0.1/wallets/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