List driving conviction codes
const url = 'https://api2.recruso.co.uk/v1/reference/driving-conviction-codes';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api2.recruso.co.uk/v1/reference/driving-conviction-codes \ --header 'Authorization: <Authorization>'Returns every driving conviction code the platform publishes. The DVLA endorsement codes that can be recorded against a driver.
These values are platform-wide: every agency sees the same list and the same ids, and your agency cannot add to them or change them. No endpoint published on this API takes a driving conviction code id yet; the vocabulary is published so that its values are enumerable.
The list is not paged, and no order is guaranteed — sort client-side if you need one. The values change very rarely, so cache them rather than fetching them before every call.
Access. Requires an authenticated token. No further policy is applied.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Every driving conviction code the platform publishes.
object
The driving conviction codes. Never null.
One driving conviction code in a list.
object
The driving conviction code’s identifier. Stable and platform-wide — the same id means the same thing for every agency.
The driving conviction code code. Up to 5 characters. Unique across all driving conviction codes.
A longer description of the driving conviction code. May be null.
Example
{ "drivingConvictionCodes": [ { "id": 1, "code": "SP30", "description": "Exceeding statutory speed limit" } ]}Unauthorized
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
