Get Device Event Record
Description
取得裝置事件紀錄。
Resource
GET /v1/basic/device_event_record
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Query Parameters
| Name | Type | Description |
|---|---|---|
| store_id | string | 門市代碼 |
| device_id | string | 裝置代碼 (optional) |
| event_id | string | 事件代碼 (optional) |
| start_date | string | 日期開始範圍 |
| end_date | string | 日期結束範圍 |
Request Example
/v1/basic/device_event_record?store_id=TWNe01&device_id=K2&start_date=2025-02-11 00:00:00&end_date=2025-02-14 00:00:00
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| records | Record[] | 裝置事件紀錄 |
Response Body Parameters Record
| Name | Type | Description |
|---|---|---|
| input_date | string | 門市代碼 |
| device_id | string | 門市名稱 |
| event_id | string (enum) |
門市類型 ALLOWED VALUES:
|
| content | string | 發送內容 |
Response
Status-Code: 200
{
"records": [
{
"input_date": "2025-02-13 14:13:23",
"device_id": "K1",
"event_id": "printer_abnormal",
"content": "{\"company_id\": \"18090301\", \"shop_id\": \"TWNe01\", \"shop_name\": \"鬍鬚張測試店\", \"title\": \"出單機異常\", \"message\": \"<html><p>機號:K1</p><p>通知類別:出單機異常</p><p>客戶端顯示訊息:</p><p>沒有連線的出單機,請洽服務人員</p></html>\", \"event_type\": \"KIOSK_EXCEPTION\"}"
},
{
"input_date": "2025-02-13 15:00:02",
"device_id": "K1",
"event_id": "printer_abnormal",
"content": "{\"company_id\": \"18090301\", \"shop_id\": \"TWNe01\", \"shop_name\": \"鬍鬚張測試店\", \"title\": \"出單機異常\", \"message\": \"<html><p>機號:K1</p><p>通知類別:出單機異常</p><p>客戶端顯示訊息:</p><p>沒有連線的出單機,請洽服務人員</p></html>\", \"event_type\": \"KIOSK_EXCEPTION\"}"
},
{
"input_date": "2025-02-13 15:00:09",
"device_id": "K1",
"event_id": "printer_abnormal",
"content": "{\"company_id\": \"18090301\", \"shop_id\": \"TWNe01\", \"shop_name\": \"鬍鬚張測試店\", \"title\": \"出單機異常\", \"message\": \"<html><p>機號:K1</p><p>通知類別:出單機異常</p><p>客戶端顯示訊息:</p><p>沒有連線的出單機,請洽服務人員</p></html>\", \"event_type\": \"KIOSK_EXCEPTION\"}"
}
]
}
Status-Code: 200
{
"records": []
}