Get list of existing vehicles

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_capacity”: 24,
                “combustion_norm”: “EURO 6”,
                “pallets”: {
                    “amount”: 5,
                    “type”: “europalette”
                }
            },
            “type”: “food-tanker”,
            “vehicle_id”: 239705,
            “vin”: “123456789101112”
        },
{/next vehicle}
}

 

Paging

When calling GET method, page should be added as parameter in the URL, for example: https://api.platform.trans.eu/ext/fleet-api/v1/vehicles?page=4