Skip to main content

Vehicle API - Apigee (1.1.0)

Download OpenAPI specification:Download

Vehicle API documentation

Authentication & Authorization

You will need to be identified before calling any endpoints.

In order to be recognized and authorized to access our Vehicle API, we put in place 2 mechanisms:

  • Authentication mechanism is done with a client id dedicated to you.
    Remember that the client id provided should be shared with care.
    The client id must be inserted in the header of the request in the appropriate field
  • Authorization mechanism is done by a well-known authorization flow for REST Web API: Basic auth flow.

Vehicles

Vehicles operation with all operation types

Get vehicles data

Get vehicles data filtered by parameters

Authorizations:
(OAuth2ApiKeyAuth)
query Parameters
pageNumber
required
integer <int32> (PageNumberParam) [ 1 .. 1000 ]
Example: pageNumber=2

The page number

pageSize
required
integer <int32> (PageSizeParam) [ 1 .. 1000 ]
Example: pageSize=2

The page size

lastModifiedDateFrom
string <date-time> (lastModifiedDateFromParam)
Example: lastModifiedDateFrom=2024-05-02T10:00:00

Date from for last update date of data

lastModifiedDateTo
string <date-time> (lastModifiedDateToParam)
Example: lastModifiedDateTo=2024-05-02T10:00:00

Date to for last update date of data

registrationNumber
string (RegistrationNumberParam) <= 255 characters
Example: registrationNumber=AA-123-AA

Registration number, if filled then dates filters will not be taken into account

registrationCountryCode
string (RegistrationCountryCodeParam) <= 255 characters
Example: registrationCountryCode=FR

Country code of registration, only used to trigger autoidat calls

externalRef
string (ExternalRefQueryParam) <= 255 characters
Example: externalRef=1000045

Identifier of the external reference

source
string (SourceQueryParam) <= 255 characters
Example: source=GENES

Source of the external reference

siteCode
string (SiteCodeQueryParam) <= 255 characters
Example: siteCode=1000365

Site identifier

customerVehicleReference
string (CustomerVehicleReferenceQueryParam) <= 255 characters
Example: customerVehicleReference=1024

Customer vehicle identifier

withInactive
boolean (WithInactiveQueryParam)
Default: false
Example: withInactive=false

Add inactive vehicle

withExternalRef
boolean (WithExternalRefQueryParam)
Default: false
Example: withExternalRef=false

Add external references

Responses

Response samples

Content type
application/json
{
  • "pagination": {
    },
  • "vehicles": [
    ]
}

Create vehicles data

Create vehicles

Authorizations:
(OAuth2ApiKeyAuth)
Request Body schema: application/json
externalRef
required
string (ExternalRef) <= 255 characters

Vehicle reference code of the source

partyExternalRef
string <= 255 characters

Party external Reference

siteExternalRef
string <= 255 characters

Site external Reference

ownerExternalRef
string <= 255 characters

Owner external Reference

active
boolean (Active)

true if vehicle is active

customerVehicleReference
string <= 255 characters

Customer Vehicle Reference

registrationNumber
string (RegistrationNumber) <= 255 characters

Vehicle registration number

registrationDate
string <date> (RegistrationDate)

Vehicle registration date

category
string (CategoryName) <= 255 characters

Category name

type
string <= 255 characters

Type of the vehicle

vin
string (VIN) <= 255 characters

Vehicle Identification Number

vrn
string (VRN) <= 255 characters

Vehicle Registration Number

make
string (Make) <= 255 characters

Vehicle make

model
string (Model) <= 255 characters

Vehicle model

energy
string (Energy) <= 255 characters

Vehicle energy

rimType
string <= 255 characters

Rim Type

Array of objects (AxleDTO) <= 1000 items
state
integer <int32>

Link to the last inspection

mileage
integer (Mileage)

Vehicle mileage

mileageUOM
string (MileageUOM) <= 255 characters

Vehicle mileage unit of measure

annualMileage
integer (AnnualMileage)

Vehicle annual mileage

annualMileageUOM
string (AnnualMileageUOM) <= 255 characters

Vehicle annual mileage unit of measure

workingHours
integer <int32>

Working hours of the vehicle

nextInspectionDate
string <date> (NextInspectionDate)

Vehicle next inspection date

Responses

Request samples

Content type
application/json

Create a vehicle with the given informations

