Get driving conviction code details
GET
/v1/reference/driving-conviction-codes/{id}
const url = 'https://api2.recruso.co.uk/v1/reference/driving-conviction-codes/1';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/1 \ --header 'Authorization: <Authorization>'Returns one driving conviction code by id. The DVLA endorsement codes that can be recorded against a driver.
Driving conviction codes are platform-wide, so an id means the same driving conviction code for every agency.
An id that does not match a driving conviction code returns 404.
Access. Requires an authenticated token. No further policy is applied.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer format: int32
The id path parameter
Responses
Section titled “Responses”OK
Media typeapplication/json
One driving conviction code.
object
id
The driving conviction code’s identifier. Stable and platform-wide — the same id means the same thing for every agency.
integer format: int16
code
The driving conviction code code. Up to 5 characters. Unique across all driving conviction codes.
string
description
A longer description of the driving conviction code. May be null.
string
Example
{ "id": 1, "code": "SP30", "description": "Exceeding statutory speed limit"}Unauthorized
Media typeapplication/problem+json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
Media typeapplication/problem+json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
