Detach Account
This endpoint allows you to decommission a virtual account using the virtual account tracking ID or the account number
POST https://api.oneappgo.com/v1/detach-virtualaccount
Headers
Name
Type
Description
authorization*
String
SECRET_KEY
Request Body
Name
Type
Description
trackingid*
String
Kindly pass the account tracking id or account number
{
"status": true,
"responsecode": "01",
"msg": "Account Number Successfully Detached",
}Take a look at how you might do this:
curl --location 'https://api.oneappgo.com/v1/detach-virtualaccount' \
--header 'Authorization: Bearer SECRET_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"trackingid": "271871227"
}'var request = require('request');
var options = {
'method': 'POST',
'url': 'https://api.oneappgo.com/v1/detach-virtualaccount',
'headers': {
'Authorization': 'Bearer SECRET_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"trackingid": "271871227"
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
Last updated
Was this helpful?