Skip to main content
POST
/
api
/
v1
/
fleets
/
{assetProviderCountryCode}
/
{assetProviderCode}
/
{vehicleId}
/
logbook
Get the entire logbook
curl --request POST \
  --url https://api.smartmove.eu/m2m/api/v1/fleets/{assetProviderCountryCode}/{assetProviderCode}/{vehicleId}/logbook \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pagination": {
    "pageSize": 100,
    "page": 0
  },
  "filters": [
    {
      "field": "fromDatetime",
      "operation": "BEFORE",
      "value": "<unknown>"
    }
  ],
  "sorting": [
    {
      "by": "type",
      "direction": "ASC"
    }
  ]
}
'
{
  "items": [
    {
      "id": 123,
      "type": "Business",
      "fromDatetime": "2025-10-07T10:24:41.143Z",
      "fromLocation": {
        "geoLatitude": 15.01,
        "geoLongitude": 2.8,
        "name": "smartmove location",
        "address": "Street 1, 1010 Vienna, Austria"
      },
      "fromMileage": 100,
      "created": "2025-10-07T10:24:41.143Z",
      "toDatetime": "2025-10-07T10:24:41.143Z",
      "toLocation": {
        "geoLatitude": 15.01,
        "geoLongitude": 2.8,
        "name": "smartmove location",
        "address": "Street 1, 1010 Vienna, Austria"
      },
      "toMileage": 340,
      "distance": 240,
      "driver": {
        "mobilityProviderCountryCode": "AT",
        "mobilityProviderCode": "ABC",
        "customerId": "828c2d1c-d933-4138-9577-02c292b6d869"
      },
      "note": "<string>"
    }
  ],
  "pagination": {
    "pageSize": 100,
    "pageNumber": 0,
    "totalEntries": 1
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

assetProviderCountryCode
string
required

The two-letter country code of the asset provider the vehicles belong to

Required string length: 2
assetProviderCode
string
required

The three-character code of the asset provider the vehicles belong to

Required string length: 3
vehicleId
string
required

The id of the vehicle

Body

application/json

The request body contains the new logbook entry that should be inserted into the logbook of the specified vehicle

pagination
object

Request what page is wanted to be retrieved

filters
object[]

These filters limit what entries of the logbook will be returned. Only the entries that satisfy all conditions are included.

sorting
object[]

The definition by which the fields of the entries are sorted. The order of setting the sorting items corresponds to the priority of sorting by the fields.

Response

The entire paginated logbook

items
object[]
required
pagination
object
required