Delete Connected Account
Deleting a connected account
DELETE https://api2.ourpass.co/v1/business/subaccounts/:subAccountId
Path Parameters
Name
Type
Description
subAccountId*
String
This is the unique ID of the connected account to be deleted.
Headers
Name
Type
Description
apiKey*
String
Pass your api key in the request header to authorise the call
{
"success": true,
"message": "Business Subaccount deleted"
}curl --location --request DELETE 'https://user-api2-staging.ourpass.co/v1/business/subaccounts/1303' \
--header 'apiKey: {{apikey}}' \
--data-raw ''var axios = require('axios');
var data = '';
var config = {
method: 'delete',
url: 'https://api2.ourpass.co/v1/business/subaccounts/1303',
headers: {
'apiKey': '{{apikey}}'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Last updated
Was this helpful?