This API version is deprecated
Please use the latest version for continued support and access to new features. View latest API documentation
Locations API
Get truck charging availability.
Get truck charging availability.
Endpoint
GET - https://api.travisroadservices.com/v1/locations/truckcharging/availability
Copy
Query params
| Parameter | Type | Description |
|---|---|---|
locationIds
|
string | Filters by location IDs. Multiple values can be passed to broaden the filter. |
arrivalDateTime
|
string | Filters by arrival date and time. Minutes must be one of 00, 15, 30, or 45. |
departureDateTime
|
string | Filters by departure date and time. Minutes must be one of 00, 15, 30, or 45. |
bayCapacity
|
string | Filters by bay capacity range (min and max kW). Pass as bayCapacity[]=min&bayCapacity[]=max. |
baySize
|
string | Filters by bay size. Possible values: truck, truck_with_trailer, rigid_truck. |
page
|
string | The collection page number |
itemsPerPage
|
string | The number of items per page |
Request body
No request bodyResponse body
Response 200
TruckChargingAvailabilityResource collection
Fields
| Field | Type | Description |
|---|---|---|
locationId
|
integer | Unique identifier of the location. |
available
|
boolean | Whether any charging bay is available at this location. |
bayTypes
|
array | Available bay types with their availability count. |
price
|
object | Estimated price for a charging session. |
price
|
integer | Price amount in minor currency units (e.g. cents). |
currency
|
string | ISO 4217 currency code. |
Example