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

Header

Tham sốGiá trị
X-API-Keytoken-open-api

Tham số

Tham sốKiểuBắt buộcMô tả

Response

Tham sốKiểuMô tả
errorIntMã lỗi (0: Thành công, khác 0: Có 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
{
  "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"
    }
  ]
}