Get
/sub-account/get
You might want to get a sub-account of a user, here is how to it, Chief π
GET https://live.chimoney.io/api/v0.1/sub-account/get?id=SUB_ACCOUNT_ID
Get a sub-account of a user.
Also returns the sub-account wallet if available
Path Parameters
Name
Type
Description
id
id
Headers
Name
Type
Description
X-API-Key*
API_KEY_FROM_DEV_PORTAL
{
// transaction detail
}#Javascript FETCH
var myHeaders = new Headers();
myHeaders.append("X-API-Key", "API_KEY_FROM_DEV_PORTAL");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://live.chimoney.io/api/v0.1/sub-account/get?id=SUB_ACCOUNT_ID", 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