This endpoint is currently available for ford
and lincoln
Permission
read_charge_locations
Request
Path
The vehicle ID of the vehicle you are making a request to.
The make of the vehicle you are making a request to.
curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/charge/schedule_by_location" \
-H "Authorization: Bearer {token}" \
-X "GET"
Response
An array of charging locations. Empty if none are currently set on the vehicle.
The maximum charge limit for the vehicle at the location as a percent.
The latitude and longitude of the charging location.
The longitude of the charging location.
The latitude of the charging location.
The weekday and weekend charging schedules for the vehicle at the location.
The charging schedule for the vehicle on weekdays (Monday - Friday).
The exact hour a vehicle should start charging in HH:00 e.g. 17:00.
The exact hour a vehicle should stop charging in HH:00 e.g. 21:00.
The charging schedule for the vehicle on weekends (Saturday - Sunday).
The exact hour a vehicle should start charging in HH:00 e.g. 17:00.
The exact hour a vehicle should stop charging in HH:00 e.g. 21:00.
{
"chargingLocations": [
{
"chargeLimit": 0.8,
"chargingSchedules": {
"weekday": [
{
"end": "17:00",
"start": "09:00"
}
],
"weekend": [
{
"end": "17:00",
"start": "09:00"
}
]
},
"location": {
"latitude": 48.8566,
"longitude": 2.3522
}
}
]
}
Example Schedule States
Vehicle will charge at any time
{
"chargingLocations": [
{
"chargeLimit": 0.8,
"chargingSchedules": {
"weekday": [],
"weekend": []
},
"location": {
"latitude": 48.8566,
"longitude": 2.3522
}
}
]
}
Vehicle has a schedule for Weekdays only
{
"chargingLocations": [
{
"chargeLimit": 0.8,
"chargingSchedules": {
"weekday": [
{
"end": "17:00",
"start": "09:00"
}
],
"weekend": []
},
"location": {
"latitude": 48.8566,
"longitude": 2.3522
}
}
]
}
Vehicle has a schedule for Weekends only
{
"chargingLocation" : {
"chargeLimit": 0.9,
"chargingSchedules": {
"weekday": [],
"weekend": [
{
"start": "16:00",
"end": "07:00"
}
]
}
}
}