How to: Retrieve the State of a Vehicle
For information about prerequisites, see Creating Vehicle.
To retrieve the current state of a Vehicle, call the Get Vehicle State endpoint by providing the vehicleId
in the path parameter.
The response body is returned in JSON format:
{
"error": {
"code": "string",
"description": "string"
},
"request": {
"uri": "string",
"body": {}
},
"data": {
"event": {
"toState": "active:available",
"reasonCode": "R-104",
"data": {}
},
"id": "vehicle:e5f2064c-1a8c-45d9-b125-05a5416135c9",
"state": "active:available"
}
}
Updated 2 months ago