Skip to main content

Delete Customer

1. Overview

This API is used to delete a customer from the CRM system.

  • Endpoint: /api/v6.1/account
  • Method: DELETE
  • Authentication: X-API-KEY must be sent in the header

2. Request

2.1. Headers

NameTypeDescription
X-API-KEYStringAPI Key for authentication
Content-TypeStringapplication/json
CookieStringAuthentication session v6_getflycrm_session

2.2. Body Parameters

FieldTypeDescription
account_codestringCustomer code to delete

2.3. Request Example

curl --location --request DELETE 'https://linhpq.getflycrm.com/api/v6.1/account' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: YOUR_API_KEY' \
--header 'Cookie: v6_getflycrm_session=YOUR_SESSION_COOKIE' \
--data-raw '{
"account_code": "KH_DEMO_12345"
}'

3. Response

3.1. JSON Response Structure

{
"message": "Successfully deleted"
}

3.2. Description of Returned Data Fields

FieldTypeDescription
messagestringDeletion result message

4. Notes

  • The API requires authentication using X-API-KEY.
  • The correct account_code must be provided to identify the customer to delete.
  • After deletion, customer data cannot be recovered.

This document provides detailed information about the API for deleting customers, making it easy to integrate into the system.