Path parameters
-
The GUID of the client to delete.
DELETE
/api/v2/clients/{ClientGUID}
curl \
-X DELETE https://api.fincalc.co.uk/api/v2/clients/{ClientGUID} \
-H "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."
]
}