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
Status | Description | Schema |
---|---|---|
200 |
OK
|
AllCourtAppearancesContainer |
/probation-areas
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
includeNonSelectable | query | boolean | false | Include (true) or exclude (false) any probation areas that are not selectable |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
ProbationAreaContainer |
/detail/{value}
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
value | path | string | true | |
type | query | string | false |
Available items:
|
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
Detail |
/court-appearances/{value}
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
value | path | string | true | |
type | query | string | false |
Available items:
|
fromDate | query | string | false |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
CourtAppearancesContainer |
/convictions/{value}
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
value | path | string | true | |
type | query | string | false |
Available items:
|
activeOnly | query | boolean | false |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
ConvictionsContainer |
Schemas
AllCourtAppearancesContainer
Name | Type | Required | Description | Schema |
---|---|---|---|---|
courtAppearances | object | true |
CourtAppearance
Name | Type | Required | Description | Schema |
---|---|---|---|---|
appearanceDate | string | true | ||
type | object | true | Type | |
courtCode | string | true | ||
courtName | string | true | ||
crn | string | true | ||
courtAppearanceId | integer | true | ||
offenderId | integer | true |
Type
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true |
LocalDeliveryUnit
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true |
ProbationArea
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true | ||
localDeliveryUnits | array | true | LocalDeliveryUnit |
ProbationAreaContainer
Name | Type | Required | Description | Schema |
---|---|---|---|---|
probationAreas | array | true | ProbationArea |
Detail
Name | Type | Required | Description | Schema |
---|---|---|---|---|
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
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true | ||
data | string | true |
Ldu
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
name | string | true |
Manager
Name | Type | Required | Description | Schema |
---|---|---|---|---|
name | object | true | Name | |
team | object | true | Team | |
provider | object | true | Provider |
Name
Name | Type | Required | Description | Schema |
---|---|---|---|---|
forename | string | true | ||
middleName | string | false | ||
surname | string | true |
OffenderAlias
Name | Type | Required | Description | Schema |
---|---|---|---|---|
id | integer | true | ||
dateOfBirth | string | false | ||
firstName | string | true | ||
middleNames | array | true | ||
surname | string | true | ||
gender | string | true |
Profile
Name | Type | Required | Description | Schema |
---|---|---|---|---|
nationality | string | false | ||
religion | string | false |
Provider
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true |
Team
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
localDeliveryUnit | object | true | Ldu |
CourtAppearancesContainer
Name | Type | Required | Description | Schema |
---|---|---|---|---|
courtAppearances | array | true | CourtAppearance |
Conviction
Name | Type | Required | Description | Schema |
---|---|---|---|---|
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
Name | Type | Required | Description | Schema |
---|---|---|---|---|
convictions | array | true | Conviction |
Custody
Name | Type | Required | Description | Schema |
---|---|---|---|---|
bookingNumber | string | false | ||
status | object | true | CustodyStatus | |
keyDates | array | true | KeyDate |
CustodyStatus
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true |
Offence
Name | Type | Required | Description | Schema |
---|---|---|---|---|
offenceId | integer | true | ||
description | string | true | ||
mainCategoryDescription | string | false | ||
mainOffence | boolean | true |
Sentence
Name | Type | Required | Description | Schema |
---|---|---|---|---|
sentenceId | integer | true | ||
startDate | string | true | ||
expectedEndDate | string | false | ||
custody | object | false | Custody |