{
  • "externalRef": "AAA123",
  • "partyExternalRef": "208389",
  • "siteExternalRef": "208312",
  • "ownerExternalRef": "20831238",
  • "active": true,
  • "customerVehicleReference": "1040",
  • "registrationNumber": "AA-123-AA",
  • "registrationDate": "2024-01-01",
  • "category": "TRUCK",
  • "type": "TRACTOR_UNIT",
  • "vin": "",
  • "vrn": "",
  • "make": "Peugeot",
  • "model": "208",
  • "energy": "PETROL",
  • "rimType": "ALUMINIUM",
  • "axles": [
    ],
  • "state": 100001,
  • "mileage": 120000,
  • "mileageUOM": "km",
  • "annualMileage": 20000,
  • "annualMileageUOM": "km",
  • "workingHours": null,
  • "nextInspectionDate": "2025-09-10"
}

Response samples

Content type
application/json
{
  • "code": "1000293"
}

Get tyre options for a vehicle

Get tyre options for a vehicle

Authorizations:
(OAuth2ApiKeyAuth)
path Parameters
vehicleCode
required
integer <int32> (VehicleCodeParam)
Example: 2

The vehicle code

Responses

Response samples

Content type
application/json
{
  • "tyreOptions": [
    ]
}

Get vehicles states

Get vehicles state data filtered by parameters

Authorizations:
(OAuth2ApiKeyAuth)
query Parameters
pageNumber
required
integer <int32> (PageNumberParam) [ 1 .. 1000 ]
Example: pageNumber=2

The page number

pageSize
required
integer <int32> (PageSizeParam) [ 1 .. 1000 ]
Example: pageSize=2

The page size

lastModifiedDateFrom
string <date-time> (lastModifiedDateFromParam)
Example: lastModifiedDateFrom=2024-05-02T10:00:00

Date from for last update date of data

lastModifiedDateTo
string <date-time> (lastModifiedDateToParam)
Example: lastModifiedDateTo=2024-05-02T10:00:00

Date to for last update date of data

Responses

Response samples

Content type
application/json
{
  • "pagination": {
    },
  • "vehicles": [
    ]
}

Get site vehicle

Get list of vehicles from site

Authorizations:
(OAuth2ApiKeyAuth)
path Parameters
siteCode
required
string (SiteCodeParam) <= 255 characters
Example: 1

The site code

Responses

Response samples

Content type
application/json
{
  • "vehicles": [
    ]
}

Get a vehicle

Retrieve a vehicle by his code

Authorizations:
(OAuth2ApiKeyAuth)
path Parameters
vehicleCode
required
integer <int32> (VehicleCodeParam)
Example: 2

Targeted vehicle code

Responses

Response samples

Content type
application/json
{
  • "code": 1000001,
  • "siteCode": 100001,
  • "ownerCode": "1000001",
  • "active": true,
  • "customerVehicleReference": "1040",
  • "registrationNumber": "AA-123-AA",
  • "registrationDate": "2024-01-01",
  • "category": "TRUCK",
  • "type": "TRACTOR_UNIT",
  • "vin": "1000001",
  • "vrn": "1000001",
  • "make": "VOLVO",
  • "model": "FH16",
  • "energy": "PETROL",
  • "rimType": "ALUMINIUM",
  • "axles": [
    ],
  • "state": 100001,
  • "lastModifiedDate": "2024-12-27T12:23:23"
}

Makes

Makes operation with all operation types

Get makes

Get list of makes

Authorizations:
(OAuth2ApiKeyAuth)
query Parameters
typeCode
string (TypeCodeQueryParam) <= 255 characters
Example: typeCode=Ford Trucks

TypeCode to find corresponding makes

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Energies

Makes operation with all operation types

Get Energies

Get list of energies

Authorizations:
(OAuth2ApiKeyAuth)
query Parameters
typeCode
string (TypeCodeQueryParam) <= 255 characters
Example: typeCode=Ford Trucks

TypeCode to find corresponding makes

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Categories

Categories operation with all operation types

Get categories

Get list of categories

Authorizations:
(OAuth2ApiKeyAuth)
query Parameters
name
string <= 255 characters
Example: name=indus

Name to find corresponding categories

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Types

Types operation with all operation types

Get types

Retrieve vehicle category types

Authorizations:
(OAuth2ApiKeyAuth)
query Parameters
categoryCode
string <= 255 characters
Example: categoryCode=indus

Name to find corresponding categories

Responses

Response samples

Content type
application/json
[
  • {
    }
]

AxleConfigurations

Axle configurations operation with all operation types

Get Axle Configurations

Get list of axle configurations

Authorizations:
(OAuth2ApiKeyAuth)
query Parameters
typeCode
string (TypeCodeQueryParam) <= 255 characters
Example: typeCode=Ford Trucks

TypeCode to find corresponding axle configurations

Responses

Response samples

Content type
application/json
[
  • {
    }
]