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

Url parameters and connection settings

  • 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.

Json example

Sample Json for creating new vehicle using required data only.

{
 "country": "pl",
 "kind": "bus/van",
 "registration_plate_number": "Pl0101018"
}

 

Response

{
   "country": "pl",
   "id": 53510,
   "kind": "bus/van",
   "manufacturer": null,
   "model": null,
   "name": null,
   "registration_plate_number": "PL0101018",
   "specifications": {
       "cargo_capacity": null,
       "combustion_norm": null,
       "pallets": {
           "amount": null,
           "type": null
       }
   },
   "status": "ACTIVE",
   "subtype": null,
   "type": null,
   "vehicle_id": 501218,
   "vin": null
}