Skip to main content
API Reference

The following documentation is also available in these formats:

API Reference v1.0

/docs/asyncapi

get

Responses

StatusDescriptionSchema
200

OK

{
}

/context/{reportId}

get

Probation case information related to the pre-sentence report

Creating a pre-sentence report requires details of the relevant probation case. This information provides context around the case and specific details of the person’s location, offence and current circumstances. Providing these details as a single context API enables the pre-sentence service to remove the need to access the case record and key the information into the Pre-Sentence service manually

Parameters

ParameterInTypeRequiredDescription
reportId path string true

Responses

StatusDescriptionSchema
200

OK

{
  "crn": "string",
  "name": {
    "forename": "string",
    "surname": "string",
    "middleName": "string"
  },
  "dateOfBirth": "string",
  "pnc": "string",
  "address": {
    "noFixedAbode": "boolean",
    "buildingName": "string",
    "addressNumber": "string",
    "streetName": "string",
    "town": "string",
    "district": "string",
    "county": "string",
    "postcode": "string"
  },
  "mainOffence": {
    "description": "string"
  },
  "otherOffences": [
    {
      "description": "string"
    }
  ],
  "court": {
    "name": "string",
    "localJusticeArea": {
      "name": "string"
    }
  }
}
PreSentenceReportContext

Schemas

Address

NameTypeRequiredDescriptionSchema
noFixedAbode boolean true
buildingName string false
addressNumber string false
streetName string false
town string false
district string false
county string false
postcode string false

Court

NameTypeRequiredDescriptionSchema
name string true
localJusticeArea object true LocalJusticeArea

LocalJusticeArea

NameTypeRequiredDescriptionSchema
name string true

Name

NameTypeRequiredDescriptionSchema
forename string true
surname string true
middleName string false

Offence

NameTypeRequiredDescriptionSchema
description string true

PreSentenceReportContext

NameTypeRequiredDescriptionSchema
crn string true
name object true Name
dateOfBirth string true
pnc string false
address object false Address
mainOffence object true Offence
otherOffences array false Offence
court object true Court