Create
/sub-account/create
Creating a sub-account is super easy, here is how to it, Chief π
POST https://live.chimoney.io/api/v0.1/sub-account/create
Creating a sub-account
Headers
Name
Type
Description
X-API-Key*
API_KEY_FROM_DEV_PORTAL
Request Body
Name
Type
Description
name*
Kamala Biden
email*
kamala.biden@chimail.com
{
// transaction detail
}#Javascript FETCH
var myHeaders = new Headers();
myHeaders.append("X-API-Key", "API_KEY_FROM_DEV_PORTAL");
var raw = "{\n \"name\": \"Kamala Biden\",\n \"email\": \"kamala.biden@chimail.com\"\n}";
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://live.chimoney.io/api/v0.1/sub-account/create", 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