Skip to main content
API Reference

The following documentation is also available in these formats:

API Reference v1.0

/users/{username}/access/{crn}

get

Parameters

ParameterInTypeRequiredDescription
username path string true
crn path string true

Responses

StatusDescriptionSchema
200

OK

{
  "crn": "string",
  "userExcluded": "boolean",
  "userRestricted": "boolean",
  "exclusionMessage": "string",
  "restrictionMessage": "string"
}
CaseAccess

/tier-details/{crn}

get

Parameters

ParameterInTypeRequiredDescription
crn path string true

Responses

StatusDescriptionSchema
200

OK

{
  "gender": "string",
  "currentTier": "string",
  "oGRSScore": "integer",
  "rSRScore": "number",
  "registrations": [
    {
      "code": "string",
      "description": "string",
      "level": "string",
      "date": "string"
    }
  ],
  "convictions": [
    {
      "terminationDate": "string",
      "sentenceTypeCode": "string",
      "breached": "boolean",
      "requirements": [
        {
          "mainCategoryTypeCode": "string",
          "restrictive": "boolean"
        }
      ]
    }
  ],
  "previousEnforcementActivity": "boolean",
  "ogrsscore": "integer",
  "rsrscore": "number"
}
TierDetails

/probation-cases

get

Responses

StatusDescriptionSchema
200

OK

{
}

/person/{crn}

get

Parameters

ParameterInTypeRequiredDescription
crn path string true

Responses

StatusDescriptionSchema
200

OK

{
  "crn": "string",
  "name": {
    "forenames": "string",
    "surname": "string"
  }
}
PersonDetails

/docs/asyncapi

get

Responses

StatusDescriptionSchema
200

OK

{
}

Schemas

CaseAccess

NameTypeRequiredDescriptionSchema
crn string true
userExcluded boolean true
userRestricted boolean true
exclusionMessage string false
restrictionMessage string false

Conviction

NameTypeRequiredDescriptionSchema
terminationDate string false
sentenceTypeCode string false
breached boolean true
requirements array true Requirement

Registration

NameTypeRequiredDescriptionSchema
code string true
description string true
level string false
date string true

Requirement

NameTypeRequiredDescriptionSchema
mainCategoryTypeCode string true
restrictive boolean true

TierDetails

NameTypeRequiredDescriptionSchema
gender string true
currentTier string false
oGRSScore integer false
rSRScore number false
registrations array true Registration
convictions array true Conviction
previousEnforcementActivity boolean true
ogrsscore integer false
rsrscore number false

Name

NameTypeRequiredDescriptionSchema
forenames string true
surname string true

PersonDetails

NameTypeRequiredDescriptionSchema
crn string true
name object true Name