Delete Sub Account
This endpoint deletes a merchant’s sub-account
This endpoint is protected with OAuth 2.0 Bearer Token. To find out more about authorization for Monnify endpoints, check Here
Endpoint URL: {{base_url}}/api/v1/sub-accounts/{{subAccountCode}}
HTTP Method: DELETE
The {{base_url}} for test is https://sandbox.monnify.com
but when you go live, it changes to the live url
Add the sub-account code as a URL parameter and send a DELETE request to the endpoint above.
{
"requestSuccessful": true,
"responseMessage": "success",
"responseCode": "0"
}