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
Name | Type | Description |
---|---|---|
X-API-KEY | String | API Key for authentication |
Content-Type | String | application/json |
Cookie | String | Authentication session v6_getflycrm_session |
2.2. Body Parameters
Field | Type | Description |
---|---|---|
account_code | string | Customer 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
Field | Type | Description |
---|---|---|
message | string | Deletion 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.