VCS API - Apigee (1.4.2)
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 (vehicleCodeParam) <= 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
| 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 | integer <int64> (CustomerCode) Customer code |
| customerSiteCode | integer <int64> (CustomerSiteCode) Customer site code |
| vehicleCode | integer <int64> (VehicleCode) Vehicle code |
| mileage | integer <int32> (Mileage) Vehicle mileage |
| mileageUOM | string (MileageUOM) <= 255 characters Vehicle mileage unit of measure |
| workingHours | integer <int32> (WorkingHours) Working hours |
| containerId | string (ContainerId) <= 255 characters Unique identifier for the container |
Array of objects (InspectionVehicleDefectDTO) | |
Array of objects (InspectionAxleDTO) |
Responses
Request samples
- Payload
{- "date": "2024-01-01",
- "inspectorCode": "100002",
- "contractorCode": "100003",
- "serviceProviderCode": "100004",
- "subscriptionCode": "100005",
- "customerCode": "100006",
- "customerSiteCode": "100007",
- "vehicleCode": "100008",
- "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",
- "images": [
- {
- "image": "image1.png"
}
]
}
], - "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": [
- {
- "observationCode": 100023,
- "actionCode": 100067,
- "dueDateCode": 100098,
- "status": "OPEN",
- "maxFixedDate": "2024-03-20",
- "fixedDate": "2024-03-19",
- "images": [
- {
- "image": "image1.png"
}
]
}
]
}, - "tpms": {
- "batteryLevel": 33,
- "sensorId": "H28UD0E54EG75EF3"
}
}
]
}
]
}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": "1000023",
- "date": "2024-04-09",
- "inspectorCode": 1000024,
- "contractorCode": 1000025,
- "serviceProviderCode": 1000026,
- "subscriptionCode": 1000027,
- "customerCode": 1000028,
- "customerSiteCode": 1000029,
- "vehicleCode": 1000030,
- "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": {
- "articleCode": 1000029,
- "dot": "4218",
- "serialNumber": "4218",
- "measurements": [
- {
- "groovePosition": 1,
- "treadDepth": 2
}
], - "treadDepthUOM": "mm",
- "regrooved": "true",
- "pressure": "",
- "pressureUOM": "BAR",
- "defects": [
- {
- "observationCode": 100023,
- "actionCode": 100067,
- "dueDateCode": 100098,
- "status": "OPEN",
- "maxFixedDate": "2024-03-20",
- "fixedDate": ""
}
]
}, - "tpms": {
- "batteryLevel": 33,
- "sensorId": "H28UD0E54EG75EF3"
}
}
]
}
], - "lastModifiedDate": "2024-04-09T06:59:51",
- "references": [
- {
- "source": "INSPECTION",
- "externalRef": "20831238",
- "lastModifiedDate": "2024-04-09T06:59:51"
}
]
}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",
- "date": "2024-01-01",
- "inspectorCode": "1000001",
- "contractorCode": "1000001",
- "serviceProviderCode": "1000001",
- "subscriptionCode": "1000001",
- "customerCode": "1000001",
- "customerSiteCode": "1000001",
- "vehicleCode": "1000001",
- "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": {
- "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": [
- {
- "observationCode": 100023,
- "actionCode": 100067,
- "dueDateCode": 100098,
- "status": "OPEN",
- "maxFixedDate": "2024-03-20",
- "fixedDate": ""
}
]
}, - "tpms": {
- "batteryLevel": 33,
- "sensorId": "H28UD0E54EG75EF3"
}
}
], - "lastModifiedDate": "2024-04-09T06:59:51"
}
]
}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
| date | string <date> (Date) Inspection date |
| inspectorCode | integer <int64> (InspectorCode) Inspector code |
| mileage | integer <int32> (Mileage) Vehicle mileage |
| mileageUOM | string (MileageUOM) <= 255 characters Vehicle mileage unit of measure |
| workingHours | integer <int32> (WorkingHours) Working hours |
Array of objects (InspectionVehicleDefectDTO) | |
Array of objects (InspectionAxleDTO) |
Responses
Request samples
- Payload
{- "date": "2024-03-01",
- "inspectorCode": "100002",
- "mileage": "120000",
- "mileageUOM": "km",
- "workingHours": 300,
- "defects": [
- {
- "actionCode": 102671,
- "dueDateCode": 100006,
- "status": 102671,
- "maxFixedDate": "2024-04-01",
- "fixedDate": "2024-03-15",
- "images": [
- {
- "image": "image1.png"
}
]
}
], - "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": [
- {
- "observationCode": 100004,
- "actionCode": 102671,
- "dueDateCode": 100006,
- "status": 102671,
- "maxFixedDate": "2024-04-01",
- "fixedDate": "2024-03-15",
- "images": [
- {
- "image": "image1.png"
}
]
}
]
}, - "tpms": {
- "batteryLevel": 33,
- "sensorId": "HI1873"
}
}
]
}
]
}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 for translation (e.g. 'nl-NL', 'fr-FR') |
Responses
Response samples
- 200
- 400
- 401
- 500
[- {
- "code": 100023,
- "name": "+15JOURS",
- "daysNumber": 15,
- "severity": "HIGH"
}
]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 required | 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"
}
]
}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"
}
]
}