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ị
X-API-Keytoken-open-api

Body

Tham sốKiểuBắt buộcMô tả
member_noStringCóMã thành viên (chỉ chấp nhận chữ và số: a-zA-Z0-9)
hotline_numberStringCóSố hotline
allow_callBoolCóCho phép gọi
start_timeStringCóThời gian bắt đầu (HH:mm)
end_timeStringCóThời gian kết thúc (HH:mm)

Ví dụ request

json
{
  "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ả
errorIntMã lỗi (0: Thành công, khác 0: Có lỗi)
messageStringThông tin
dataBoolDữ liệu trả về

Ví dụ response

json
{
  "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ị
X-API-Keytoken-open-api

Body

Tham sốKiểuBắt buộcMô tả
member_noStringCóMã thành viên (chỉ chấp nhận chữ và số: a-zA-Z0-9)
hotline_numberStringCóSố hotline

Ví dụ request

json
{
  "member_no": "sample string 3"
}

Response

Tham sốKiểuMô tả
errorIntMã lỗi (0: Thành công, khác 0: Có lỗi)
messageStringThông tin
dataBoolDữ liệu trả về

Ví dụ response

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