Allows to create new vehicle for fleet module in Trans.eu Platform.

Query

Request address and parameters.

  • HTTP Method: POST
  • URL: https://api.platform.trans.eu
  • Endpoint: /ext/fleet-api/v1/vehicles

Headers

  • Accept: application/json
  • Content-type: application/json
  • Authorization: Bearer {access_token}
  • Api-key: {Unique api key}

Authorization

Authorization process is described here.

For accessing freights API no additional scopes are set, therefore the scope parameter can be left empty.

Sample request

Sample Json for creating new freight using required data only.

{
"country": "pl",
"kind": "lorry",
"manufacturer": "VOLVO",
"model": "F10",
"registration_plate_number": "PL 1938",
"specifications": {
"adr_classes": [
"adr_1",
"adr_1_2"
],
"axle_amount": 4,
"cargo_space_capacity": 24,
"cargo_space_height": 2.05,
"cargo_space_length": 5,
"cargo_space_volume": 21,
"cargo_space_width": 2.05,
"combustion_level": 25,
"combustion_norm": "EURO 6",
"engine_capacity": 1900,
"equipments": [
"gps",
"lift",
"adr"
],
"fuel_type": "diesel",
"pallets": {
"amount": 5,
"type": "europalette"
},
"permissible_axle_load": 5,
"permissible_total_weight": 20,
"permissible_trailer_weight": 15,
"vehicle_height": 3,
"vehicle_length": 6,
"vehicle_width": 4,
"ways_of_loading": [
"top",
"side"
],
"year_of_production": 2018
},
"status": "IMPORTED",
"subtype": "food-tanker",
"type": "tanker",
"vehicle_id": 60006,
"vin": "234ggjhk342342k234"
}

Response

Response to properly given freight id.

{
"country": "pl",
"id": 30969,
"kind": "lorry",
"manufacturer": "VOLVO",
"model": "PC1000",
"name": "example name",
"registration_plate_number": "DTR 1234",
"specifications": {
"adr_classes": [
"adr_1",
"adr_1_2"
],
"axle_amount": 4,
"cargo_space_capacity": 24,
"cargo_space_height": 2.05,
"cargo_space_length": 5,
"cargo_space_volume": 21,
"cargo_space_width": 2.05,
"combustion_level": 25,
"combustion_norm": "EURO 6",
"date_of_first_registration": null,
"engine_capacity": 1900,
"equipments": [
"gps",
"lift",
"adr"
],
"fuel_type": "diesel",
"pallets": {
"amount": 5,
"type": "europalette"
},
"permissible_axle_load": 5,
"permissible_total_weight": 20,
"permissible_trailer_weight": 15,
"vehicle_height": 3,
"vehicle_length": 6,
"vehicle_width": 4,
"ways_of_loading": [
"top",
"side"
],
"year_of_production": 2018
},
"status": "IMPORTED",
"subtype": "standard-tent",
"type": "tent",
"vehicle_id": 60006,
"vin": "234ggjhk342342k234"
}