List the convictions against a worker's licence
const url = 'https://api2.recruso.co.uk/v1/workers/1/licences/1/convictions';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/workers/1/licences/1/convictions \ --header 'Authorization: <Authorization>'Returns every conviction recorded against one of a worker’s licences in your own agency, oldest first, with the total penalty points they add up to.
Expired convictions are listed alongside current ones — the record keeps them, and the expiry date on each says which is which. The total counts every conviction listed, expired ones included. The list is not paged.
A worker or licence belonging to another agency returns 404 rather than 403, so its existence is never disclosed.
Access. Requires a client-credentials access token. Tokens issued through the interactive user login are rejected.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The workerId path parameter
The licenceId path parameter
Responses
Section titled “Responses”OK
Every conviction recorded against one licence.
object
The worker the licence belongs to.
The licence the convictions are against.
The total penalty points the licence carries, across every conviction listed.
The convictions, oldest first.
A driving conviction recorded against a licence.
object
The conviction record’s identifier.
The licence the conviction is against.
The offence, as an id from the platform Driving conviction codes vocabulary.
The date of the conviction.
The date the conviction drops off the licence.
The penalty points the conviction carries.
Anything else recorded about the conviction.
Example
{ "workerId": 4821, "workerLicenceId": 5120, "totalLicencePoints": 6, "convictions": [ { "workerConvictionId": 7740, "workerLicenceId": 5120, "convictionCodeId": 12, "convictedDate": "2025-03-18", "convictionExpiryDate": "2029-03-17", "licencePoints": 3, "convictionNotes": "Speeding on the M60; fixed penalty accepted." } ]}Unauthorized
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
