Skip to main content

Change Manager

1. Overview

This API is used to change the manager of a customer in the CRM system.

  • Endpoint: /api/v6.1/account/change_account_manager
  • Method: PUT
  • 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

2.2. Body Parameters

FieldTypeDescription
account_manager_usernamestringUsername of the new manager
account_codestringCustomer code for which to change the manager

2.3. Request Example

curl --location --request PUT 'https://linhpq.getflycrm.com/api/v6.1/account/change_account_manager' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: YOUR_API_KEY' \
--data-raw '{
"account_manager_username": "new_manager",
"account_code": "KH_DEMO_12345"
}'

3. Response

3.1. JSON Response Structure

{
"message": "Update successful",
"account_code": "KH_DEMO_12345",
"account_id": 12345,
"account_manager": 2
}

3.2. Description of Returned Data Fields

FieldTypeDescription
messagestringUpdate result message
account_codestringCustomer code
account_idintegerCustomer ID
account_managerintegerID of the new manager

4. Notes

  • The API requires authentication using X-API-KEY.
  • The correct account_code must be provided to update the manager.
  • The new manager must have customer handling permissions in the system.

This document provides detailed information about the API for transferring customer managers, making it easy to integrate into the system.