💬服務紀錄
搜尋
GET https://{API_DOMAIN}/api/v1/interact-collection
curl -X GET
-H "Content-Type: application/json"
'{"handler_id": 3}'
https://{API_HOST}/api/v1/interact-collection
Form Data
下表為可使用的過濾條件
PARAMETER
REQUIRED
DEFAULT
TYPE
DESCRIPTION
handler_id
false
NULL
Number
負責專員的 ID
handler_group_id
false
NULL
Number
此服務紀錄負責專員的員工群組
contact_id
false
NULL
Numbe
相關連的客戶 ID
created_at__start
false
NULL
Datetime
服務紀錄開始時間
created_at__end
false
NULL
Datetime
服務紀錄結束時間
is_acw_completed
false
NULL
Boolean
是否為服務完成狀態
Response
{
"data": [
{
"id": 491,
"is_acw_completed": false,
"first_enter_queue_at": "2021-04-14 13:36:35",
"first_start_service_at": "2021-05-06 12:23:25",
"acw_at": null,
"last_finished_at": null,
"handler_id": 1,
"handler": {
"id": 1,
"name": "alice chang",
"first_name": "alice",
"last_name": "chang",
"employee_no": "alice",
"photo_url": null,
"identity_no": null,
"job_title_id": -1,
"department_id": -1,
"extension_id": 25,
"extension": {
"id": 25,
"type": 3,
"extension": "8002",
"webrtc_password": "540939228002",
"description": null,
"media_cluster_id": null
},
"profile_id": 2195673,
"group_id": 1,
"group": {
"id": 1,
"name": "客服小組",
"description": null,
"supervisor_id": 4
},
"cti_agent_account": "ag8002",
"cti_agent": {
"id": 6,
"account": "ag8002",
"group_id": null
},
"cti_agent_id": 6,
"created_at": "2019-05-07 12:37:48",
"updated_at": "2021-01-07 10:28:04"
},
"contact_id": null,
"contact": null,
"memo": null,
"bound_type": 1,
"logs": [
{
"id": 522,
"enter_queue_at": "2021-04-14 13:36:35",
"service_start_at": "2021-05-06 12:23:25",
"service_end_at": null,
"service_time": null,
"status": 1,
"bound_type": 1,
"provider_type": "App\\LivechatContentProvider",
"provider": {
"id": 61,
"message": [
{
"id": 2675,
"type": "text",
"content": "哈囉",
"is_contact": true,
"is_system": false,
"is_csat": false,
"is_kb": false,
"kb_id": null,
"sender_id": 5,
"question": null,
"at": "2021-04-14 13:36:35"
}
],
"media_contact_id": 109,
"media_contact": {
"id": 109,
"name": "b97beb2d-bc60-4a14-86b1-31de6bfe928e",
"gender": null,
"state": 1,
"uuid": "b97beb2d-bc60-4a14-86b1-31de6bfe928e",
"token": "5f7916af6cdfba5efdddba0b981a84c4",
"is_visible": true,
"channel": "livechat.624de7dfabffd4875c0150ee03b65138.b97beb2d-bc60-4a14-86b1-31de6bfe928e"
}
},
"interact_collection_id": 491,
"can_listen": true
}
],
"sponsor_id": null,
"sponsor": null,
"campaign_queue": null,
"campaign_queue_id": null,
"reasons": [],
"reason_ids": [],
"result_id": null,
"result": {
"id": null,
"name": null,
"is_active": true,
"description": null,
"category_id": null,
"priority": null,
"created_at": null,
"updated_at": null
},
"media_cluster_id": null,
"employee_schedule": null,
"transfer_logs": [],
"created_at": "2021-05-06 12:23:25"
},
]
取得單一服務紀錄
https://{API_DOMAIN}/api/v1/interact-collection/{interact-collection}
curl -X GET
-H "Content-Type: application/json"
https://{API_HOST}/api/v1/interact-collection/245621
URL Parameters
PARAMETER
REQUIRED
DEFAULT
TYPE
DESCRIPTION
ID
true
NULL
Number
服務紀錄的 ID
Response
PROPERTY
TYPE
DESCRIPTION
{
"id": 495,
"is_acw_completed": false,
"first_enter_queue_at": "2021-04-14 13:36:35",
"first_start_service_at": "2021-04-15 12:23:25",
"acw_at": null,
"last_finished_at": null,
"handler_id": 1,
"handler": {
"id": 1,
"name": "alice chang",
"first_name": "alice",
"last_name": "chang",
"employee_no": "alice",
"photo_url": null,
"identity_no": null,
"job_title_id": -1,
"department_id": -1,
"extension_id": 25,
"extension": {
"id": 25,
"type": 3,
"extension": "8002",
"webrtc_password": "540939228002",
"description": null,
"media_cluster_id": null
},
"profile_id": 2195673,
"group_id": 1,
"group": {
"id": 1,
"name": "客服小組",
"description": null,
"supervisor_id": 4
},
"cti_agent_account": "ag8002",
"cti_agent": {
"id": 6,
"account": "ag8002",
"group_id": null
},
"cti_agent_id": 6,
"created_at": "2019-05-07 12:37:48",
"updated_at": "2021-01-07 10:28:04"
},
"contact_id": null,
"contact": null,
"memo": null,
"bound_type": 1,
"logs": [
{
"id": 522,
"enter_queue_at": "2021-04-14 13:36:35",
"service_start_at": "2021-05-06 12:23:25",
"service_end_at": null,
"service_time": null,
"status": 1,
"bound_type": 1,
"provider_type": "App\\LivechatContentProvider",
"provider": {
"id": 61,
"account": {
"id": 2,
"name": "TEST_001",
"description": "1212",
"is_enabled": true,
"welcome_message": "welcome",
"widget_introduction": "https://stackoverflow.com/questions/9549866/php-regex-to-remove-http-from-string\ntest",
"widget_settings": {
"background_color": "#30336b",
"position": "right",
"offset_from_bottom": "20",
"offset_from_right": 20,
"offset_from_horizontal": "20",
},
"widget_title": "welcome FIRST LINE",
"uris": [
"https://firstline.cc",
"https://firstline.localhost",
],
"media_cluster_id": 4,
"messenger_url": "https://firstline.localhost/livechat/messenger/2",
"js_url": "https://firstline.localhost/livechat.abc.js?t=1618377580",
"enable_livechat_direct_access": false,
"enable_query_request_secret_verify": true,
"query_request_secret": null,
"restrict_query_request_ips": null,
"skills": [
{
"id": 1,
"name": "英文",
"creater_id": 1
}
],
"skill_ids": [
1
]
},
"message": [
{
"id": 2675,
"type": "text",
"content": "哈囉",
"is_contact": true,
"is_system": false,
"is_csat": false,
"is_kb": false,
"kb_id": null,
"sender_id": 5,
"question": null,
"at": "2021-04-14 13:36:35"
}
],
"media_contact_id": 109,
"media_contact": {
"id": 109,
"name": "b97beb2d-bc60-4a14-86b1-31de6bfe928e",
"gender": null,
"state": 1,
"uuid": "b97beb2d-bc60-4a14-86b1-31de6bfe928e",
"token": "5f7916af6cdfba5efdddba0b981a84c4",
"is_visible": true,
"channel": "livechat.624de7dfabffd4875c0150ee03b65138.b97beb2d-bc60-4a14-86b1-31de6bfe928e"
}
},
"interact_collection_id": 491,
"can_listen": true
}
],
"sponsor_id": null,
"sponsor": null,
"campaign_queue": null,
"campaign_queue_id": null,
"reasons": [],
"reason_ids": [],
"result_id": null,
"result": {
"id": null,
"name": null,
"is_active": true,
"description": null,
"category_id": null,
"priority": null,
"created_at": null,
"updated_at": null
},
"media_cluster_id": null,
"fb_accounts": [
{
"id": 2,
"name": "110906707118012",
"media_cluster_id": 4,
"skills": [
{
"id": 2,
"name": "日文",
"description": null,
"creater_id": 1
},
],
"skill_ids": [
2,
]
}
],
"line_account_ids": [],
"line_accounts": [],
"employee_schedule": null,
"transfer_logs": [],
"created_at": "2021-05-06 12:23:25"
},
Last updated