Skip to main content
API Reference

The following documentation is also available in these formats:

API Reference v1.0

/court-appearances

post

Get all court appearances from today onwards, for a list of up to 500 CRNs

Responses

StatusDescriptionSchema
200

OK

{
  "courtAppearances": {
  }
}
AllCourtAppearancesContainer

/probation-areas

get

Parameters

ParameterInTypeRequiredDescription
includeNonSelectable query boolean false

Include (true) or exclude (false) any probation areas that are not selectable

Responses

StatusDescriptionSchema
200

OK

{
  "probationAreas": [
    {
      "code": "string",
      "description": "string",
      "localDeliveryUnits": [
        {
          "code": "string",
          "description": "string"
        }
      ]
    }
  ]
}
ProbationAreaContainer

/detail/{value}

get

Parameters

ParameterInTypeRequiredDescription
value path string true
type query string false

Available items:

  • CRN
  • NOMS

Responses

StatusDescriptionSchema
200

OK

{
  "name": {
    "forename": "string",
    "middleName": "string",
    "surname": "string"
  },
  "dateOfBirth": "string",
  "crn": "string",
  "nomisId": "string",
  "pncNumber": "string",
  "offenderManager": {
    "name": {
      "forename": "string",
      "middleName": "string",
      "surname": "string"
    },
    "team": {
      "code": "string",
      "localDeliveryUnit": {
        "code": "string",
        "name": "string"
      }
    },
    "provider": {
      "code": "string",
      "description": "string"
    }
  },
  "activeProbationManagedSentence": "boolean",
  "currentlyInPrison": "boolean",
  "mainOffence": "string",
  "profile": {
    "nationality": "string",
    "religion": "string"
  },
  "keyDates": [
    {
      "code": "string",
      "description": "string",
      "data": "string"
    }
  ],
  "releaseDate": "string",
  "releaseReason": "string",
  "releaseLocation": "string",
  "lastRecallDate": "string",
  "recallReason": "string",
  "nsiRecallDate": "string",
  "nsiBreachDate": "string",
  "offenderAliases": [
    {
      "id": "integer",
      "dateOfBirth": "string",
      "firstName": "string",
      "middleNames": [
        {
        }
      ],
      "surname": "string",
      "gender": "string"
    }
  ]
}
Detail

/court-appearances/{value}

get

Parameters

ParameterInTypeRequiredDescription
value path string true
type query string false

Available items:

  • CRN
  • NOMS
fromDate query string false

Responses

StatusDescriptionSchema
200

OK

{
  "courtAppearances": [
    {
      "appearanceDate": "string",
      "type": {
        "code": "string",
        "description": "string"
      },
      "courtCode": "string",
      "courtName": "string",
      "crn": "string",
      "courtAppearanceId": "integer",
      "offenderId": "integer"
    }
  ]
}
CourtAppearancesContainer

/convictions/{value}

get

Parameters

ParameterInTypeRequiredDescription
value path string true
type query string false

Available items:

  • CRN
  • NOMS
activeOnly query boolean false

Responses

StatusDescriptionSchema
200

OK

{
  "convictions": [
    {
      "convictionId": "integer",
      "convictionDate": "string",
      "referralDate": "string",
      "outcome": "string",
      "latestCourtAppearanceOutcome": "string",
      "offences": [
        {
          "offenceId": "integer",
          "description": "string",
          "mainCategoryDescription": "string",
          "mainOffence": "boolean"
        }
      ],
      "sentence": {
        "sentenceId": "integer",
        "startDate": "string",
        "expectedEndDate": "string",
        "custody": {
          "bookingNumber": "string",
          "status": {
            "code": "string",
            "description": "string"
          },
          "keyDates": [
            {
              "code": "string",
              "description": "string",
              "data": "string"
            }
          ]
        }
      },
      "active": "boolean"
    }
  ]
}
ConvictionsContainer

Schemas

AllCourtAppearancesContainer

NameTypeRequiredDescriptionSchema
courtAppearances object true

CourtAppearance

NameTypeRequiredDescriptionSchema
appearanceDate string true
type object true Type
courtCode string true
courtName string true
crn string true
courtAppearanceId integer true
offenderId integer true

Type

NameTypeRequiredDescriptionSchema
code string true
description string true

LocalDeliveryUnit

NameTypeRequiredDescriptionSchema
code string true
description string true

ProbationArea

NameTypeRequiredDescriptionSchema
code string true
description string true
localDeliveryUnits array true LocalDeliveryUnit

ProbationAreaContainer

NameTypeRequiredDescriptionSchema
probationAreas array true ProbationArea

Detail

NameTypeRequiredDescriptionSchema
name object true Name
dateOfBirth string true
crn string true
nomisId string false
pncNumber string false
offenderManager object true Manager
activeProbationManagedSentence boolean true
currentlyInPrison boolean true
mainOffence string false
profile object false Profile
keyDates array true KeyDate
releaseDate string false
releaseReason string false
releaseLocation string false
lastRecallDate string false
recallReason string false
nsiRecallDate string false
nsiBreachDate string false
offenderAliases array true OffenderAlias

KeyDate

NameTypeRequiredDescriptionSchema
code string true
description string true
data string true

Ldu

NameTypeRequiredDescriptionSchema
code string true
name string true

Manager

NameTypeRequiredDescriptionSchema
name object true Name
team object true Team
provider object true Provider

Name

NameTypeRequiredDescriptionSchema
forename string true
middleName string false
surname string true

OffenderAlias

NameTypeRequiredDescriptionSchema
id integer true
dateOfBirth string false
firstName string true
middleNames array true
surname string true
gender string true

Profile

NameTypeRequiredDescriptionSchema
nationality string false
religion string false

Provider

NameTypeRequiredDescriptionSchema
code string true
description string true

Team

NameTypeRequiredDescriptionSchema
code string true
localDeliveryUnit object true Ldu

CourtAppearancesContainer

NameTypeRequiredDescriptionSchema
courtAppearances array true CourtAppearance

Conviction

NameTypeRequiredDescriptionSchema
convictionId integer true
convictionDate string false
referralDate string true
outcome string true
latestCourtAppearanceOutcome string true
offences array true Offence
sentence object false Sentence
active boolean true

ConvictionsContainer

NameTypeRequiredDescriptionSchema
convictions array true Conviction

Custody

NameTypeRequiredDescriptionSchema
bookingNumber string false
status object true CustodyStatus
keyDates array true KeyDate

CustodyStatus

NameTypeRequiredDescriptionSchema
code string true
description string true

Offence

NameTypeRequiredDescriptionSchema
offenceId integer true
description string true
mainCategoryDescription string false
mainOffence boolean true

Sentence

NameTypeRequiredDescriptionSchema
sentenceId integer true
startDate string true
expectedEndDate string false
custody object false Custody