Get list of existing vehicles.
Authorization and access
Authorization process is described here. Each API request must also consist of unique Api-key obtained during application registration together with client_id and client_secret.
Url parameters and connection settings
- URL: https://api.platform.trans.eu
- Endpoint: /ext/fleet-api/v1/vehicles
- Http Method: GET
Headers
- Accept: application/json
- Content-type: application/json
- Authorization: Bearer {access_token}
- Api-key: {unique_app_api-key}
Example response
{
"page": 1,
"page_count": 5,
"page_size": 10,
"total_items": 45,
"vehicles": [
{
"id": 45101,
"kind": "lorry",
"manufacturer": "VOLVO",
"model": "F10",
"name": null,
"registration_plate_number": "D000000",
"specifications": {
"cargo_space_capacity": 24,
"combustion_norm": "EURO 6",
"pallets": {
"amount": 5,
"type": "europalette"
}
},
"type": "food-tanker",
"vehicle_id": "207fcf0e-3afc-4d6f-b4d2-bbe772e82199",
"vin": "123456789101112"
},
{
"next_vehicle_example": "next_vehicle_example"
}
]
}
Paging
When calling GET method, page should be added as parameter in the URL, for example:
GET https://api.platform.trans.eu/ext/fleet-api/v1/vehicles?page=4