from_time / to_time 按 visitor_device_sync_record.start_time 过滤,使用 13 位 Unix 毫秒级时间戳。sync_time 为访客同步开始时间,使用 13 位 Unix 毫秒级时间戳。show_all 默认为 false, 只返回每台设备、每张访客申请单的最新一条同步记录;传 true 可返回符合条件的全部同步记录。{
"visitor_form_id": 194588,
"visitor_name": "徐治强",
"host_name": "徐治强",
"host_job_number": "123",
"device_id": 30,
"from_time": 1768195200000,
"to_time": 1768281600000,
"show_all": false,
"offset": 0,
"limit": 20
}curl --location '/openapi/sync/log/visitor?access_token=undefined' \
--header 'Content-Type: application/json' \
--data '{
"visitor_form_id": 194588,
"visitor_name": "徐治强",
"host_name": "徐治强",
"host_job_number": "123",
"device_id": 30,
"from_time": 1768195200000,
"to_time": 1768281600000,
"show_all": false,
"offset": 0,
"limit": 20
}'{
"code": 0,
"message": "success",
"count": 1,
"data": [
{
"id": 696732,
"device_id": 30,
"device_name": "人脸门禁一体机",
"visitor_form_id": 194588,
"visitor_name": "徐治强",
"host_id": 17980,
"host_user_id": 59430,
"host_name": "徐治强",
"host_job_number": "",
"sync_status": 2,
"sync_time": 1768280075704,
"error_message": "同步超时 (应用请求但设备未在规定时间内响应)",
"operation_type": "add"
}
]
}