Deactivate a sub-account. Remaining balance is returned to the parent team and all API keys are revoked.
cURL
curl --request DELETE \ --url https://api.zavu.dev/v1/sub-accounts/{id} \ --header 'Authorization: Bearer <token>'
{ "message": "Sub-account deactivated", "keysRevoked": 123 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Sub-account ID.
Sub-account deactivated.
"Sub-account deactivated"
Number of API keys revoked.