Last Updated on : 2023-06-15 05:28:21
Count the number of received event data of a specific type within a specified time period, and send it to the parking lot. The parking lot verifies the number within the same time period. If the two numbers are inconsistent, the corresponding data in the time period will be re-reported. If the two numbers are the same, it will not be reported.
Note:
- Currently, the vehicle pass data and temporary parking bill data can be synchronized.
- Jieshun parking lots does not support this command.
POST: /v1.0/parking-control/{device_id}/records/sync
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | uri | true | The ID of a specified device in the parking lot. |
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
data_type | Integer | true | The data type. Valid values:
| |
record_sync_infos | List | true | The information about synchronization tasks. |
Description of record_sync_infos
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
total_count | Long | true | The total number of records within a specified time period. | |
start_time | Long | true | The start time of counting. | |
end_time | Long | true | The end time of counting. The recommended time span is 1 hour, and no more than 24 hours. | |
pass_direction | Integer | false | The pass direction. It is required in the vehicle pass data. Valid values:
|
Parameter name | Type | Description |
---|---|---|
result | CmdIssueResultResponse | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
sn | String | The command record ID. |
POST: /v1.0/parking-control/6ce****/records/sync
{
"dataType": 0,
"recordSyncInfos": [
{
"totalCount": 10,
"startTime": 1652777782808,
"endTime": 1652779976771,
"passDirection": 0
}
]
}
{
"result": {
"sn": "135****"
},
"t": 1652779976771,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback