Skip to content

Kiểu khách hàng

API quản lý kiểu (loại) khách hàng.

Thêm kiểu khách hàng

POST[URL]/api/crm/type/create

Header

Tham sốGiá trị
AuthorizationBearer access_token

Body

Tham sốKiểuMô tả
vbot_idStringVBotID khách hàng
project_codeStringMã nhóm
type_nameStringTên kiểu
type_noStringMã kiểu

Ví dụ request

json
{
  "vbot_id": "sample string 1",
  "project_code": "sample string 2",
  "type_name": "sample string 3",
  "type_no": "sample string 4"
}

Response

Tham sốKiểuMô tả
statusIntMã trạng thái (1: Thành công, 0: Thất bại)
errorIntMã lỗi
messageStringThông tin
dataStringDữ liệu trả về

Ví dụ response

json
{
  "status": 1,
  "error": 2,
  "message": "sample string 3",
  "data": "sample string 4"
}

Sửa kiểu khách hàng

POST[URL]/api/crm/type/update

Header

Tham sốGiá trị
AuthorizationBearer access_token

Body

Tham sốKiểuMô tả
vbot_idStringVBotID khách hàng
project_codeStringMã nhóm
type_nameStringTên kiểu
type_noStringMã kiểu

Ví dụ request

json
{
  "vbot_id": "sample string 1",
  "project_code": "sample string 2",
  "type_name": "sample string 3",
  "type_no": "sample string 4"
}

Response

Tham sốKiểuMô tả
statusIntMã trạng thái (1: Thành công, 0: Thất bại)
errorIntMã lỗi
messageStringThông tin
dataStringDữ liệu trả về

Ví dụ response

json
{
  "status": 1,
  "error": 2,
  "message": "sample string 3",
  "data": "sample string 4"
}

Xóa kiểu khách hàng

POST[URL]/api/crm/type/delete

Header

Tham sốGiá trị
AuthorizationBearer access_token

Body

Tham sốKiểuMô tả
vbot_idStringVBotID khách hàng
project_codeStringMã nhóm
type_noStringMã kiểu

Ví dụ request

json
{
  "vbot_id": "sample string 1",
  "project_code": "sample string 2",
  "type_no": "sample string 3"
}

Response

Tham sốKiểuMô tả
statusIntMã trạng thái (1: Thành công, 0: Thất bại)
errorIntMã lỗi
messageStringThông tin
dataBoolDữ liệu trả về

Ví dụ response

json
{
  "status": 1,
  "error": 2,
  "message": "sample string 3",
  "data": true
}

Sửa mã kiểu khách hàng

POST[URL]/api/crm/type/updateNo

Header

Tham sốGiá trị
AuthorizationBearer access_token

Response