Delete Customer
Permanently deletes a customer. This action cannot be undone.
HTTP Request
- URL:
/customers/{id} - Method:
DELETE - Headers:
accessToken: Required. Your API access token.
- Required scope:
READ_WRITE_CUSTOMER
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | Required. The ID of the customer to delete. |
cURL Example
curl --location --request DELETE '<BASE_URL>/customers/66a5023524b16685e42a1eda' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The request was processed. Check
success: it isfalsewith the messageCustomer not existsif no customer matches the ID. - 400 Bad Request: The access token is missing or invalid, the token does not have the required scope, or the customer ID is not valid.
Sample JSON Response
{
"success": true,
"message": "Customer deleted successfully"
}
Response Details
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the customer was deleted. |
message | String | Result message. |
Notes
- Deleting a customer also removes their access to corporate accounts.