Delete client
Deletes the specified client along with any directly related clients, including their financial relations and dependants, as long as those clients are not linked to any other active clients.
Clients who cannot be deleted because they are linked to other clients will not be included in the deletion.
DELETE
/api/v2/clients/{ClientGUID}
curl \
--request DELETE 'https://api.fincalc.co.uk/api/v2/clients/{ClientGUID}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"success": true,
"message": "Client deleted successfully"
}
Response examples (403)
{
"success": false,
"message": "You do not have permission to delete that client."
}
Response examples (404)
{
"success": false,
"message": "Client not found."
}
Response examples (409)
{
"success": false,
"message": "Cannot delete client due to relationship issues.",
"data": [
"Ben Amos cannot be deleted as has a financial relationship with Carrie Amos, who does not have a relationship to del test."
]
}