Brivio API reference
Vehicles

Record a trip sheet (foaie de parcurs) for a registry vehicle. Honours Idempotency-Key. (scope: fleet:write)

POST
/vehicles/{id}/trip-sheets

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key as Bearer token

Path Parameters

id*string

Registry vehicle id

Formatuuid

Request Body

application/json
  1. body
performed_at*string

ISO 8601 with offset.

Formatdate-time
driver_name?string
Lengthlength <= 255
route_from?string
Lengthlength <= 200
route_to?string
Lengthlength <= 200
purpose?string
Lengthlength <= 255
odometer_start_km?integer
Range0 <= value
odometer_end_km?integer

Must be ≥ odometer_start_km (422 otherwise).

Range0 <= value
fuel_issued_litres?number
Range0 <= value
notes?string
Lengthlength <= 2000

Response Body

OK

application/json
  1. response
data*

A foaie de parcurs (Romanian trip sheet). driver_name is present only when the key also holds fleet_drivers:read; otherwise the property is omitted.

error*null
curl -X POST "https://example.com/vehicles/497f6eca-6276-4993-bfeb-53cbbbba6f08/trip-sheets" \  -H "Content-Type: application/json" \  -d '{    "performed_at": "2019-08-24T14:15:22Z"  }'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "vehicle_id": "e57c411b-caf2-4a2e-b2e8-e232824b6ddf",    "performed_at": "2019-08-24T14:15:22Z",    "driver_id": "d13674cc-89e2-4383-beab-46a9e6e4a9b2",    "driver_name": "string",    "route_from": "string",    "route_to": "string",    "purpose": "string",    "odometer_start_km": 0,    "odometer_end_km": 0,    "distance_km": 0,    "fuel_issued_litres": "string",    "notes": "string",    "created_at": "2019-08-24T14:15:22Z"  },  "error": null}