Mastercheck API - Apigee (1.2.2)
Download OpenAPI specification:Download
Mastercheck API documentation
Authentication & Authorization
You will need to be identified before calling any Mastercheck API endpoints.
In order to be recognized and authorized to access our Mastercheck 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 masterchecks
This endpoint allows to get masterchecks 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 |
externalRef | string (ExternalRefParam) <= 255 characters Example: externalRef=1000045 Identifier of the external reference |
source | string (SourceParam) <= 255 characters Example: source=GENES Source of the external reference |
Responses
Response samples
- 200
- 400
- 401
- 404
- 500
{- "pagination": {
- "next": "/mastercheck-erm/v1/masterchecks?page=3&size=50",
- "previous": "/mastercheck-erm/v1/masterchecks?page=1&size=50",
- "pageTotal": "3",
- "totalElements": "125"
}, - "mastercheck": [
- {
- "date": "2024-12-31",
- "code": "1009876",
- "vehicleCode": "1076543",
- "saleCode": "1016728",
- "nextService": {
- "date": "2024-12-31",
- "distanceLeft": 5000,
- "distanceUOM": "km"
}, - "rims": {
- "condition": "KO",
- "status": "PLANNED"
}, - "tyres": {
- "condition": "OK",
- "status": "REPAIRED",
- "measurements": [
- {
- "axlePosition": "1",
- "tyrePosition": "1",
- "wear": [
- {
- "groovePosition": 1,
- "treadDepth": 2
}, - {
- "groovePosition": 2,
- "treadDepth": 2
}, - {
- "groovePosition": 3,
- "treadDepth": 2
}
], - "dot": "4218",
- "pressure": 2.5
}, - {
- "axlePosition": "1",
- "tyrePosition": "2",
- "wear": [
- {
- "groovePosition": 1,
- "treadDepth": 2
}, - {
- "groovePosition": 2,
- "treadDepth": 2
}, - {
- "groovePosition": 3,
- "treadDepth": 2
}
], - "dot": "4218",
- "pressure": 2.5
}, - {
- "axlePosition": "2",
- "tyrePosition": "1",
- "wear": [
- {
- "groovePosition": 1,
- "treadDepth": 2
}, - {
- "groovePosition": 2,
- "treadDepth": 2
}, - {
- "groovePosition": 3,
- "treadDepth": 2
}
], - "dot": "4218",
- "pressure": 2.3
}, - {
- "axlePosition": "2",
- "tyrePosition": "2",
- "wear": [
- {
- "groovePosition": 1,
- "treadDepth": 2
}, - {
- "groovePosition": 2,
- "treadDepth": 2
}, - {
- "groovePosition": 3,
- "treadDepth": 2
}
], - "dot": "4218",
- "pressure": 2.3
}
]
}, - "alignment": {
- "condition": "KO",
- "status": "PLANNED"
}, - "bodywork": {
- "condition": "KO",
- "status": "PLANNED"
}, - "brakeFluid": {
- "condition": "KO",
- "status": "PLANNED"
}, - "coolant": {
- "condition": "KO",
- "status": "PLANNED"
}, - "washerFluid": {
- "condition": "KO",
- "status": "PLANNED"
}, - "airConditioning": {
- "condition": "KO",
- "status": "PLANNED"
}, - "dashboardCAUTIONLight": {
- "condition": "KO",
- "status": "PLANNED"
}, - "oilLevel": {
- "condition": "KO",
- "status": "PLANNED"
}, - "batteryAux": {
- "condition": "KO",
- "status": "PLANNED"
}, - "indicators": {
- "front": {
- "condition": "KO",
- "status": "PLANNED"
}, - "rear": {
- "condition": "KO",
- "status": "PLANNED"
}
}, - "windshield": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "wipers": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "wiperMotor": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "washerPump": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "opticalGlass": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "positionLights": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "dippedBeam": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "highBeam": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "fogLights": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "brakeLights": {
- "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "brakePads": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED",
- "wearLeft": 2,
- "distanceLeft": 5000,
- "distanceUOM": "km"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED",
- "wearLeft": 2,
- "distanceLeft": 5000,
- "distanceUOM": "km"
}
}, - "brakeDiscs": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED",
- "wearLeft": 2,
- "distanceLeft": 5000,
- "distanceUOM": "km"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED",
- "wearLeft": 2,
- "distanceLeft": 5000,
- "distanceUOM": "km"
}
}, - "transmission": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "suspension": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "steering": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "bearings": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "chargingSocketHV": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "chargingCableHV": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "orangeCableHV": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "batteryTrunkHV": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "fluidLeakHV": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "references": [
- {
- "source": "ES_EQUITY",
- "externalRef": "20831238",
- "countryCode": "ES",
- "lastModifiedDate": "2024-12-27T12:23:23"
}
]
}
]
}
Create mastercheck
This endpoint allows to create a mastercheck
Authorizations:
Request Body schema: application/json
externalRef required | string <= 255 characters The external reference of the mastercheck |
vehicleExternalRef | string <= 255 characters The external reference of the vehicle |
saleExternalRef | string <= 255 characters The external reference of the sale |
date required | string <date> The visit date |
object (NextServiceDTO) | |
object (ConditionStatus) The rims status of the vehicle | |
object | |
object (ConditionStatus) The alignment status of the vehicle | |
object (ConditionStatus) The bodywork status of the vehicle | |
object (ConditionStatus) The brake fluid status of the vehicle | |
object (ConditionStatus) The coolant status of the vehicle | |
object (ConditionStatus) The washer fluid status of the vehicle | |
object (ConditionStatus) The air conditioning status of the vehicle | |
object (ConditionStatus) The dashboard caution light status of the vehicle | |
object (ConditionStatus) The oil level status of the vehicle | |
object (ConditionStatus) The auxiliary battery status of the vehicle | |
object | |
object | |
object | |
object (ConditionStatus) The optical glass status of the vehicle | |
object | |
object | |
object | |
object | |
object | |
object | |
object | |
object | |
object | |
object | |
object | |
object (ConditionStatus) The charging socket HV status of the vehicle | |
object (ConditionStatus) The charging cable HV status of the vehicle | |
object (ConditionStatus) The orange cable HV status of the vehicle | |
object (ConditionStatus) The battery trunk HV status of the vehicle | |
object (ConditionStatus) The fluid leak HV status of the vehicle |
Responses
Request samples
- Payload
{- "date": "2024-12-31",
- "externalRef": "1000001",
- "vehicleExternalRef": "1000011",
- "saleExternalRef": "1000111",
- "nextService": {
- "date": "2024-12-31",
- "distanceLeft": 5000,
- "distanceUOM": "km"
}, - "rims": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "tyres": {
- "condition": "OK",
- "status": "PLANNED",
- "measurements": [
- {
- "axlePosition": 1,
- "tyrePosition": 1,
- "wear": [
- {
- "groovePosition": 1,
- "treadDepth": 2
}, - {
- "groovePosition": 2,
- "treadDepth": 2
}, - {
- "groovePosition": 3,
- "treadDepth": 2
}
], - "dot": "4218",
- "pressure": 2.5
}, - {
- "axlePosition": 1,
- "tyrePosition": 2,
- "wear": [
- {
- "groovePosition": 1,
- "treadDepth": 2
}, - {
- "groovePosition": 2,
- "treadDepth": 2
}, - {
- "groovePosition": 3,
- "treadDepth": 2
}
], - "dot": "4217",
- "pressure": 2.4
}, - {
- "axlePosition": 2,
- "tyrePosition": 1,
- "wear": [
- {
- "groovePosition": 1,
- "treadDepth": 2
}, - {
- "groovePosition": 2,
- "treadDepth": 2
}, - {
- "groovePosition": 3,
- "treadDepth": 2
}
], - "dot": "4216",
- "pressure": 2.3
}, - {
- "axlePosition": 2,
- "tyrePosition": 2,
- "wear": [
- {
- "groovePosition": 1,
- "treadDepth": 2
}, - {
- "groovePosition": 2,
- "treadDepth": 2
}, - {
- "groovePosition": 3,
- "treadDepth": 2
}
], - "dot": "4215",
- "pressure": 2.2
}
]
}, - "alignment": {
- "condition": "KO",
- "status": "REFUSED"
}, - "bodywork": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "brakeFluid": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "coolant": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "washerFluid": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "airConditioning": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "dashboardCAUTIONLight": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "oilLevel": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "batteryAux": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "indicators": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "windshield": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "wipers": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "wiperMotor": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "washerPump": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "opticalGlass": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "positionLights": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "dippedBeam": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "highBeam": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "fogLights": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "brakeLights": {
- "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "brakePads": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED",
- "wearLeft": 2,
- "distanceLeft": 500,
- "distanceUOM": "km"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED",
- "wearLeft": 2,
- "distanceLeft": 500,
- "distanceUOM": "km"
}
}, - "brakeDiscs": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED",
- "wearLeft": 2,
- "distanceLeft": 500,
- "distanceUOM": "km"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED",
- "wearLeft": 2,
- "distanceLeft": 500,
- "distanceUOM": "km"
}
}, - "transmission": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "suspension": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "steering": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "bearings": {
- "front": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "rear": {
- "condition": "OK",
- "status": "REPAIRED"
}
}, - "chargingSocketHV": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "chargingCableHV": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "orangeCableHV": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "batteryTrunkHV": {
- "condition": "OK",
- "status": "REPAIRED"
}, - "fluidLeakHV": {
- "condition": "OK",
- "status": "REPAIRED"
}
}
Response samples
- 200
- 400
- 401
- 409
- 500
{- "code": "10001111"
}