Get status of charger in ascending order, date range is restricted for only one day. If date range in request is not provided the latest data is returned
GET {{baseUrl}}/chargerStatus/chargers/:chargerId/availabilityStatus?from=<dateTime>&to=<dateTime>
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
from | string | Beginning of the time range to be retrieved (exclusive). Time stamp as per ISO 8601 format. "from" and "to" query param should be used together. | |
to | string | End of the time range to be retrieved (inclusive). Time stamp as per ISO 8601 format. "from" and "to" query param should be used together. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"items":[{"timeStamp":"2019-12-20T10:44:30.390Z","status":"Available","errorCode":"NoError","vendorErrorCode":"ex tempor laboris amet sit","vendorId":"pariatur nulla consectetur"},{"timeStamp":"2019-12-20T10:44:30.390Z","status":"Faulted","errorCode":"NoError","vendorErrorCode":"Excepteur incididunt quis magna","vendorId":"ut deserunt proident dolor fugiat"}]}