Kết quả chiến dịch
Lấy kết quả chiến dịch qua API

Kết quả chiến dịch
GET
{{domain}}/api/v1/campaigns/results
Query Parameters
Name
Type
Description
start_time
DateTimeTZ
Thời gian tạo từ ngày (yyyy-MM-ddTHH:mm:ssZ)
end_time
DateTimeTZ
Thời gian tạo tới ngày (yyyy-MM-ddTHH:mm:ssZ)
campaign_id*
Int
ID chiến dịch
manual_message_id
Int
ID tin nhắn thủ công
auto_message_id
Int
ID tin nhắn tự độngn
script_id*
Int
ID kịch bản
{
"code": "OK",
"numFound": 2,
"data": [
{
"ticket_id": 384879220,
"ticket_no": 7299,
"ticket_priority": "Normal",
"ticket_source": "Api",
"ticket_status": "pending",
"ticket_subject": "Khách hủy đơn mua iphone #200939",
"created_at": "2023-04-12 14:08:48",
....
"custom_field": [
{
"id": 6783,
"lable": "Cuộc gọi nhỡ",
"type": "Text",
"value": null
}
...
],
"assignee": {
"id": 124734559,
"username": "Sale agent 1",
"email": "nng****.com",
"phone_no": "09875****",
"agent_id": "50002",
"role_id": 1,
"group_id": 13067,
"group_name": "test 123"
},
"requester": {
"id": 164882867,
"username": "Khach Hang Nguyen Van Nam",
"email": null,
"email2": null,
"phone_no": "08122***",
"phone_no2": null,
"phone_no3": null,
"organization_id": null,
"custom_field": [
{
"id": 6840,
"lable": "Phân loại khách hàng",
"type": "Single drop-down list",
"value": null
}
...
]
},
"campaign_result": [
{
"id": 23452,
"lable": "Bạn có thực sự đặt hàng",
"type": "Single drop-down list",
"value": "52336"
},
{
"id": 23453,
"lable": "Tại sao bạn hủy đơn",
"type": "Text",
"value": "Do dat loi"
},
{
"id": 23454,
"lable": "Cảm ơn bạn nhiều",
"type": "Text",
"value": "Vang"
}
]
},
...
]
}
Last updated