Get Charger Availability
GET/chargers/:charger/updated
The Get Charger Availability endpoint allows users to retrieve real-time details for a specific charger using its unique identifier. The response, provided in JSON format, includes crucial information such as the charger's location, current status, available plugs, and details about the provider. This endpoint is designed for accurate and timely updates on charger availability, making it a recommended step to check charger status before initiating a charging session. Users are advised to utilize this endpoint prior to initiating a charging session to ensure up-to-date information on the charger's availability, optimizing the user experience and minimizing potential disruptions during the charging process.
Request
Path Parameters
Unique identifier of the charger
Responses
- 200
- 401
- 500
Ok
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- Array [
- ]
- ]
- ]
chargerDetails object[]
plugs object[]
All plugs of a charger details
physicalPlugs object[]
All physical plugs of a logic plug
{
"_id": "63712f794e8aaa51a939339b",
"idPR": "5efad9e4e82ae5",
"idCupr": 0,
"lat": 43.29887,
"lon": -2.069368,
"status": true,
"plugs": 2,
"provider": "Repsol",
"connection": "direct",
"chargerDetails": [
{
"_id": "648b47cfdeccbd815984736d",
"charger": "648b47c9deccbd8159843cd4",
"name": "Fuengirola station",
"model": "Fuengirola station",
"address": "DE LA ENCARNACIÓN, 29640",
"town": "Fuengirola",
"state": "Málaga",
"hasRestaurant": false,
"hasMall": false,
"hasCarWash": true,
"hasParking": true,
"hasGasStation": true,
"hasShop": true,
"hasCoffeeShop": false,
"hasWorkshop": false,
"plusCode": 1234,
"accessPrice": 0.15,
"moreInfo": "extra info",
"schedule": "",
"plugs": [
{
"_id": "6372d0064e8aaa51a95b10cf",
"chargerDetails": "6372d0054e8aaa51a95b10a3",
"logicPlugId": 188,
"lastUpdate": "2023-11-12T01:58:47.000+00:00",
"chargeSpeedId": 3,
"provider": "EMT",
"physicalPlugs": [
{
"_id": "616b3830dca57819118cfe46",
"logicPlug": "616a0c1bdca57819117693a9",
"physicalPlugId": "101291f",
"conectorType": 20,
"status": false,
"lastUpdate": "2021-10-16T20:41:48.000+00:00",
"chargeMode": 1,
"maxPower": 11,
"provider": "EMT",
"price": 0.15
}
]
}
],
"provider": "emt",
"bookingType": 0.25,
"bookingTime": 1.3,
"freeCancelBookingTime": 1.55,
"createdAt": "2024-04-02T09:19:28.996Z",
"updatedAt": "2024-04-02T09:19:28.996Z",
"monday": "24h",
"tuesday": "24h",
"wednesday": "24h",
"thursday": "24h",
"friday": "24h",
"saturday": "24h",
"sunday": "24h"
}
],
"loc": [
-2.1564
],
"createdAt": "2024-04-02T09:19:28.996Z",
"updatedAt": "2024-04-02T09:19:28.996Z",
"show": true
}
Unauthorized
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "error message information",
"statusCode": 500,
"error": "Internal server error"
}