Skip to content

Quản lý lịch sử cuộc gọi

API quản lý lịch sử cuộc gọi.

Lấy danh sách lịch sử cuộc gọi

API lấy danh sách lịch sử cuộc gọi

GET[URL]/api/crm/historycall/getAll

Parameters

AuthorizationAccess token: Bearer

Body

vbot_idStringVBotID khách hàngBắt buộc
project_codeStringMã nhómBắt buộc
phoneStringSố điện thoạiBắt buộc
pageIntSố trangBắt buộc
sizeIntSố lượng trên 1 trangBắt buộc
JSON
{
    "vbot_id": "sample string 1",
    "project_code": "sample string 2",
    "phone": "sample string 3",
    "page": 1,
    "size": 10
}

Response

statusStringMã trạng thái, 1: Thành công, 0: Thất bại
dataStringDanh sách lịch sử cuộc gọi
hotline_numberStringHotline
date_createStringThời gian gọi
time_callStringThời gian cuộc gọi
type_callStringCALLIN, CALLOUT, MISSCALL
callerStringDanh sách người gọi
calleeStringDanh sách người nghe
postageStringChi phí cuộc gọi
sourceStringĐược gọi từ đâu
event_dataStringKiểu dữ liệu
dispositionStringMORE: Nhiều trạng thái khác của cuộc gọi, MISSCALL: Cuộc gọi nhỡ, ANSWER: Nghe máy, BUSY: Người nhận bận, NOANSWER: Người nhận không trả lời, CANCEL: Người gọi hủy cuộc gọi, SOMEONEANSWERED: Đã có người khác nghe máy, LOGOUT: Đang trong trạng thái Logout, INCALL: Đang trong cuộc gọi khác, CONGESTION, CHANUNAVAIL, DONTCALL, TORTURE, INVALIDARGS, NORMAL_CLEARING: Lỗi cuộc gọi
record_fileStringFile ghi âm
messageStringThông tin lỗi
errorIntMã lỗi
JSON
{
    "status": 1,
    "error": 2,
    "message": "sample string 3",
    "data": [
        {
            "hotline_number": "sample string 1",
            "date_create": "10/25/2023 10:34:15",
            "caller": [
                {
                    "phone": "sample string 1",
                    "vbot_id": "sample string 2",
                    "date_create": "10/25/2023 10:34:15",
                    "disposition": "sample string 4",
                    "time_call": "sample string 5",
                    "postage": 6.1,
                    "source": "sample string 7",
                    "member_no": "sample string 8"
                }
            ],
            "callee": [
                {
                    "phone": "sample string 1",
                    "vbot_id": "sample string 2",
                    "date_create": "10/25/2023 10:34:15",
                    "disposition": "sample string 4",
                    "time_call": "sample string 5",
                    "postage": 6.1,
                    "source": "sample string 7",
                    "member_no": "sample string 8"
                }
            ],
            "time_call": "sample string 3",
            "type_call": "sample string 4",
            "disposition": "sample string 5",
            "record_file": ["sample string 1", "sample string 2"]
    }
  ]
}

Lấy số lượng cuộc gọi

Lấy số lượng cuộc gọi

GET[URL]/api/crm/historycall/getAll

Parameters

Header

AuthorizationAccess token: Bearer

Body

vbot_idStringVBotID khách hàngBắt buộc
project_codeStringMã nhómBắt buộc
phoneStringSố điện thoạiBắt buộc
JSON
{
    "vbot_id": "sample string 1",
    "project_code": "sample string 2",
    "phone": "sample string 3"
}

Response

statusStringMã trạng thái, 1: Thành công, 0: Thất bại
dataIntSố lượng cuộc gọi
messageStringThông tin lỗi
errorIntMã lỗi
JSON
{
    "status": 1,
    "error": 2,
    "message": "sample string 3",
    "data": 4
}