Restore Customer
1. Overview
This API is used to restore a deleted customer in the CRM system.
- Endpoint:
/api/v6.1/account/restore
- Method:
POST
- 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 restore |
2.3. Request Example
curl --location 'https://linhpq.getflycrm.com/api/v6.1/account/restore' \
--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 restored"
}
3.2. Description of Returned Data Fields
Field | Type | Description |
---|---|---|
message | string | Restoration result message |
4. Notes
- The API requires authentication using
X-API-KEY
. - The correct
account_code
must be provided to identify the customer to restore. - Only previously deleted customers can be restored.
This document provides detailed information about the API for restoring customers, making it easy to integrate into the system.