Skip to content

Hotline thành viên

API gán và xóa hotline cho thành viên.

Thêm hotline cho thành viên

POST[URL]/api/hotline/member/add

Header

Tham sốGiá trị
AuthorizationBearer access_token

Body

Tham sốKiểuMô tả
vbot_idStringVBotID khách hàng
project_codeStringMã nhóm
member_noStringMã thành viên
hotline_numberStringSố hotline
allow_callBoolCho phép gọi
start_timeStringThời gian bắt đầu
end_timeStringThời gian kết thúc

Ví dụ request

json
{
  "vbot_id": "sample string 1",
  "project_code": "sample string 2",
  "member_no": "sample string 3",
  "hotline_number": "sample string 4",
  "allow_call": true,
  "start_time": "sample string 6",
  "end_time": "sample string 7"
}

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
}

Xóa hotline của thành viên

POST[URL]/api/hotline/member/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
member_noStringMã thành viên

Ví dụ request

json
{
  "vbot_id": "sample string 1",
  "project_code": "sample string 2",
  "member_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
}