Deletes the Subaccount with the given id. This operation will fail if the subaccount has orders associated with it.
/subaccounts/{id}Authorization
string
header
requiredBearer authentication header of the form Bearer <token>, where <token> is your CNaught API key.
id
string
requiredID of subaccount to return / modify
Subaccount successfully deleted (No Content)
Delete Subaccount
curl --request DELETE \
--url https://api.cnaught.com/v1/subaccounts/<id> \
--header 'Authorization: Bearer <token>'{
"title": "Authorization has been denied for this request",
"status": 401
}