Test Overview
| Test1 | Test2 |
| Test3 | Test4 |
Sample Response
V2
Documentation
Introduction
This is a test.
Header
When making calls to our API, include the following header:
x-api-key:your-api-key-here
Example Request
https://bjbiy52iua.execute-api.eu-west-2.amazonaws.com/dev/oneauto/regressiontest?vehicle_registration_mark=AB21ABC&vehicle_identification_number=ABCDE123456F78910
Example Sandbox Request
https://bjbiy52iua.execute-api.eu-west-2.amazonaws.com/dev/oneauto/regressiontest?vehicle_registration_mark=AB21ABC&vehicle_identification_number=ABCDE123456F78910&sandbox=1
Request Parameters
vehicle_registration_mark
mandatory, string, e.g. AB21ABC
Vehicle registration number (VRM).
vehicle_identification_number
optional, string, e.g. ABCDE123456F78910
Vehicle identification number (VIN).
Sample Response
{
"success": true,
"result": {
"is_possible_classic_vehicle": false,
"is_possible_test_vehicle": true
},
"error": "If there is an error the message would go here"
}Response Parameters
success
e.g. true
Whether the api call was successful
is_possible_classic_vehicle
e.g. false
Is the vehicle over 40 years old and therefore classed as a classic where an MOT is not required.
is_possible_test_vehicle
e.g. true
Test dictionary item.
error
e.g. If there is an error the message would go here
Details of what went wrong with the api call
Status Codes
200
success, chargeable
Request has been successfully received and a response has been sent.
202
accepted, non-chargeable
Request has been received and accepted for processing, but the action has not yet been completed.
204
no content, non-chargeable
Request has been successfully received but there is no content to return e.g. if an invalid VRM has been sent.
206
partial content, non-chargeable
Request has been successfully received but limited content is returned e.g. if an invalid VRM has been sent.
400
bad request, non-chargeable
Request was not received e.g. if any required parameters are missing.
403
forbidden, non-chargeable
Request was rejected e.g. if the API key is invalid or the service is not enabled.
429
too many requests, non-chargeable
API key rate limit/quota has been exceeded.
500
internal server error, non-chargeable
We are unable to process the request e.g. if the API is under extremely heavy load.
503
service unavailable, non-chargeable
Service is temporarily unavailable. Contact help@oneautoapi.com
