Skip to main content

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​

ParameterTypeDescription
idStringRequired. 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 is false with the message Customer not exists if 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​

FieldTypeDescription
successBooleanWhether the customer was deleted.
messageStringResult message.

Notes​

  • Deleting a customer also removes their access to corporate accounts.