Attach Bank to a Sub-Account
This endpoint helps help to add bank account for a sub-account created
Headers
Name
Type
Description
Request Body
Name
Type
Description
curl --location 'https://api.oneappgo.com/v1/business/addbank-subaccount' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer SECRE_KEY' \
--data-raw '{
"trackingid":"00104K0000000",
"bankname":"providus"
}'const axios = require('axios');
let data = JSON.stringify({
"trackingid":"00104K0000000",
"bankname":"providus"
});
let config = {
method: 'post',
url: 'https://api.oneappgo.com/v1/business/addbank-subaccount',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer SECRET_KEY',
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Sample Response
{
"status":true,
"message":"Providus Account Successfully Generated",
"trackingid":"00104K0000000"
}Last updated