You can delete any customer from your HelpCrunch account. If you need to delete just a number of customer attributes, use the Update customer method and pass a null value for the corresponding attributes.
➡️ Request
URL | https://api.helpcrunch.com/v1/customers/<customer_id> |
Method | DELETE |
Headers | Authorization: Bearer <your_api_key> |
<customer_id> is the identifier for the customer as given by HelpCrunch. It is required for this method and looks like a combination of numbers, for example 1568834.
Read more about authorization header here.
✅ Successful Response
If your request has succeeded, you'll get a 200 OK success status code together with the "Ok" in the response body.
🛑 Error Responses
You may get one of the following error status codes and responses. More info on the errors is available here.
401 Unauthorized
{
"errors": [
{
"code": "invalid_request",
"message": "Invalid request"
},
{
"code": "unauthorized",
"message": "Unauthorized"
}
]
}
404 Not Found
{
"errors": [
{
"code": "invalid_request",
"message": "Invalid request"
},
{
"code": "not_found",
"message": "Chat not found"
}
]
}
429 Too Many Requests
{
"errors": [
{
"code": "invalid_request",
"message": "Invalid request"
},
{
"code": "too_many_requests",
"message": "Too many requests"
}
]
}
If you have any questions regarding the REST API, feel free to chat us any time.
👩💻 Happy Coding! 👨💻