Delete customer
Delete a customer from your administration. For the record: Once deleted, you can't undo this action.
Delete customer
DELETE https://api.notify.cm/v2/customers/{customer_id}
Authentication: API keys
Headers
Name
Type
Description
Authorization
string
Your test or live API key
HTTP/1.1 204 No ContentHTTP/1.1 400 Bad Request
Content-Type: application/json
{
"status": 400,
"title": "Bad Request",
"detail": "Customer is not empty"
}HTTP/1.1 404 Not Found
Content-Type: application/json
{
"status": 404,
"title": "Not Found",
"detail": "No customer exists with id I_dont_exist."
}Attention: Only empty customers can be deleted. First delete all invoices before deleting a customer. Deleting a non-empty customer will give an error.
Example
curl -X DELETE https://api.notify.cm/v2/customers/a0f0660d-6c8d-422b-8114-e363b260521e \
-H "Authorization: Bearer test_R7HQ9QpXgx8J32rW9X9UyXjgfNk6C7TQ2UD8M5rwf8vVnYxnSETvSuEC6SKFW8Ug" \Response
HTTP/1.1 204 No ContentLast updated
Was this helpful?