Nhảy tới nội dung

Chi tiết khách hàng

Xem thông tin chi tiết một khách hàng

HTTP Request

GET /api/v3/account/ID

Trong đó ID là ID của khách hàng trên hệ thống Getfly (account_id)

GET /api/v3/account?account_code=ACCOUNT_CODE

Trong đó ACCOUNT_CODE là mã của khách hàng trên hệ thống Getfly (account_code)

Query Parameters

ParameterDefaultDescription
custom_field_listnullCác trường định nghĩa dũ liệu cần lấy

Điều kiện custom_field_list sẽ truyền mã của các trường custom field, cách nhau bởi dấu phẩy

Ví dụ: custom_field_list = "chang_bay_du_kien,nguoi_van_chuyen"

Response

Dữ liệu trả về bao gồm:

  • info: chứa thông tin chi tiết về khách hàng
  • contacts: mảng chứa thông tin người liên hệ
{
"info": {
"account_id": "1",
"account_code": "KH00001",
"account_name": "Getfly CRM",
"address": "11 Thái Hà",
"phone": "0912345678",
"email": "demo@getflycrm.com",
"website": "getfly.vn",
"birthday": "2012-12-22",
"description": "Getfly CRM",
"relation_id": "1",
"revenue": "0",
"account_type": "0",
"created_at": "2021-07-14 14:05:23",
"account_source": "0",
"creator_name": "Getfly",
"country_id": "1",
"province_name": "Hà Nội",
"district_name": "Đống Đa",
"country_name": "Việt Nam",
"industry_name": "Software",
"account_source": "FB,Google"
},
"contacts": [
{
"contact_id": "1",
"first_name": "Nguyen",
"last_name": "Van A",
"phone_mobile": "0912345678",
"email": "demo@getflycrm.com",
"description": "",
"title": ""
}
]
}