Create a Sub-Account
This endpoint helps help to create a sub-account/merchant for your customers
Headers
Name
Type
Description
Request Body
Name
Type
Description
curl --location 'https://api.oneappgo.com/v1/business/create-subaccount' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer SECRE_KEY' \
--data-raw '{
"phoneno":"09000000001",
"firstname":"Olaope",
"lastname":"James",
"email":"[email protected]",
"loginaccess": false
}'const axios = require('axios');
let data = JSON.stringify({
"phoneno": "09000000001",
"firstname": "Olaope",
"lastname": "James",
"email": "[email protected]",
"loginaccess": false
});
let config = {
method: 'post',
url: 'https://api.oneappgo.com/v1/business/create-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
Last updated