VCS API - Apigee (1.11.0)
Download OpenAPI specification:Download
VCS API documentation
Authentication & Authorization
You will need to be identified before calling any VCS API endpoints.
In order to be recognized and authorized to access our VCS API, we put in place 2 mechanisms:
- Authentication mechanism is done with an API key dedicated to you.
Remember that the API key provided should be shared with care.
The API key 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: “Client credentials” OAuth2.0 flow.
Get inspections data
Get inspections data filtered by parameters
Authorizations:
query Parameters
| pageNumber required | integer <int32> (PageNumberQueryParam) [ 1 .. 1000 ] Example: pageNumber=2 The page number |
| pageSize required | integer <int32> (PageSizeQueryParam) [ 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 |
| managingServiceCenterCode | string (managingServiceCenterCodeParam) <= 255 characters Managing service center code |
| vehicleCode | string (vehicleCodeParamString) <= 255 characters Example: vehicleCode=AA-123-BB Vehicle code param |
Responses
Response samples
- 200
- 400
- 401
- 404
- 500
{- "pagination": {
- "next": "/vcs-erm/v1/inspections?page=3&size=50",
- "previous": "/vcs-erm/v1/inspections?page=1&size=50",
- "pageTotal": "3",
- "totalElements": "125"
}, - "inspections": [
- {
- "code": "IP4122430S",
- "vehicleCode": "FZ-479-ZP",
- "inspectorCode": "jeanluc.lartigue.taqui",
- "locationCode": "St Léon",
- "locationName": "St Léon",
- "startDate": "2024-04-09T06:55:46",
- "endDate": "2024-04-09T06:57:52",
- "customer": {
- "companyCode": "SEMOCTOM",
- "fleetCode": "Semoctom",
- "locationCode": "St Léon",
- "locationName": "St Léon"
}, - "serviceProvider": {
- "contractorCode": "FR_BU_FRANCHISE_TAQUI",
- "marketCode": "FR_MA_FRANCHISE_TAQUI"
}, - "mileage": "120000",
- "mileageUOM": "km",
- "type": "",
- "comments": "",
- "managingServiceCenterCode": "",
- "lastModifiedDate": "2024-04-09T06:59:51",
- "measurements": [
- {
- "axlePosition": "1",
- "typrePosition": "1",
- "spareWheel": false,
- "tyreGroove": "2",
- "pressure": "2.3",
- "pressureUOM": "bar",
- "treadDepth": "8.4",
- "treadDepthUOM": "mm"
}
], - "observations": [
- {
- "axlePosition": "2",
- "tyrePosition": "3",
- "spareWheel": false,
- "name": "Irregular Wear",
- "type": "Irregular Wear",
- "severity": "Severe",
- "actionName": "Turn On Rim Urgent",
- "actionLevel": "Défaut"
}
]
}
]
}Create an inspection.
This endpoint allows to create an inspection.
Authorizations:
Request Body schema: application/json
| type | string (InspectionTypeEnumQueryParam) Enum: "COMPLETE" "VISUAL" "PRE_JOB" "POST_JOB" "AUTOMATED" "EXTERNAL" Type of the inspection |
| date required | string <date> (Date) Inspection date |
| inspectorCode | integer <int64> (InspectorCode) Inspector code |
| contractorCode | integer <int64> (ContractorCode) Contractor code |
| serviceProviderCode | integer <int64> (ServiceProviderCode) Service provider code |
| subscriptionCode | integer <int64> (SubscriptionCode) Subscription code |
| customerCode required | integer <int64> (CustomerCode) Customer code |
| customerSiteCode | integer <int64> (CustomerSiteCode) Customer site code |
| vehicleCode required | integer <int64> (VehicleCode) Vehicle code |
| mileage | integer <int32> (Mileage) Vehicle mileage |
| mileageUOM | string (MileageUOMEnum) Enum: "km" "mi" Vehicle mileage unit of measure |
| workingHours | integer <int32> (WorkingHours) Working hours |
| jobCode | integer <int64> (JobCode) Job code |
| containerId | string (ContainerId) <= 255 characters Unique identifier for the container |
Array of objects (InspectionDefectDTO) | |
Array of objects (InspectionAxleDTO) | |
Array of objects (InspectionWheelDTO) | |
| inspectionSiteCode | integer <int64> (InspectionSiteCode) Refers to another customer's site where the inspection is performed |
| serviceProviderSiteCode | integer <int64> (ServiceProviderSiteCode) Refers to a PoS for which the inspection is performed |
Responses
Request samples
- Payload
{- "type": "COMPLETE",
- "date": "2024-01-01",
- "inspectorCode": "100002",
- "contractorCode": "100003",
- "serviceProviderCode": "100004",
- "subscriptionCode": "100005",
- "customerCode": "100006",
- "customerSiteCode": "100007",
- "vehicleCode": "100008",
- "mileage": 120000,
- "mileageUOM": "km",
- "workingHours": 0,
- "jobCode": 100098,
- "containerId": "bfec86df-5e37-4844-8ba8-916dc956a5d2",
- "defects": [
- {
- "observationCode": 100023,
- "actionCode": 100067,
- "dueDateCode": 100098,
- "status": "CLOSED",
- "reason": "CUSTOMER_REFUSAL",
- "stage": "JOB_REQUEST",
- "maxFixedDate": "2024-03-15",
- "fixedDate": "2024-03-12",
- "jobCode": 100098,
- "images": [
]
}
], - "axles": [
- {
- "position": 1,
- "wheels": [
- {
- "position": 1,
- "tyre": {
- "articleCode": 1000029,
- "dot": "4218",
- "serialNumber": "4218",
- "measurements": [
- {
- "groovePosition": 1,
- "treadDepth": 2
}, - {
- "groovePosition": 2,
- "treadDepth": 2
}, - {
- "groovePosition": 3,
- "treadDepth": 2
}
], - "treadDepthUOM": "mm",
- "regrooved": "false",
- "pressure": "",
- "pressureUOM": "bar",
- "defects": [
- {
- "date": "2024-03-10",
- "observationCode": 100023,
- "actionCode": 100067,
- "dueDateCode": 100098,
- "status": "OPEN",
- "reason": "CUSTOMER_REFUSAL",
- "stage": "JOB_REQUEST",
- "maxFixedDate": "2024-03-20",
- "fixedDate": "2024-03-19",
- "jobCode": 100098,
- "images": [
]
}
]
}, - "tpms": {
- "batteryLevel": 33,
- "sensorId": "H28UD0E54EG75EF3"
}
}
]
}
], - "spareWheels": [
- {
- "position": 2,
- "tyre": {
- "articleCode": 100982,
- "dot": "2525",
- "serialNumber": "XX123",
- "measurements": [
- {
- "groovePosition": 2,
- "treadDepth": 2.5
}
], - "treadDepthUOM": "mm",
- "regrooved": false,
- "pressure": 2.5,
- "pressureUOM": "bar",
- "defects": [
- {
- "observationCode": 100004,
- "actionCode": 102671,
- "dueDateCode": 100006,
- "status": "CLOSED",
- "reason": "CUSTOMER_REFUSAL",
- "stage": "JOB_REQUEST",
- "maxFixedDate": "2024-04-01",
- "fixedDate": "2024-03-15",
- "jobCode": 102671,
- "images": [
]
}
]
}, - "tpms": {
- "sensorId": "H28UD0E54EG75EF3",
- "batteryLevel": 33,
- "batteryLevelUOM": "percent"
}
}
], - "inspectionSiteCode": "100009",
- "serviceProviderSiteCode": "100008"
}Response samples
- 200
- 400
- 401
- 500
{- "code": "1000023"
}Get inspections data
Get inspections data filtered by parameters
Authorizations:
query Parameters
| pageNumber | integer <int32> (PageNumberParamWithDefault) [ 1 .. 1000 ] Default: 1 Example: pageNumber=2 The page number |
| pageSize | integer <int32> (PageSizeParamWithDefault) [ 1 .. 1000 ] Default: 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 |
| inspectorCode | integer <int64> (InspectorCode) Example: inspectorCode=1000001 Code of the inspector |
| contractorCode | integer <int64> (ContractorCode) Example: contractorCode=1000001 Code of the contractor |
| customerCode | integer <int64> (CustomerCode) Example: customerCode=1000001 Code of the customer |
| customerSiteCode | integer <int64> (CustomerSiteCode) Example: customerSiteCode=1000001 Code of the customer site |
| vehicleCode | integer <int64> (VehicleCode) Example: vehicleCode=1000001 Code of the vehicle |
| withExternalRef | boolean (WithExternalRefQueryParam) Default: false Example: withExternalRef=true If filled then return external references for each inspection (default false) |
Responses
Response samples
- 200
- 400
- 401
- 404
- 500
{- "pagination": {
- "next": "/vcs-erm/v2/inspections?page=3&size=50",
- "previous": "/vcs-erm/v2/inspections?page=1&size=50",
- "pageTotal": 3,
- "totalElements": 125
}, - "inspections": [
- {
- "code": 100001,
- "type": "COMPLETE",
- "date": "2024-04-09",
- "inspectorCode": 1000024,
- "contractorCode": 1000025,
- "serviceProviderCode": 1000026,
- "subscriptionCode": 1000027,
- "customerCode": 1000028,
- "customerSiteCode": 1000029,
- "inspectionSiteCode": 1000031,
- "serviceProviderSiteCode": 100008,
- "vehicleCode": 1000030,
- "mileage": 120000,
- "mileageUOM": "km",
- "workingHours": 300,
- "jobCode": 1000001,
- "containerId": "bfec86df-5e37-4844-8ba8-916dc956a5d2",
- "defects": [
- {
- "code": 100023,
- "date": "2024-01-02",
- "observationCode": 100023,
- "actionCode": 100067,
- "dueDateCode": 100098,
- "axlePosition": 1,
- "wheelPosition": 2,
- "status": "CLOSED",
- "reason": "CUSTOMER_REFUSAL",
- "stage": "JOB_REQUEST",
- "maxFixedDate": "2024-03-15",
- "fixedDate": "2024-03-12",
- "jobCode": 1000001,
- "initialInspectionCode": 102634,
- "images": [
]
}
], - "axles": [
- {
- "position": 1,
- "wheels": [
- {
- "position": 1,
- "tyre": {
- "articleCode": 1000029,
- "dot": "4218",
- "serialNumber": "4218",
- "measurements": [
- {
- "groovePosition": 1,
- "treadDepth": 2
}
], - "treadDepthUOM": "mm",
- "regrooved": true,
- "pressure": "2.5",
- "pressureUOM": "bar",
- "defects": [
- {
- "code": 100023,
- "date": "2024-01-02",
- "observationCode": 100023,
- "actionCode": 100067,
- "dueDateCode": 100098,
- "axlePosition": 1,
- "wheelPosition": 2,
- "status": "OPEN",
- "reason": "NO_MORE_RELEVANT",
- "stage": "JOB_REQUEST",
- "maxFixedDate": "2024-03-20",
- "fixedDate": "",
- "jobCode": 1000001,
- "initialInspectionCode": 102634,
}
]
}, - "tpms": {
- "batteryLevel": 33,
- "sensorId": "H28UD0E54EG75EF3",
- "batteryLevelUOM": "binary"
}
}
]
}
], - "spareWheels": [
- {
- "position": 2,
- "tyre": {
- "articleCode": 100982,
- "dot": "2525",
- "serialNumber": "XX123",
- "measurements": [
- {
- "groovePosition": 2,
- "treadDepth": 2.5
}
], - "treadDepthUOM": "mm",
- "regrooved": false,
- "pressure": 2.5,
- "pressureUOM": "bar",
- "defects": [
- {
- "code": 100001,
- "date": "2024-03-01",
- "observationCode": 100004,
- "actionCode": 102671,
- "dueDateCode": 100006,
- "axlePosition": 1,
- "wheelPosition": 2,
- "status": "CLOSED",
- "reason": "CUSTOMER_REFUSAL",
- "stage": "JOB_REQUEST",
- "maxFixedDate": "2024-04-01",
- "fixedDate": "2024-03-15",
- "jobCode": 102671,
- "initialInspectionCode": 102634,
- "images": [
]
}
]
}, - "tpms": {
- "sensorId": "HI1873",
- "batteryLevel": 25,
- "batteryLevelUOM": "percent"
}
}
], - "lastModifiedDate": "2024-04-09T06:59:51",
- "lastModifiedBy": "system",
- "references": [
- {
- "source": "INSPECTION",
- "externalRef": "20831238",
- "lastModifiedDate": "2024-04-09T06:59:51"
}
]
}
]
}Upsert an inspection.
Create or update an inspection from an external source.
Authorizations:
Request Body schema: application/json
| externalRef required | string (externalRef) <= 255 characters External reference identifier |
| date required | string <date> (Date) Inspection date |
| type | string (InspectionTypeEnum) Enum: "COMPLETE" "VISUAL" "PRE_JOB" "POST_JOB" "AUTOMATED" "EXTERNAL" Type of the inspection |
| inspectorExternalRef | string (inspectorExternalRef) <= 255 characters External reference identifier of the inspector |
| contractorExternalRef | string (contractorExternalRef) <= 255 characters External reference identifier of the contractor |
| serviceProviderExternalRef | string (serviceProviderExternalRef) <= 255 characters External reference identifier of the service provider |
| customerExternalRef | string (customerExternalRef) <= 255 characters External reference identifier of the customer |
| customerSiteExternalRef | string (customerSiteExternalRef) <= 255 characters External reference identifier of the customer site |
| vehicleExternalRef required | string (vehicleExternalRef) <= 255 characters External reference identifier of the vehicle |
| mileage | integer <int32> (Mileage) Vehicle mileage |
| mileageUOM | string (MileageUOMEnum) Enum: "km" "mi" Vehicle mileage unit of measure |
| workingHours | integer <int32> (WorkingHours) Working hours |
Array of objects (InspectionExternalVehicleDefectDTO) | |
Array of objects (InspectionExternalAxleDTO) |
Responses
Request samples
- Payload
{- "externalRef": "INSP001",
- "date": "2024-01-01",
- "type": "COMPLETE",
- "inspectorExternalRef": "APP001",
- "contractorExternalRef": "CONTRACTOR001",
- "serviceProviderExternalRef": "SP001",
- "customerExternalRef": "CUST001",
- "customerSiteExternalRef": "SITET001",
- "vehicleExternalRef": "VEH001",
- "mileage": 120000,
- "mileageUOM": "km",
- "workingHours": 0,
- "containerId": "bfec86df-5e37-4844-8ba8-916dc956a5d2",
- "defects": [
- {
- "actionCode": 100067,
- "dueDateCode": 100098,
- "status": "CLOSED",
- "maxFixedDate": "2024-03-15",
- "fixedDate": "2024-03-12"
}
], - "axles": [
- {
- "position": 1,
- "wheels": [
- {
- "position": 1,
- "tyre": {
- "articleName": "ART001",
- "dot": "4218",
- "serialNumber": "XX123",
- "measurements": [
- {
- "groovePosition": 1,
- "treadDepth": 2
}, - {
- "groovePosition": 2,
- "treadDepth": 2
}, - {
- "groovePosition": 3,
- "treadDepth": 2
}
], - "treadDepthUOM": "mm",
- "regrooved": "false",
- "pressure": "",
- "pressureUOM": "bar",
- "defects": [
- {
- "observationCode": 100023,
- "actionCode": 100067,
- "dueDateCode": 100098,
- "status": "OPEN",
- "maxFixedDate": "2024-03-20",
- "fixedDate": "2024-03-19"
}
]
}, - "tpms": {
- "sensorId": "H28UD0E54EG75EF3",
- "batteryLevel": 33,
- "batteryLevelUOM": "percent"
}
}
]
}
]
}Response samples
- 200
- 400
- 401
- 500
{- "code": "1000023"
}Get an inspection
Retrieve an inspection by his code
Authorizations:
path Parameters
| inspectionCode required | integer <int64> (InspectionCodeParam) Example: 1000001 Targeted inspection code |
Responses
Response samples
- 200
- 401
- 404
- 500
{- "code": 1000001,
- "type": "COMPLETE",
- "date": "2024-01-01",
- "inspectorCode": 1000001,
- "contractorCode": 1000001,
- "serviceProviderCode": 1000001,
- "subscriptionCode": 1000001,
- "customerCode": 1000001,
- "customerSiteCode": 1000001,
- "vehicleCode": 1000001,
- "mileage": 120000,
- "mileageUOM": "km",
- "workingHours": 300,
- "lastModifiedDate": "2024-04-09T06:59:51",
- "lastModifiedBy": "system",
- "jobCode": 1000001,
- "containerId": "bfec86df-5e37-4844-8ba8-916dc956a5d2",
- "defects": [
- {
- "code": 100023,
- "date": "2024-01-02",
- "observationCode": 100023,
- "actionCode": 100067,
- "dueDateCode": 100098,
- "axlePosition": 1,
- "wheelPosition": 2,
- "status": "CLOSED",
- "reason": "CUSTOMER_REFUSAL",
- "stage": "JOB_REQUEST",
- "maxFixedDate": "2024-03-15",
- "fixedDate": "2024-03-12",
- "jobCode": 1000001,
- "initialInspectionCode": 102634,
- "images": [
]
}
], - "axles": [
- {
- "position": 1,
- "wheels": [
- {
- "position": 1,
- "tyre": {
- "articleCode": 1000029,
- "dot": "4218",
- "serialNumber": "4218",
- "measurements": [
- {
- "groovePosition": 1,
- "treadDepth": 2
}, - {
- "groovePosition": 2,
- "treadDepth": 2
}, - {
- "groovePosition": 3,
- "treadDepth": 2
}
], - "treadDepthUOM": "mm",
- "regrooved": true,
- "pressure": "",
- "pressureUOM": "bar",
- "defects": [
- {
- "code": 100023,
- "date": "2024-01-02",
- "observationCode": 100023,
- "actionCode": 100067,
- "dueDateCode": 100098,
- "axlePosition": 1,
- "wheelPosition": 2,
- "status": "OPEN",
- "reason": "NO_MORE_RELEVANT",
- "stage": "JOB_REQUEST",
- "maxFixedDate": "2024-03-20",
- "fixedDate": "",
- "jobCode": 1000001,
- "initialInspectionCode": 102634,
- "images": [
]
}
]
}, - "tpms": {
- "batteryLevel": 33,
- "sensorId": "H28UD0E54EG75EF3",
- "batteryLevelUOM": "percent"
}
}
]
}
], - "spareWheels": [
- {
- "position": 2,
- "tyre": {
- "articleCode": 100982,
- "dot": "2525",
- "serialNumber": "XX123",
- "measurements": [
- {
- "groovePosition": 2,
- "treadDepth": 2.5
}
], - "treadDepthUOM": "mm",
- "regrooved": false,
- "pressure": 2.5,
- "pressureUOM": "bar",
- "defects": [
- {
- "code": 100001,
- "date": "2024-03-01",
- "observationCode": 100004,
- "actionCode": 102671,
- "dueDateCode": 100006,
- "axlePosition": 1,
- "wheelPosition": 2,
- "status": "CLOSED",
- "reason": "CUSTOMER_REFUSAL",
- "stage": "JOB_REQUEST",
- "maxFixedDate": "2024-04-01",
- "fixedDate": "2024-03-15",
- "jobCode": 102671,
- "initialInspectionCode": 102634,
- "images": [
]
}
]
}, - "tpms": {
- "sensorId": "HI1873",
- "batteryLevel": 25,
- "batteryLevelUOM": "percent"
}
}
], - "inspectionSiteCode": 1000001,
- "serviceProviderSiteCode": 100008
}Update an existing inspection
Update an inspection by its code
Authorizations:
path Parameters
| inspectionCode required | integer <int64> (InspectionCodeParam) Example: 1000001 Targeted inspection code |
Request Body schema: application/json
| type | string (InspectionTypeEnum) Enum: "COMPLETE" "VISUAL" "PRE_JOB" "POST_JOB" "AUTOMATED" "EXTERNAL" Type of the inspection |
| date | string <date> (Date) Inspection date |
| inspectorCode | integer <int64> (InspectorCode) Inspector code |
| mileage | integer <int32> (Mileage) Vehicle mileage |
| mileageUOM | string (MileageUOMEnum) Enum: "km" "mi" Vehicle mileage unit of measure |
| workingHours | integer <int32> (WorkingHours) Working hours |
| jobCode | integer <int64> (JobCode) Job code |
| containerId | string (ContainerId) <= 255 characters Unique identifier for the container |
Array of objects (InspectionDefectQueryDTO) | |
Array of objects (InspectionAxleQueryDTO) | |
Array of objects (InspectionWheelQueryDTO) |
Responses
Request samples
- Payload
{- "type": "COMPLETE",
- "date": "2024-03-01",
- "inspectorCode": "100002",
- "mileage": "120000",
- "mileageUOM": "km",
- "workingHours": 300,
- "jobCode": "1000001",
- "containerId": "CONT12345",
- "defects": [
- {
- "observationCode": 100023,
- "actionCode": 102671,
- "dueDateCode": 100006,
- "status": 102671,
- "reason": "NO_MORE_RELEVANT",
- "stage": "JOB_REQUEST",
- "maxFixedDate": "2024-04-01",
- "fixedDate": "2024-03-15",
- "jobCode": "1000001",
- "images": [
]
}
], - "axles": [
- {
- "position": 1,
- "wheels": [
- {
- "position": 2,
- "tyre": {
- "articleCode": 1000029,
- "dot": "4218",
- "serialNumber": "XX123",
- "measurements": [
- {
- "groovePosition": 2,
- "treadDepth": 2.5
}
], - "treadDepthUOM": "mm",
- "regrooved": false,
- "pressure": 2.5,
- "pressureUOM": "bar",
- "defects": [
- {
- "date": "2024-03-10",
- "observationCode": 100004,
- "actionCode": 102671,
- "dueDateCode": 100006,
- "status": 102671,
- "reason": "NO_MORE_RELEVANT",
- "stage": "JOB_REQUEST",
- "maxFixedDate": "2024-04-01",
- "fixedDate": "2024-03-15",
- "jobCode": "1000001",
- "images": [
]
}
]
}, - "tpms": {
- "batteryLevel": 33,
- "sensorId": "HI1873"
}
}
]
}
], - "spareWheels": [
- {
- "position": 2,
- "tyre": {
- "articleCode": 100982,
- "dot": "2525",
- "serialNumber": "XX123",
- "measurements": [
- {
- "groovePosition": 2,
- "treadDepth": 2.5
}
], - "treadDepthUOM": "mm",
- "regrooved": false,
- "pressure": 2.5,
- "pressureUOM": "bar",
- "defects": [
- {
- "observationCode": 100004,
- "actionCode": 102671,
- "dueDateCode": 100006,
- "status": "CLOSED",
- "reason": "CUSTOMER_REFUSAL",
- "stage": "JOB_REQUEST",
- "maxFixedDate": "2024-04-01",
- "fixedDate": "2024-03-15",
- "jobCode": 102671,
- "images": [
]
}
]
}, - "tpms": {
- "sensorId": "H28UD0E54EG75EF3",
- "batteryLevel": 33,
- "batteryLevelUOM": "percent"
}
}
]
}Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "code": 100001
}Get due dates referential
Get due dates referential
Authorizations:
query Parameters
| language | string (languageQueryParam) <= 255 characters Example: language=fr-FR Language using ISO 639 and ISO 3166 |
| observationCode | integer <int64> (observationCodeQueryParam) Example: observationCode=1000001 Unique identifier of the observation to get corresponding due date. If not provided, filter on observationCode is not applied. |
| withObservations | boolean (withObservationsQueryParam) Default: false Example: withObservations=true Set to true to include associated observations in the results. If false (default), associated observations will not be returned. |
Responses
Response samples
- 200
- 400
- 401
- 500
[- {
- "code": 100023,
- "name": "+15JOURS",
- "daysNumber": 15,
- "severity": "HIGH",
- "observationCodes": [
- 100000,
- 100001
]
}
]Get observations referential
Get observations referential
Authorizations:
query Parameters
| language | string (languageQueryParam) <= 255 characters Example: language=fr-FR Language for translation |
Responses
Response samples
- 200
- 400
- 401
- 500
[- {
- "code": 100000,
- "name": "Irregular Wear"
}
]Get actions referential
Get actions referential
Authorizations:
query Parameters
| language | string (languageQueryParam) <= 255 characters Example: language=fr-FR Language for translation |
| level | string (levelQueryParam) <= 255 characters Example: level=VEHICLE Level for the action |
Responses
Response samples
- 200
- 400
- 401
- 500
[- {
- "code": 100000,
- "level": "VEHICLE",
- "name": "Tires to change"
}, - {
- "code": 100001,
- "level": "WHEEL",
- "name": "Tire to inflate"
}
]Get inspections report as pdf
Get inspections report as pdf for a specific customer + site
Authorizations:
path Parameters
| customerCode required | integer <int64> (customerCodeParam) Example: 1000001 Customer code |
query Parameters
| customerSiteCode required | integer <int64> (CustomerSiteCode) Example: customerSiteCode=1000001 Customer site code |
| dateFrom required | string <date> (dateFromParam) Example: dateFrom=2024-01-01 Date from criteria, used to filter inspections by date |
| dateTo required | string <date> (dateToParam) Example: dateTo=2024-01-31 Date to criteria, used to filter inspections by date |
| language | string (languageQueryParam) <= 255 characters Example: language=fr-FR Language for the report (e.g. 'nl-NL', 'fr-FR') |
Responses
Response samples
- 400
- 401
- 404
- 500
{- "errors": [
- {
- "error": "dateFrom : 2024-07-01T00:00 is greater than dateTo",
- "property": "dateFrom"
}
]
}Get inspections overdue report as pdf
Get inspections overdue report as pdf for a specific customer and site
Authorizations:
query Parameters
| customerCode required | integer <int64> (customerCodeParam) Example: customerCode=1000001 Customer code |
| customerSiteCode required | integer <int64> (CustomerSiteCode) Example: customerSiteCode=1000001 Customer site code |
| language | string (languageQueryParam) <= 255 characters Example: language=fr-FR Language for the report (e.g. 'nl-NL', 'fr-FR') |
Responses
Response samples
- 400
- 401
- 500
{- "errors": [
- {
- "error": "The field is too long. Max Length: 255",
- "property": "language"
}
]
}Create a container.
This endpoint allows to create a container.
Authorizations:
Responses
Response samples
- 201
- 401
- 500
{- "containerId": "bfec86df-5e37-4844-8ba8-916dc956a5d2",
- "queryParameters": "?sp=r&st=2025-07-23T09:29:36Z&se=2025-07-23T17:44:36Z&spr=https&sv=2024-11-04&sr=c&sig=D3ngwRN996INkqajdoN2iHprEjKkvWsCT8fjl%2BJtMs0%3D"
}Get an attachment from a storage.
This endpoint allows to get an attachment from a storage.
Authorizations:
path Parameters
| containerId required | string (ContainerId) <= 255 characters Example: bfec86df-5e37-4844-8ba8-916dc956a5d2 Targeted container ID |
| fileName required | string (FileName) <= 255 characters Example: image1.png File name |
Responses
Response samples
- 400
- 404
- 500
{- "errors": [
- {
- "error": "The field is too long. Max Length: 255",
- "property": "fileName"
}
]
}Put an attachment in a storage.
This endpoint allows to put an attachment in a storage.
Authorizations:
path Parameters
| containerId required | string (ContainerId) <= 255 characters Example: bfec86df-5e37-4844-8ba8-916dc956a5d2 Targeted container ID |
| fileName required | string (FileName) <= 255 characters Example: image1.png File name |
header Parameters
| x-ms-blob-type required | string (BlobType) Value: "BlockBlob" Specifies the type of blob to create |
Request Body schema:
Binary file content
Responses
Response samples
- 400
- 401
- 404
- 500
{- "errors": [
- {
- "error": "The field is too long. Max Length: 255",
- "property": "fileName"
}
]
}Get an inspectionAnalytics
Get the calculated inspection analytics within a date range for a list of sites and a subscription
Authorizations:
query Parameters
| subscriptionCode required | integer <int64> (SubscriptionCode) Example: subscriptionCode=1000001 Code of the subscription related to the inspections to analyze (code of the subscription into the Subscription repository). |
| inspectionDateFrom | string <date> (dateFromParam) Example: inspectionDateFrom=2024-01-01 Filters inspections for analytics on or after this date. Supports 'YYYY-MM-DD' format. |
| inspectionDateTo | string <date> (dateToParam) Example: inspectionDateTo=2024-01-31 Filters inspections for analytics on or before this date. Supports 'YYYY-MM-DD' format. |
| siteCodes | Array of integers <int64> (listSiteCodesParam) non-empty [ items <int64 > ] Example: siteCodes=1003856,1000042 List of site codes to filter the inspection analytics (code of the site into the Site repository). |
Responses
Response samples
- 200
- 400
- 401
- 500
{- "quantityInspectedVehicles": 175,
- "quantityMeasuredPressures": 150,
- "inspectedRegroovingRate": 0.1,
- "quantityUnderPressuredLowGap": 25,
- "quantityUnderPressuredHighGap": 50,
- "quantityARatedTyres": 100,
- "quantityBRatedTyres": 200,
- "quantityCRatedTyres": 150,
- "quantityDRatedTyres": 175,
- "quantityERatedTyres": 100
}Get the last known vehicle state.
Get the last known vehicle state. Returns the last inspection performed for the a vehicle no matter the inspection type (COMPLET, PRE_JOB, AUTOMATED, ...). Use the vehicle_code and the date of the inspection.
Authorizations:
path Parameters
| vehicleCode required | integer <int64> (VehicleCodeParam) Example: 1000001 Targeted vehicle code |
Responses
Response samples
- 200
- 401
- 404
- 500
{- "code": 1000001,
- "type": "COMPLETE",
- "date": "2024-01-01",
- "inspectorCode": 1000001,
- "contractorCode": 1000001,
- "serviceProviderCode": 1000001,
- "subscriptionCode": 1000001,
- "customerCode": 1000001,
- "customerSiteCode": 1000001,
- "vehicleCode": 1000001,
- "mileage": 120000,
- "mileageUOM": "km",
- "workingHours": 300,
- "lastModifiedDate": "2024-04-09T06:59:51",
- "lastModifiedBy": "system",
- "jobCode": 1000001,
- "containerId": "bfec86df-5e37-4844-8ba8-916dc956a5d2",
- "defects": [
- {
- "code": 100023,
- "date": "2024-01-02",
- "observationCode": 100023,
- "actionCode": 100067,
- "dueDateCode": 100098,
- "axlePosition": 1,
- "wheelPosition": 2,
- "status": "CLOSED",
- "reason": "CUSTOMER_REFUSAL",
- "stage": "JOB_REQUEST",
- "maxFixedDate": "2024-03-15",
- "fixedDate": "2024-03-12",
- "jobCode": 1000001,
- "initialInspectionCode": 102634,
- "images": [
]
}
], - "axles": [
- {
- "position": 1,
- "wheels": [
- {
- "position": 1,
- "tyre": {
- "articleCode": 1000029,
- "dot": "4218",
- "serialNumber": "4218",
- "measurements": [
- {
- "groovePosition": 1,
- "treadDepth": 2
}, - {
- "groovePosition": 2,
- "treadDepth": 2
}, - {
- "groovePosition": 3,
- "treadDepth": 2
}
], - "treadDepthUOM": "mm",
- "regrooved": true,
- "pressure": 2.5,
- "pressureUOM": "BAR",
- "defects": [
- {
- "code": 100023,
- "date": "2024-01-02",
- "observationCode": 100023,
- "actionCode": 100067,
- "dueDateCode": 100098,
- "axlePosition": 1,
- "wheelPosition": 2,
- "status": "OPEN",
- "reason": "NO_MORE_RELEVANT",
- "stage": "JOB_REQUEST",
- "maxFixedDate": "2024-03-20",
- "fixedDate": "",
- "jobCode": 1000001,
- "initialInspectionCode": 102634,
- "images": [
]
}
]
}, - "tpms": {
- "batteryLevel": 33,
- "sensorId": "H28UD0E54EG75EF3",
- "batteryLevelUOM": "binary"
}
}
]
}
], - "spareWheels": [
- {
- "position": 2,
- "tyre": {
- "articleCode": 100982,
- "dot": "2525",
- "serialNumber": "XX123",
- "measurements": [
- {
- "groovePosition": 2,
- "treadDepth": 2.5
}
], - "treadDepthUOM": "mm",
- "regrooved": false,
- "pressure": 2.5,
- "pressureUOM": "bar",
- "defects": [
- {
- "code": 100001,
- "date": "2024-03-01",
- "observationCode": 100004,
- "actionCode": 102671,
- "dueDateCode": 100006,
- "axlePosition": 1,
- "wheelPosition": 2,
- "status": "CLOSED",
- "reason": "CUSTOMER_REFUSAL",
- "stage": "JOB_REQUEST",
- "maxFixedDate": "2024-04-01",
- "fixedDate": "2024-03-15",
- "jobCode": 102671,
- "initialInspectionCode": 102634,
- "images": [
]
}
]
}, - "tpms": {
- "sensorId": "HI1873",
- "batteryLevel": 25,
- "batteryLevelUOM": "percent"
}
}
], - "inspectionSiteCode": 1000001,
- "serviceProviderSiteCode": 100008
}Get a defect by its code
Get a defect by its code
Authorizations:
path Parameters
| defectCode required | integer <int64> (DefectCode) Example: 1000001 Code of the defect |
Responses
Response samples
- 200
- 400
- 401
- 404
- 500
{- "code": 100023,
- "date": "2024-01-01",
- "observationCode": "1000001",
- "actionCode": "1000001",
- "dueDateCode": "1000001",
- "axlePosition": 1,
- "wheelPosition": 1,
- "status": "OPEN",
- "reason": "CUSTOMER_REFUSAL",
- "stage": "INSPECTION",
- "maxFixedDate": "2024-03-20",
- "fixedDate": "2024-03-15",
- "jobCode": "1000001",
- "initialInspectionCode": "1000001",
}Patch the status of a defect using the defect code
Patch the status of a defect using the defect code. Do not allow rollbacks. The "CLOSED" and "CANCELLED" statuses are final statuses. Once set the value cannot be longer changed.
Authorizations:
path Parameters
| defectCode required | integer <int64> (DefectCode) Example: 1000001 Code of the defect |
Request Body schema: application/json
| status required | string (DefectStatusEnum) Enum: "OPEN" "CLOSED" "CANCELLED" Status of the defect |
| reason | string (DefectReasonEnum) Enum: "NO_MORE_RELEVANT" "CUSTOMER_REFUSAL" "JOB_EXECUTION" Reason of the defect status |
| stage | string (DefectStageEnum) Enum: "INSPECTION" "PRE_JOB" "POST_JOB" "JOB_REQUEST" "JOB_EXECUTION" The specific business process stage where the 'status' of this defect was last updated or set. |
Responses
Request samples
- Payload
{- "status": "CLOSED",
- "reason": "CUSTOMER_REFUSAL",
- "stage": "JOB_REQUEST"
}Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "code": 100023,
- "date": "2024-01-01",
- "observationCode": "1000001",
- "actionCode": "1000001",
- "dueDateCode": "1000001",
- "axlePosition": 1,
- "wheelPosition": 1,
- "status": "OPEN",
- "reason": "CUSTOMER_REFUSAL",
- "stage": "INSPECTION",
- "maxFixedDate": "2024-03-20",
- "fixedDate": "2024-03-15",
- "jobCode": "1000001",
- "initialInspectionCode": "1000001",
}