Operation log list
https://euapi.ttlock.com/v3/electricMeter/listOperationRecords
1 Request example
POST, ContentType:application/x-www-form-urlencoded
json
curl --location -g --request POST 'https://euapi.ttlock.com/v3/electricMeter/listOperationRecords' \
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'electricMeterId=3001' \
--data-urlencode 'pageNo=1' \
--data-urlencode 'pageSize=20' \
--data-urlencode 'date=1625025703000'2 Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | Assigned client_id from created application |
| accessToken | String | Y | Access token, obtain by calling get access token API |
| date | Long | Y | Current time (timestamp, in milliseconds) |
| electricMeterId | String | Y | Electricity meter ID |
| recordType | String | N | Operation types: 1: Recharge, 2: Power off, 3: Power on, 4: Meter reading, 5: Unit price modification, 6: Reset |
| searchStr | String | N | Search results |
| pageNo | Int | Y | Page numbers start from 1 |
| pageSize | Int | Y | Number of pages per page, maximum 1000 |
3 Response and example
| Name | Type | Description |
|---|---|---|
| list | JSONObject | List |
| total | Int | Total number of items |
Objects in the list
| Name | Type | Description |
|---|---|---|
| id | Int | Record ID |
| recordType | String | Operation types: -1: Date interval; 1: Clear remaining battery power; 2: Switch payment type; 4: Power on/off; 5: Meter reading; 6: Update unit price; 7:recharge; 8: recharging. |
| title | String | Title |
| content | String | Content |
| date | String | Operation time |
| headUrl | String | Operator's avatar |
json
{
"list": [
{
"total": 1,
"date": "2025-06-24",
"recordType": -1
},
{
"date": "14:59:34",
"recordType": 5,
"headUrl": "http://qiniuroommaster.sciener.cn/avator/TTLock99964251735882500842.jpg?sign=d4895923cadd4b07b5d247833b31714c&t=685cf58c",
"id": 13577,
"title": "135 black",
"content": "read meter,Total power: 9.89 kWh"
}
]
}