Get contractor fleet

This method allows you to down­load part­ner fleet

Url parameters and connection settings

  • URL: https://api.platform.trans.eu
  • End­point: /ext/partners-api/v1/partners/{partnerId}/fleet
  • Http Method: GET

Headers

  • Accept: application/json
  • Con­tent-type: application/json
  • Autho­riza­tion: Bear­er {access_token}
  • Api-key: {unique_ap­p_api-key}

Authorization and access

Autho­riza­tion process is described here. Each API request must also con­sist of unique Api-key obtained dur­ing appli­ca­tion reg­is­tra­tion togeth­er with client_id and client_secret.

Response example

{
  "has_next_page": true,
  "page": 1,
  "page_size": 10,
  "vehicles": [
    {
      "gps": false,
      "kind": "bus/van",
      "manufacturer": "VOLKSWAGEN",
      "registration_plate_number": "DWR9999999",
      "specifications": {
        "cargo_space_capacity": {
          "unit_code": "t",
          "value": null
        },
        "combustion_norm": "EURO 6"
      },
      "type": "cooler"
    },
    {
      "gps": false,
      "kind": "semi-trailer",
      "manufacturer": "FIAT",
      "registration_plate_number": "PL1211",
      "specifications": {
        "cargo_capacity": {
          "unit_code": "t",
          "value": 24
        },
        "combustion_norm": null
      },
      "type": "tent"
    }
  ]
}

Paging

When call­ing GET method, page should be added as para­me­ter in the URL, for exam­ple:

GET https://api.platform.trans.eu/ext/partners-api/v1/partners/{partnerId}/fleet?page=4