Skip to content

Quản lý hotline

API quản lý hotline (số tổng đài). Sử dụng hotline_code từ API này khi gọi các API Call Confirmation.

Lấy danh sách hotline

Lấy danh sách tất cả hotline (số tổng đài) của dự án.

GET[URL]/api/hotline/getAll?vbot_id={vbot_id}&project_code={project_code}

Header

Tham sốGiá trị
AuthorizationBearer access_token

Tham số

Tham sốKiểuBắt buộcMô tả
vbot_idStringVBot ID
project_codeStringMã dự án

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
dataArrayDanh sách hotlines
data[].hotline_nameStringTên hotline
data[].hotline_numberStringSố hotline
data[].hotline_codeStringMã hotline (dùng khi gọi API callConfirm)

Ví dụ response

json
{
  "status": 1,
  "error": 0,
  "message": "Success",
  "data": [
    {
      "hotline_name": "Hotline Bán Hàng",
      "hotline_number": "0812345678",
      "hotline_code": "HL_SALES"
    },
    {
      "hotline_name": "Hotline Hỗ Trợ",
      "hotline_number": "0887654321",
      "hotline_code": "HL_SUPPORT"
    }
  ]
}