{"openapi":"3.0.2","info":{"title":"API Common Platform Prosecutor Interface","description":"Crime API providing information on Common Platform Prosecutor Interface (CPPI)","version":"3.0.2-dda9121","contact":{"email":"no-reply@hmcts.com"},"license":{"name":"MIT","url":"https://opensource.org/licenses/MIT"}},"servers":[{"description":"APIHub API Auto Mocking CPPI API","url":"https://virtserver.swaggerhub.com/HMCTS-DTS/api-cp-crime-caseingestion-prosecutor/3.0.2-dda9121"}],"security":[{"BearerAuth":[]}],"paths":{"/prosecutions":{"post":{"summary":"Submit Prosecution operation","description":"Submit a case for prosecution.","tags":["Submitting Case Info"],"requestBody":{"description":"Prosecution Case Details (DVLA, RSPCA, local council, transport)","required":true,"content":{"application/vnd.hmcts.cjs.sjp-prosecution.v2+json":{"schema":{"type":"object","properties":{"prosecutionSubmissionDetails":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"prosecutingAuthority":{"type":"string","description":"Identifies the Prosecuting Organisation responsible for initiating the case. Valid CJS OU Code.","pattern":"^[a-zA-Z0-9-]*$","minLength":7,"maxLength":7},"informant":{"type":"string","description":"Name of the person to be named as the informant in this case.","maxLength":92},"urn":{"description":"The unique reference number from the prosecuting authority","title":"URN","type":"string","pattern":"^[a-zA-Z0-9-]*$","maxLength":36},"writtenChargePostingDate":{"description":"Date on which SJP Notice was posted to the defendant.","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"}},"required":["prosecutingAuthority","urn","writtenChargePostingDate"],"additionalProperties":false},"defendant":{"type":"object","description":"Defendant Details of the case","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"asn":{"type":"string","description":"Arrest / Summons number","maxLength":20},"defendantPerson":{"description":"The defendant person","type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"title":{"type":"string","description":"Title by which a person is addressed"},"forename":{"type":"string","description":"Given Name (CJS DSC v5 3.50)","maxLength":35,"pattern":"^(?!.*  ).+"},"forename2":{"type":"string","description":"The second given name of a person, e.g. Ian","maxLength":35},"forename3":{"type":"string","description":"The third given name of a person, e.g. Barry","maxLength":35},"surname":{"type":"string","description":"Surname or Family name, e.g. Brown (CJS DSC v5 3.39 Family Name)","maxLength":35,"pattern":"^(?!.*  ).+"},"dateOfBirth":{"description":"The date when a person was born.","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"occupation":{"type":"string","description":"The description of an occupation.","maxLength":54},"observedEthnicity":{"type":"number","description":"","maxLength":5},"occupationCode":{"type":"integer","description":"An occupation code"},"driverNumber":{"type":"string","description":"Driver number for DVLA case","pattern":"^([A-Z0-9]{5}\\d[0156]\\d([0][1-9]|[12]\\d|3[01])\\d[A-Z0-9]{3}[A-Z]{2}$)"},"address":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"address1":{"type":"string","description":"Address Line 1 for the defendant","minLength":1,"maxLength":35},"address2":{"type":"string","description":"Address Line 2 for the defendant","maxLength":35},"address3":{"type":"string","description":"Address Line 3 for the defendant","maxLength":35},"address4":{"type":"string","description":"Address Line 4 for the defendant","maxLength":35},"address5":{"type":"string","description":"Address Line 5 for the defendant","maxLength":35},"postcode":{"description":"UK Post Code (CGS DSC 5.25)","type":"string","pattern":"^(([gG][iI][rR] {0,}0[aA]{2})|(([aA][sS][cC][nN]|[sS][tT][hH][lL]|[tT][dD][cC][uU]|[bB][bB][nN][dD]|[bB][iI][qQ][qQ]|[fF][iI][qQ][qQ]|[pP][cC][rR][nN]|[sS][iI][qQ][qQ]|[iT][kK][cC][aA]) {0,}1[zZ]{2})|((([a-pr-uwyzA-PR-UWYZ][a-hk-yxA-HK-XY]?[0-9][0-9]?)|(([a-pr-uwyzA-PR-UWYZ][0-9][a-hjkstuwA-HJKSTUW])|([a-pr-uwyzA-PR-UWYZ][a-hk-yA-HK-Y][0-9][abehmnprv-yABEHMNPRV-Y]))) {0,}[0-9][abd-hjlnp-uw-zABD-HJLNP-UW-Z]{2}))$","maxLength":8}},"required":["address1","postcode"],"additionalProperties":true},"nationalInsuranceNumber":{"type":"string","description":"National Insurance Number (CGS DSC 5.15)","minLength":9,"maxLength":9,"pattern":"^(?!BG)(?!GB)(?!NK)(?!KN)(?!TN)(?!NT)(?!ZZ)[A-CEGHJ-PR-TW-Z][A-CEGHJ-NPR-TW-Z][0-9][0-9][0-9][0-9][0-9][0-9][A-D]$"},"contactDetails":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"workTelephoneNumber":{"type":"string","description":"A work telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means.","minLength":1,"maxLength":35},"homeTelephoneNumber":{"type":"string","description":"A home telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means.","minLength":1,"maxLength":35},"mobileTelephoneNumber":{"type":"string","description":"A mobile number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means.","minLength":1,"maxLength":35},"primaryEmail":{"description":"The identification of the first e-mail address.","type":"string","pattern":"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"},"secondaryEmail":{"description":"The identification of the second e-mail address.","type":"string","pattern":"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"}},"additionalProperties":false},"selfDefinedInformation":{"type":"object","description":"Self defined information","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"nationality":{"type":"string","description":"Country of origin as stated by the defendant, as per CJS Standards section 3.103","maxLength":3},"additionalNationality":{"type":"string","description":"Additional country of origin as stated by the defendant, as per CJS Standards section 3.103","maxLength":3},"gender":{"description":"See CJS Standards (3.45)Mandatory if defendant is a person.Otherwise field must be null, e.g., organisation. 0=Not Known1=Male2=Female9=Not specified","type":"integer","maxLength":1,"enum":[0,1,2,9]},"ethnicity":{"type":"string","description":"Ethnicity Self Defined Code","pattern":"^(W1|W2|W9|M1|M2|M3|M9|A1|A2|A3|A9|B1|B2|B9|O1|O9|NS)$"}},"required":["gender"],"additionalProperties":false},"alias":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"title":{"type":"string","description":"Title by which a person is addressed"},"forename":{"type":"string","description":"Given Name (CJS DSC v5 3.50)","maxLength":35,"pattern":"^(?!.*  ).+"},"forename2":{"type":"string","description":"The second given name of a person, e.g. Ian","maxLength":35},"forename3":{"type":"string","description":"The third given name of a person, e.g. Barry","maxLength":35},"surname":{"type":"string","description":"Surname or Family name, e.g. Brown (CJS DSC v5 3.39 Family Name)","maxLength":35,"pattern":"^(?!.*  ).+"}}}},"required":["forename","surname","address","selfDefinedInformation"],"additionalProperties":false},"organisation":{"description":"","type":"object","properties":{"organisationName":{"type":"string","description":"Name of an organisation, e.g., Marks and Spencer. Mandatory if defendant is an organisation","maxLength":255},"address":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"address1":{"type":"string","description":"Address Line 1 for the defendant","minLength":1,"maxLength":35},"address2":{"type":"string","description":"Address Line 2 for the defendant","maxLength":35},"address3":{"type":"string","description":"Address Line 3 for the defendant","maxLength":35},"address4":{"type":"string","description":"Address Line 4 for the defendant","maxLength":35},"address5":{"type":"string","description":"Address Line 5 for the defendant","maxLength":35},"postcode":{"description":"UK Post Code (CGS DSC 5.25)","type":"string","pattern":"^(([gG][iI][rR] {0,}0[aA]{2})|(([aA][sS][cC][nN]|[sS][tT][hH][lL]|[tT][dD][cC][uU]|[bB][bB][nN][dD]|[bB][iI][qQ][qQ]|[fF][iI][qQ][qQ]|[pP][cC][rR][nN]|[sS][iI][qQ][qQ]|[iT][kK][cC][aA]) {0,}1[zZ]{2})|((([a-pr-uwyzA-PR-UWYZ][a-hk-yxA-HK-XY]?[0-9][0-9]?)|(([a-pr-uwyzA-PR-UWYZ][0-9][a-hjkstuwA-HJKSTUW])|([a-pr-uwyzA-PR-UWYZ][a-hk-yA-HK-Y][0-9][abehmnprv-yABEHMNPRV-Y]))) {0,}[0-9][abd-hjlnp-uw-zABD-HJLNP-UW-Z]{2}))$","maxLength":8}},"required":["address1","postcode"],"additionalProperties":true}},"required":["organisationName","address"],"additionalProperties":false},"documentationLanguage":{"type":"string","description":"Identifies the language to be used, values E or W (English or Welsh)","enum":["E","W"],"default":"E"},"hearingLanguage":{"type":"string","description":"Identifies the language to be used, values E or W (English or Welsh)","enum":["E","W"],"default":"E"},"languageRequirement":{"type":"string","description":"Notes about the defendant’s language needs, e.g. interpreter details","maxLength":150},"specificRequirements":{"type":"string","description":"Notes about any help that the defendant may need when attending court – e.g. wheelchair access.","maxLength":150},"prosecutorCosts":{"description":"Prosecution costs claimed by prosecutor.","type":"string","pattern":"^(\\+)?([0-9]{1,12})\\.([0-9]{2})$"},"numPreviousConvictions":{"type":"integer","description":"Number of previous conviction cited by prosecutor."},"offences":{"type":"array","minItems":1,"items":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"cjsOffenceCode":{"type":"string","description":"Identifies the CJS code applicable to criminal offences as per the CJS Standard section 3.11","maxLength":8},"offenceSequenceNo":{"type":"integer","description":"Sequence number of the offence","maxLength":3},"offenceCommittedDate":{"description":"","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"chargeDate":{"description":"The date the defendant was charged","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"arrestDate":{"description":"","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"alcoholOrDrugLevelMethod":{"type":"string","description":"","maxLength":1},"alcoholOrDrugLevelAmount":{"type":"number","description":"","maxLength":3},"offenceDateCode":{"description":"The code for the offence date to be used within the offence wording, 1 = on or in, 2 = before, 3 = after, 4 = between, 5 = on or about and 6 = on or before","type":"integer","minimum":1,"maximum":6},"offenceCommittedEndDate":{"description":"End date for period in which offence committed","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"offenceLocation":{"type":"string","description":"Offence location","maxLength":80},"vehicleMake":{"type":"string","maxLength":60},"vehicleRegistrationMark":{"type":"string","maxLength":11},"offenceWording":{"type":"string","description":"Details of Information or Charge to be laid before the court","maxLength":2500},"offenceWordingWelsh":{"type":"string","description":"Details of Information or Charge to be laid before the court in Welsh","maxLength":2500},"statementOfFacts":{"type":"string","description":"Statement of facts","maxLength":4000},"statementOfFactsWelsh":{"type":"string","description":"Statement of facts","maxLength":4000},"prosecutorCompensation":{"description":"Compensation claimed by the prosecutor","type":"string","pattern":"^(\\+)?([0-9]{1,12})\\.([0-9]{2})$"},"backDuty":{"description":"Back duty","type":"string","pattern":"^(\\+)?([0-9]{1,12})\\.([0-9]{2})$"},"backDutyDateFrom":{"description":"Start date of the period of unpaid duty","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"backDutyDateTo":{"description":"End date of the period of unpaid duty","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"}},"required":["cjsOffenceCode","offenceSequenceNo","offenceCommittedDate","offenceDateCode","offenceWording","chargeDate"],"additionalProperties":false}},"prosecutorDefendantId":{"description":"DefendantId provided by prosecutor.","type":"string","pattern":"^[a-zA-Z0-9-]*$","maxLength":36}},"required":["defendantPerson","documentationLanguage","hearingLanguage","offences","prosecutorDefendantId","prosecutorCosts"],"additionalProperties":false}},"required":["prosecutionSubmissionDetails","defendant"],"additionalProperties":false},"examples":{"Generated":{"summary":"Generated","value":{"prosecutionSubmissionDetails":{"urn":"TVL12345","prosecutingAuthority":"GABSY01","informant":"Adam","writtenChargePostingDate":"2018-03-20"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN123","prosecutorCosts":"20.10","defendantPerson":{"title":"Mr","forename":"John","forename2":"Adam","forename3":"Theodore","surname":"SMITH","contactDetails":{"workTelephoneNumber":"02012345678","homeTelephoneNumber":"02087654321","mobileTelephoneNumber":"0789123456","primaryEmail":"aer@af.com","secondaryEmail":"aer@af.com"},"dateOfBirth":"1970-02-03","selfDefinedInformation":{"gender":1,"ethnicity":"W1","nationality":"W1","additionalNationality":"W2"},"occupation":"TA","occupationCode":666,"driverNumber":"737XY667163PILHM","address":{"address1":"Line 1","address2":"Line 2","address3":"Line 3","address4":"Line 4","address5":"Line 5","postcode":"CR0 1XG"},"nationalInsuranceNumber":"AA123456C"},"documentationLanguage":"E","hearingLanguage":"E","languageRequirement":"no special language needs","specificRequirements":"no special needs","numPreviousConvictions":3,"offences":[{"cjsOffenceCode":"CA03010","offenceSequenceNo":1,"offenceCommittedDate":"2018-06-20","chargeDate":"2018-06-21","offenceDateCode":1,"offenceLocation":"Croydon","vehicleMake":"Ford","vehicleRegistrationMark":"FG59 4FD","offenceWording":"Prosecution charge wording","offenceWordingWelsh":"Prosecution charge wording in Welsh","statementOfFacts":"Prosecution statements of facts","prosecutorCompensation":"15.30","backDuty":"+340.30","backDutyDateFrom":"2018-04-30","backDutyDateTo":"2018-05-30"},{"cjsOffenceCode":"CA03011","offenceSequenceNo":2,"offenceCommittedDate":"2018-06-20","chargeDate":"2018-06-21","offenceDateCode":1,"offenceLocation":"Croydon","vehicleMake":"Ford","vehicleRegistrationMark":"FG59 4FD","offenceWording":"Prosecution charge wording2","offenceWordingWelsh":"Prosecution charge wording in Welsh2","statementOfFacts":"Prosecution statements of facts","prosecutorCompensation":"15.30","backDuty":"+340.30","backDutyDateFrom":"2018-04-30","backDutyDateTo":"2018-05-30"}]}}},"DVLA - Speeding HGV":{"summary":"DVLA - Speeding Violation - Heavy Goods Vehicle (SP50)","value":{"prosecutionSubmissionDetails":{"urn":"DVLA56789","prosecutingAuthority":"GABSY01","informant":"Inspector Green","writtenChargePostingDate":"2025-02-01"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS002","prosecutorCosts":"150.00","hearingLanguage":"E","documentationLanguage":"E","defendantPerson":{"title":"Ms","forename":"Emily","middleName":"Anne","surname":"Watson","dateOfBirth":"1990-03-15","occupation":"Lorry Driver","driverNumber":"AV7F12040963LGGZ","nationalInsuranceNumber":"CC789012D","passportNumber":"123456789","contactDetails":{"mobileTelephoneNumber":"07700111222","homeTelephoneNumber":"02080000000","primaryEmail":"emily.watson@example.com","secondaryEmail":"watson.e@example.com"},"address":{"address1":"45 Long Road","address2":"Apt 3B","postcode":"B15 2TT"},"selfDefinedInformation":{"gender":2,"ethnicity":"W2","nationality":"GBR","additionalNationality":"FRA"}},"offences":[{"cjsOffenceCode":"GA96054","offenceSequenceNo":1,"offenceCommittedDate":"2025-01-10","offenceDateCode":1,"chargeDate":"2025-01-12","arrestDate":"2025-01-11","offenceLocation":"M6 Toll Road","vehicleMake":"Scania","vehicleModel":"R450","vehicleRegistrationMark":"HX12GRT","offenceWording":"Driving a heavy goods vehicle over the speed limit","prosecutorCompensation":"200.00","backDuty":"30.00","alcoholOrDrugLevelMethod":"C","alcoholOrDrugLevelAmount":"6","secondaryOffence":{"offenceCode":"SP30","offenceDescription":"Speeding on public road"}}]}}},"DVLA - No Insurance":{"summary":"DVLA - Driving Without Insurance (IN10)","value":{"prosecutionSubmissionDetails":{"urn":"DVLA98012","prosecutingAuthority":"GABSY01","informant":"Officer Patel","writtenChargePostingDate":"2025-03-05"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS003","prosecutorCosts":"250.00","hearingLanguage":"E","documentationLanguage":"E","defendantPerson":{"title":"Mr","forename":"James","middleName":"Robert","surname":"Brown","dateOfBirth":"1982-09-25","occupation":"Delivery Driver","driverNumber":"J4SG5964302PQ1AY","nationalInsuranceNumber":"EE234567D","passportNumber":"987654321","contactDetails":{"mobileTelephoneNumber":"07555222333","homeTelephoneNumber":"02085554444","primaryEmail":"james.brown@example.com","secondaryEmail":"jbrown@delivery.com"},"address":{"address1":"22 King Street","address2":"Flat 12","postcode":"M1 1AA"},"selfDefinedInformation":{"gender":1,"ethnicity":"M1","nationality":"GBR"}},"offences":[{"cjsOffenceCode":"RC86403","offenceSequenceNo":1,"offenceCommittedDate":"2025-02-20","offenceDateCode":1,"chargeDate":"2025-02-22","arrestDate":"2025-02-21","offenceLocation":"Manchester City Centre","vehicleMake":"Toyota","vehicleModel":"Corolla","vehicleRegistrationMark":"LM19XYZ","offenceWording":"Using a motor vehicle on a road/public place without insurance","prosecutorCompensation":"500.00","backDuty":"100.00","insurancePolicyNumber":"XYZ-123-456","insuranceCompany":"UK Auto Insurance Ltd"}]}}},"DVLA - No MOT":{"summary":"DVLA - Driving Without MOT (MO10)","value":{"prosecutionSubmissionDetails":{"urn":"DVLA76543","prosecutingAuthority":"GABSY01","informant":"PC Roberts","writtenChargePostingDate":"2025-04-01"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS004","prosecutorCosts":"80.00","hearingLanguage":"E","documentationLanguage":"E","defendantPerson":{"title":"Miss","forename":"Sophie","middleName":"Anne","surname":"Taylor","dateOfBirth":"1995-05-10","occupation":"Student","driverNumber":"1W1X8365064TP2SB","nationalInsuranceNumber":"GH345678D","passportNumber":"555667788","contactDetails":{"mobileTelephoneNumber":"07899887766","homeTelephoneNumber":"01159887766","primaryEmail":"sophie.taylor@example.com","secondaryEmail":"sophie.t@student.com"},"address":{"address1":"10 Green Lane","postcode":"NG5 4LP"},"selfDefinedInformation":{"gender":2,"ethnicity":"W1","nationality":"GBR"}},"offences":[{"cjsOffenceCode":"RC86962","offenceSequenceNo":1,"offenceCommittedDate":"2025-03-15","offenceDateCode":1,"chargeDate":"2025-03-17","arrestDate":"2025-03-16","offenceLocation":"Nottingham","vehicleMake":"Vauxhall","vehicleModel":"Astra","vehicleRegistrationMark":"YX20MOT","offenceWording":"Using a motor vehicle without a valid MOT certificate","prosecutorCompensation":"60.00","backDuty":"20.00"}]}}},"DVLA (Organisation) - Speeding Violation - Heavy Goods Vehicle":{"summary":"DVLA (Organisation) - Speeding Violation - Heavy Goods Vehicle (SP50)","value":{"prosecutionSubmissionDetails":{"urn":"DVLA56790","prosecutingAuthority":"GAFTL00","informant":"Inspector Brown","writtenChargePostingDate":"2025-01-15"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS005","prosecutorCosts":"200.00","organisation":{"organisationName":"Heavy Haulers Ltd","address":{"address1":"23 High Street","address2":"London","postcode":"SW1A 1AA"}},"documentationLanguage":"E","hearingLanguage":"E","languageRequirement":"no special language needs","specificRequirements":"no special needs","offences":[{"cjsOffenceCode":"GM00066","offenceSequenceNo":1,"offenceCommittedDate":"2025-01-05","offenceDateCode":1,"chargeDate":"2025-01-07","arrestDate":"2025-01-06","offenceLocation":"M1 Motorway","vehicleMake":"Scania","vehicleModel":"R500","vehicleRegistrationMark":"HX15JYT","offenceWording":"Operating a heavy goods vehicle exceeding speed limit","prosecutorCompensation":"250.00","backDuty":"50.00","alcoholOrDrugLevelMethod":"B","alcoholOrDrugLevelAmount":"5"}]}}},"DVLA (Organisation) - Driving Without Insurance":{"summary":"DVLA (Organisation) - Driving Without Insurance (IN10)","value":{"prosecutionSubmissionDetails":{"urn":"DVLA98013","prosecutingAuthority":"GAFTL00","informant":"Officer Davis","writtenChargePostingDate":"2025-02-10"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS006","prosecutorCosts":"350.00","organisation":{"organisationName":"Fast Freight Ltd","address":{"address1":"14 Green Lane","address2":"Manchester","postcode":"M1 1AD"}},"documentationLanguage":"E","hearingLanguage":"E","languageRequirement":"no special language needs","specificRequirements":"no special needs","offences":[{"cjsOffenceCode":"ES79011","offenceSequenceNo":1,"offenceCommittedDate":"2025-02-05","offenceDateCode":1,"chargeDate":"2025-02-07","arrestDate":"2025-02-06","offenceLocation":"Bristol City Centre","vehicleMake":"Mercedes","vehicleModel":"Actros","vehicleRegistrationMark":"MG12DAB","offenceWording":"Operating a vehicle without valid insurance","prosecutorCompensation":"300.00","backDuty":"100.00","insurancePolicyNumber":"ABC-789-123","insuranceCompany":"Global Insurance Ltd"}]}}},"RSPCA - Animal Cruelty":{"summary":"RSPCA - Animal Cruelty Offence","value":{"prosecutionSubmissionDetails":{"urn":"RSPCA12345","prosecutingAuthority":"GABSY01","informant":"Officer Smith","writtenChargePostingDate":"2025-05-10"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS101","prosecutorCosts":"500.00","hearingLanguage":"E","documentationLanguage":"E","defendantPerson":{"title":"Mr","forename":"John","middleName":"David","surname":"Doe","dateOfBirth":"1980-08-22","occupation":"Farmer","nationalInsuranceNumber":"AB123456C","passportNumber":"321654987","contactDetails":{"mobileTelephoneNumber":"07700222333","homeTelephoneNumber":"02081234567","primaryEmail":"john.doe@example.com"},"address":{"address1":"12 Farm Road","postcode":"NR1 4TG"},"selfDefinedInformation":{"gender":1,"ethnicity":"W1","nationality":"GBR"}},"offences":[{"cjsOffenceCode":"CN17042","offenceSequenceNo":1,"offenceCommittedDate":"2025-04-15","offenceDateCode":1,"chargeDate":"2025-04-20","arrestDate":"2025-04-18","offenceLocation":"Norfolk Farm","offenceWording":"Causing unnecessary suffering to an animal","prosecutorCompensation":"1000.00","additionalEvidence":"Video footage and veterinary report"}]}}},"RSPCA - Animal Neglect":{"summary":"RSPCA - Animal Neglect Offence","value":{"prosecutionSubmissionDetails":{"urn":"RSPCA67890","prosecutingAuthority":"GABSY01","informant":"Officer Green","writtenChargePostingDate":"2025-06-05"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS202","prosecutorCosts":"300.00","hearingLanguage":"E","documentationLanguage":"E","defendantPerson":{"title":"Mrs","forename":"Sarah","middleName":"Elizabeth","surname":"Johnson","dateOfBirth":"1975-12-05","occupation":"Pet Shop Owner","nationalInsuranceNumber":"CW654321A","passportNumber":"987654321","contactDetails":{"mobileTelephoneNumber":"07555567890","primaryEmail":"sarah.johnson@example.com"},"address":{"address1":"5 Pet Lane","postcode":"LS1 3AB"},"selfDefinedInformation":{"gender":2,"ethnicity":"W2","nationality":"GBR"}},"offences":[{"cjsOffenceCode":"CI07016","offenceSequenceNo":1,"offenceCommittedDate":"2025-05-22","offenceDateCode":1,"chargeDate":"2025-05-25","arrestDate":"2025-05-24","offenceLocation":"Leeds Pet Shop","offenceWording":"Failing to provide necessary care for animals","prosecutorCompensation":"750.00","additionalEvidence":"Eyewitness testimony and vet report"}]}}},"Local Council - Illegal Waste Dumping":{"summary":"Local Council - Illegal Waste Dumping","value":{"prosecutionSubmissionDetails":{"urn":"COUNCIL001","prosecutingAuthority":"GABSY01","informant":"Environmental Officer Davis","writtenChargePostingDate":"2025-07-10"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS301","prosecutorCosts":"800.00","hearingLanguage":"E","documentationLanguage":"E","defendantPerson":{"title":"Mr","forename":"Paul","surname":"Anderson","dateOfBirth":"1972-05-30","occupation":"Business Owner","contactDetails":{"mobileTelephoneNumber":"07987654321","primaryEmail":"paul.anderson@example.com"},"address":{"address1":"18 Riverside Street","postcode":"E14 5QJ"},"selfDefinedInformation":{"gender":1,"ethnicity":"W9","nationality":"GBR"}},"offences":[{"cjsOffenceCode":"BI04023","offenceSequenceNo":1,"offenceCommittedDate":"2025-06-20","offenceDateCode":1,"chargeDate":"2025-06-25","offenceLocation":"Public Park","offenceWording":"Dumping waste illegally in a public space","prosecutorCompensation":"1000.00"}]}}},"Local Council - Unauthorized Street Vending":{"summary":"Local Council - Unauthorized Street Vending","value":{"prosecutionSubmissionDetails":{"urn":"COUNCIL002","prosecutingAuthority":"GABSY01","informant":"Inspector Collins","writtenChargePostingDate":"2025-07-20"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS302","prosecutorCosts":"500.00","hearingLanguage":"E","documentationLanguage":"E","defendantPerson":{"title":"Ms","forename":"Anna","surname":"Clark","dateOfBirth":"1985-10-10","occupation":"Street Vendor","contactDetails":{"mobileTelephoneNumber":"07912345678","primaryEmail":"anna.clark@example.com"},"address":{"address1":"99 Market Street","postcode":"BS1 4AB"},"selfDefinedInformation":{"gender":2,"ethnicity":"M1","nationality":"GBR"}},"offences":[{"cjsOffenceCode":"CW99001","offenceSequenceNo":1,"offenceCommittedDate":"2025-07-15","offenceDateCode":1,"chargeDate":"2025-07-18","offenceLocation":"City Centre","offenceWording":"Selling goods without a valid street trading license","prosecutorCompensation":"750.00"}]}}},"Local Council - Noise Pollution":{"summary":"Local Council - Noise Pollution Violation","value":{"prosecutionSubmissionDetails":{"urn":"COUNCIL003","prosecutingAuthority":"GABSY01","informant":"Environmental Officer James","writtenChargePostingDate":"2025-07-30"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS303","prosecutorCosts":"600.00","hearingLanguage":"E","documentationLanguage":"E","defendantPerson":{"title":"Mr","forename":"Michael","surname":"Stewart","dateOfBirth":"1978-11-15","occupation":"Nightclub Owner","contactDetails":{"mobileTelephoneNumber":"07891234567","primaryEmail":"michael.stewart@example.com"},"address":{"address1":"44 Nightlife Avenue","postcode":"L1 8XY"},"selfDefinedInformation":{"gender":2,"ethnicity":"M2","nationality":"GBR"}},"offences":[{"cjsOffenceCode":"GM00041","offenceSequenceNo":1,"offenceCommittedDate":"2025-07-25","offenceDateCode":1,"chargeDate":"2025-07-28","offenceLocation":"Downtown Liverpool","offenceWording":"Exceeding permitted noise levels during nighttime hours","prosecutorCompensation":"850.00"}]}}},"Local Council (Organisation) - Environmental Violation":{"summary":"Local Council (Organisation) - Environmental Violation - Waste Disposal (WM01)","value":{"prosecutionSubmissionDetails":{"urn":"LC567890","prosecutingAuthority":"GAFTL00","informant":"Officer Green","writtenChargePostingDate":"2025-01-20"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS001","prosecutorCosts":"500.00","organisation":{"organisationName":"GreenTech Recycling Ltd","address":{"address1":"56 Oak Road","address2":"Birmingham","postcode":"B2 3DF"}},"documentationLanguage":"E","hearingLanguage":"E","languageRequirement":"no special language needs","specificRequirements":"no special needs","offences":[{"cjsOffenceCode":"HO85007","offenceSequenceNo":1,"offenceCommittedDate":"2025-01-10","offenceDateCode":1,"chargeDate":"2025-01-12","arrestDate":"2025-01-11","offenceLocation":"Town Recycling Facility","vehicleMake":"Ford","vehicleModel":"Transit","vehicleRegistrationMark":"AB12CDE","offenceWording":"Improper waste disposal leading to environmental hazard","prosecutorCompensation":"300.00","backDuty":"150.00","statementOfFacts":"Improper disposal of hazardous waste materials at local facility","statementOfFactsWelsh":"Datganiad o ffeithiau","backDutyDateFrom":"2025-01-01","backDutyDateTo":"2025-01-05"}]}}},"Local Council (Organisation) - Parking Violation":{"summary":"Local Council (Organisation) - Parking Violation - Unauthorized Parking (PV02)","value":{"prosecutionSubmissionDetails":{"urn":"LC98014","prosecutingAuthority":"GAFTL00","informant":"Officer White","writtenChargePostingDate":"2025-02-15"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS002","prosecutorCosts":"150.00","organisation":{"organisationName":"City Parking Solutions Ltd","address":{"address1":"78 Church Street","address2":"Liverpool","postcode":"L1 4GH"}},"documentationLanguage":"E","hearingLanguage":"E","languageRequirement":"no special language needs","specificRequirements":"no special needs","offences":[{"cjsOffenceCode":"LA05052","offenceSequenceNo":1,"offenceCommittedDate":"2025-02-10","offenceDateCode":1,"chargeDate":"2025-02-12","arrestDate":"2025-02-11","offenceLocation":"City Centre, Main Street","vehicleMake":"BMW","vehicleModel":"5 Series","vehicleRegistrationMark":"CD34EFG","offenceWording":"Unauthorized parking in a restricted zone","prosecutorCompensation":"100.00","backDuty":"50.00","statementOfFacts":"Vehicle parked in a restricted area without permission.","statementOfFactsWelsh":"Parcio mewn ardal gyfyngedig heb ganiatâd.","backDutyDateFrom":"2025-02-01","backDutyDateTo":"2025-02-05"}]}}},"Public Transport - Transport Fare Evasion":{"summary":"Public Transport - Transport Fare Evasion","value":{"prosecutionSubmissionDetails":{"urn":"TRANSPORT001","prosecutingAuthority":"GAFTL00","informant":"Inspector Lee","writtenChargePostingDate":"2025-08-15"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS401","prosecutorCosts":"100.00","hearingLanguage":"E","documentationLanguage":"E","defendantPerson":{"title":"Miss","forename":"Lucy","surname":"Evans","dateOfBirth":"1998-09-10","occupation":"Student","contactDetails":{"mobileTelephoneNumber":"07894561230","primaryEmail":"lucy.evans@example.com"},"address":{"address1":"33 High Street","postcode":"M1 2AB"},"selfDefinedInformation":{"gender":2,"ethnicity":"M3","nationality":"GBR"}},"offences":[{"cjsOffenceCode":"RT18021","offenceSequenceNo":1,"offenceCommittedDate":"2025-08-10","offenceDateCode":1,"chargeDate":"2025-08-12","offenceLocation":"Manchester Metro","offenceWording":"Failure to produce a valid transport ticket","prosecutorCompensation":"150.00"}]}}},"Public Transport - Public Transport Vandalism":{"summary":"Public Transport - Vandalism of Public Transport Property","value":{"prosecutionSubmissionDetails":{"urn":"TRANSPORT002","prosecutingAuthority":"GABSY01","informant":"Officer Taylor","writtenChargePostingDate":"2025-09-05"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS402","prosecutorCosts":"1200.00","hearingLanguage":"E","documentationLanguage":"E","defendantPerson":{"title":"Mr","forename":"Ryan","surname":"Adams","dateOfBirth":"2001-07-22","occupation":"Student","contactDetails":{"mobileTelephoneNumber":"07700987654","primaryEmail":"ryan.adams@example.com"},"address":{"address1":"12 High Street","postcode":"LS2 3AB"},"selfDefinedInformation":{"gender":1,"ethnicity":"M9","nationality":"GBR"}},"offences":[{"cjsOffenceCode":"WH20020","offenceSequenceNo":1,"offenceCommittedDate":"2025-08-30","offenceDateCode":1,"chargeDate":"2025-09-02","offenceLocation":"Leeds Central Station","offenceWording":"Damage to public transport property","prosecutorCompensation":"1500.00"}]}}},"Public Transport - Illegal Taxi Operation":{"summary":"Public Transport - Illegal Taxi Operation Without a License","value":{"prosecutionSubmissionDetails":{"urn":"TRANSPORT003","prosecutingAuthority":"GABSY01","informant":"Inspector Williams","writtenChargePostingDate":"2025-10-10"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS403","prosecutorCosts":"2000.00","hearingLanguage":"E","documentationLanguage":"E","defendantPerson":{"title":"Mr","forename":"David","surname":"Harrison","dateOfBirth":"1980-02-17","occupation":"Driver","contactDetails":{"mobileTelephoneNumber":"07800123456","primaryEmail":"david.harrison@example.com"},"address":{"address1":"77 Elm Street","postcode":"M3 4GH"},"selfDefinedInformation":{"gender":1,"ethnicity":"A1","nationality":"GBR"}},"offences":[{"cjsOffenceCode":"LJ22060","offenceSequenceNo":1,"offenceCommittedDate":"2025-09-25","offenceDateCode":1,"chargeDate":"2025-09-28","offenceLocation":"Manchester City Centre","offenceWording":"Operating a taxi service without a valid license","prosecutorCompensation":"2500.00"}]}}},"Public Transport (Organisation) - Overcrowding Violation":{"summary":"Public Transport (Organisation) - Overcrowding Violation (PT01)","value":{"prosecutionSubmissionDetails":{"urn":"PT567891","prosecutingAuthority":"GAFTL00","informant":"Inspector Jones","writtenChargePostingDate":"2025-02-10"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS001","prosecutorCosts":"250.00","organisation":{"organisationName":"City Bus Ltd","address":{"address1":"12 Kingsway","address2":"Bristol","postcode":"BS1 6XL"}},"documentationLanguage":"E","hearingLanguage":"E","languageRequirement":"no special language needs","specificRequirements":"no special needs","offences":[{"cjsOffenceCode":"LJ22080","offenceSequenceNo":1,"offenceCommittedDate":"2025-02-01","offenceDateCode":1,"chargeDate":"2025-02-03","arrestDate":"2025-02-02","offenceLocation":"City Centre Bus Station","vehicleMake":"Mercedes","vehicleModel":"Sprinter","vehicleRegistrationMark":"AB12CDE","offenceWording":"Overcrowding on public transport vehicle","prosecutorCompensation":"100.00","backDuty":"75.00","statementOfFacts":"The bus exceeded capacity with more passengers than legally allowed.","statementOfFactsWelsh":"Roedd y bws yn rhagori ar y capasiti gyda mwy o deithwyr nag oedd yn caniatáu.","backDutyDateFrom":"2025-01-20","backDutyDateTo":"2025-01-25"}]}}},"Public Transport (Organisation) - Illegal Ticketing":{"summary":"Public Transport (Organisation) - Illegal Ticketing (PT02)","value":{"prosecutionSubmissionDetails":{"urn":"PT98015","prosecutingAuthority":"GAFTL00","informant":"Officer Adams","writtenChargePostingDate":"2025-03-01"},"defendant":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SUMMONS002","prosecutorCosts":"400.00","organisation":{"organisationName":"Metro Transport Ltd","address":{"address1":"45 Park Avenue","address2":"Glasgow","postcode":"G3 9QR"}},"documentationLanguage":"E","hearingLanguage":"E","languageRequirement":"no special language needs","specificRequirements":"no special needs","offences":[{"cjsOffenceCode":"MM99008","offenceSequenceNo":1,"offenceCommittedDate":"2025-02-25","offenceDateCode":1,"chargeDate":"2025-02-27","arrestDate":"2025-02-26","offenceLocation":"Metro Station, Main Line","vehicleMake":"Volvo","vehicleModel":"B7R","vehicleRegistrationMark":"LM12MNO","offenceWording":"Selling illegal tickets for public transport","prosecutorCompensation":"200.00","backDuty":"120.00","statementOfFacts":"Organisation illegally sold tickets without proper authorization or registration.","statementOfFactsWelsh":"Cynigiwyd tocynnau anghyfreithlon heb awdurdodiad na chofnodiad priodol.","backDutyDateFrom":"2025-02-10","backDutyDateTo":"2025-02-15"}]}}}}},"application/vnd.hmcts.cjs.summons-prosecution.v2+json":{"schema":{"type":"object","properties":{"prosecutionSubmissionDetails":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"prosecutingAuthority":{"type":"string","description":"Identifies the Prosecuting Organisation responsible for initiating the case. Valid CJS OU Code.","pattern":"^[a-zA-Z0-9-]*$","minLength":7,"maxLength":7},"summonsCode":{"type":"string","description":"Mandatory if Initiation Code is 'S', possible values A, E, W, and M","minLength":1,"maxLength":1},"informant":{"type":"string","description":"Name of the person to be named as the informant in this case.","maxLength":92},"hearingDetails":{"type":"object","properties":{"courtHearingLocation":{"type":"string","description":"The OUCODE of the courthouse","minLength":1,"maxLength":7},"dateOfHearing":{"description":"The date of the hearing","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"timeOfHearing":{"type":"string","description":"The actual start time of the hearing"}},"required":["courtHearingLocation","dateOfHearing","timeOfHearing"]},"urn":{"description":"The unique reference number from the prosecuting authority","title":"URN","type":"string","pattern":"^[a-zA-Z0-9-]*$","maxLength":36},"caseMarker":{"type":"string","maxLength":10,"description":"To be populated if a CJS agreed Case Marker applies. Multiple values to be separated by a space"}},"required":["prosecutingAuthority","summonsCode","informant","hearingDetails","urn"],"additionalProperties":false},"defendants":{"type":"array","minItems":1,"items":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"defendantDetails":{"type":"object","description":"Defendant Details of the case","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"prosecutorDefendantId":{"description":"DefendantId provided by prosecutor.","type":"string","pattern":"^[a-zA-Z0-9-]*$","maxLength":36},"asn":{"type":"string","description":"Arrest / Summons number","maxLength":20},"pncIdentifier":{"description":"person/organisation pnc identifier.","type":"string","pattern":"^(?!0{4}|0{3}|0{2}}|0{1})([0-9][0-9]{3})([\\/])([0-9]{7})([a-zA-Z]|[0-9])$","maxLength":13},"croNumber":{"description":"Criminal Records Office Number","type":"string","pattern":"^(([S][F])(\\d{2})([/])([0-9]{6})([a-zA-Z]|[0-9])|(\\d{6})([/])(\\d{2})([a-zA-Z]|[0-9]{1}))$","maxLength":12},"documentationLanguage":{"type":"string","description":"Identifies the language to be used, values E or W (English or Welsh)","enum":["E","W"],"default":"E"},"hearingLanguage":{"type":"string","description":"Identifies the language to be used, values E or W (English or Welsh)","enum":["E","W"],"default":"E"},"address":{"type":"object","description":"Address","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"address1":{"type":"string","description":"Address Line 1 for the defendant","minLength":1,"maxLength":35},"address2":{"type":"string","description":"Address Line 2 for the defendant","maxLength":35},"address3":{"type":"string","description":"Address Line 3 for the defendant","maxLength":35},"address4":{"type":"string","description":"Address Line 4 for the defendant","maxLength":35},"address5":{"type":"string","description":"Address Line 5 for the defendant","maxLength":35},"postcode":{"description":"UK Post Code (CGS DSC 5.25)","type":"string","pattern":"^(([gG][iI][rR] {0,}0[aA]{2})|(([aA][sS][cC][nN]|[sS][tT][hH][lL]|[tT][dD][cC][uU]|[bB][bB][nN][dD]|[bB][iI][qQ][qQ]|[fF][iI][qQ][qQ]|[pP][cC][rR][nN]|[sS][iI][qQ][qQ]|[iT][kK][cC][aA]) {0,}1[zZ]{2})|((([a-pr-uwyzA-PR-UWYZ][a-hk-yxA-HK-XY]?[0-9][0-9]?)|(([a-pr-uwyzA-PR-UWYZ][0-9][a-hjkstuwA-HJKSTUW])|([a-pr-uwyzA-PR-UWYZ][a-hk-yA-HK-Y][0-9][abehmnprv-yABEHMNPRV-Y]))) {0,}[0-9][abd-hjlnp-uw-zABD-HJLNP-UW-Z]{2}))$","maxLength":8}},"required":["address1"],"additionalProperties":false},"numPreviousConvictions":{"type":"integer","description":"Number of previous conviction cited by prosecutor."},"prosecutorCosts":{"description":"Prosecution costs claimed by prosecutor.","type":"string","pattern":"^(\\+)?([0-9]{1,16})\\.([0-9]{2})$"}},"required":["prosecutorDefendantId","documentationLanguage","hearingLanguage","address"],"additionalProperties":false},"individual":{"type":"object","description":"Summons individual details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"nameDetails":{"type":"object","description":"Individual name details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"title":{"type":"string","description":"Title by which a person is addressed"},"forename":{"type":"string","description":"Given Name (CJS DSC v5 3.50)","maxLength":35,"pattern":"^(?!.*  ).+"},"forename2":{"type":"string","description":"The second given name of a person, e.g. Ian","maxLength":35},"forename3":{"type":"string","description":"The third given name of a person, e.g. Barry","maxLength":35},"surname":{"type":"string","description":"Surname or Family name, e.g. Brown (CJS DSC v5 3.39 Family Name)","maxLength":35,"pattern":"^(?!.*  ).+"}},"required":["forename","surname"],"additionalProperties":false},"contactDetails":{"type":"object","description":"Contact Details of the individual","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"workTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A work telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"homeTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A home telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"mobileTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A mobile number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"primaryEmail":{"description":"The identification of the first e-mail address.","type":"string","pattern":"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"},"secondaryEmail":{"description":"The identification of the second e-mail address.","type":"string","pattern":"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"}},"additionalProperties":false},"nationality":{"type":"string","description":"Country of origin as stated by the defendant, as per CJS Standards section 3.103","maxLength":3},"additionalNationality":{"type":"string","description":"Additional country of origin as stated by the defendant, as per CJS Standards section 3.103","maxLength":3},"dateOfBirth":{"description":"The date when a person was born.","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"gender":{"description":"See CJS Standards (3.45)Mandatory if defendant is a person.Otherwise field must be null, e.g., organisation. 0=Not Known1=Male2=Female9=Not specified","type":"integer","maxLength":1,"enum":[0,1,2,9]},"occupation":{"type":"string","description":"The description of an occupation.","maxLength":54},"occupationCode":{"type":"integer","minLength":1,"maxLength":5,"description":"An occupation code"},"ethnicity":{"type":"string","description":"Ethnicity Self Defined Code"},"driverNumber":{"type":"string","description":"Driver number for DVLA case","pattern":"^([A-Z0-9]{5}\\d[0156]\\d([0][1-9]|[12]\\d|3[01])\\d[A-Z0-9]{3}[A-Z]{2}$)"},"nationalInsuranceNumber":{"type":"string","description":"National Insurance Number (CGS DSC 5.15)","minLength":9,"maxLength":9,"pattern":"^(?!BG)(?!GB)(?!NK)(?!KN)(?!TN)(?!NT)(?!ZZ)[A-CEGHJ-PR-TW-Z][A-CEGHJ-NPR-TW-Z][0-9][0-9][0-9][0-9][0-9][0-9][A-D ]$"},"parentGuardian":{"type":"object","description":"Person details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"organisation":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"organisationName":{"type":"string","description":"Name of an organisation, e.g., Marks and Spencer.","maxLength":255},"companyTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":""}},"required":["organisationName"],"additionalProperties":false},"individual":{"type":"object","description":"Person details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"nameDetails":{"type":"object","description":"Person details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"title":{"type":"string","description":"Title by which a person is addressed"},"forename":{"type":"string","description":"Given Name (CJS DSC v5 3.50)","maxLength":35,"pattern":"^(?!.*  ).+"},"forename2":{"type":"string","description":"The second given name of a person, e.g. Ian","maxLength":35},"forename3":{"type":"string","description":"The third given name of a person, e.g. Barry","maxLength":35},"surname":{"type":"string","description":"Surname or Family name, e.g. Brown (CJS DSC v5 3.39 Family Name)","maxLength":35,"pattern":"^(?!.*  ).+"}},"required":["surname"],"additionalProperties":false},"contactDetails":{"type":"object","description":"Contact Details of the individual","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"workTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A work telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"homeTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A home telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"mobileTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A mobile number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"primaryEmail":{"description":"The identification of the first e-mail address.","type":"string","pattern":"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"},"secondaryEmail":{"description":"The identification of the second e-mail address.","type":"string","pattern":"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"}},"additionalProperties":false},"dateOfBirth":{"description":"The date when a person was born.","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"gender":{"description":"See CJS Standards (3.45)Mandatory if defendant is a person.Otherwise field must be null, e.g., organisation. 0=Not Known1=Male2=Female9=Not specified","type":"integer","maxLength":1,"enum":[0,1,2,9]},"observedEthnicity":{"type":"number","description":"","minLength":1,"maxLength":1},"selfDefinedEthnicity":{"type":"string","description":"Ethnicity Self Defined Code"}},"required":["nameDetails","gender"],"additionalProperties":false},"address":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"address1":{"type":"string","description":"Address Line 1 for the defendant","minLength":1,"maxLength":35},"address2":{"type":"string","description":"Address Line 2 for the defendant","maxLength":35},"address3":{"type":"string","description":"Address Line 3 for the defendant","maxLength":35},"address4":{"type":"string","description":"Address Line 4 for the defendant","maxLength":35},"address5":{"type":"string","description":"Address Line 5 for the defendant","maxLength":35},"postcode":{"description":"UK Post Code (CGS DSC 5.25)","type":"string","pattern":"^(([gG][iI][rR] {0,}0[aA]{2})|(([aA][sS][cC][nN]|[sS][tT][hH][lL]|[tT][dD][cC][uU]|[bB][bB][nN][dD]|[bB][iI][qQ][qQ]|[fF][iI][qQ][qQ]|[pP][cC][rR][nN]|[sS][iI][qQ][qQ]|[iT][kK][cC][aA]) {0,}1[zZ]{2})|((([a-pr-uwyzA-PR-UWYZ][a-hk-yxA-HK-XY]?[0-9][0-9]?)|(([a-pr-uwyzA-PR-UWYZ][0-9][a-hjkstuwA-HJKSTUW])|([a-pr-uwyzA-PR-UWYZ][a-hk-yA-HK-Y][0-9][abehmnprv-yABEHMNPRV-Y]))) {0,}[0-9][abd-hjlnp-uw-zABD-HJLNP-UW-Z]{2}))$","maxLength":8}},"required":["address1"],"additionalProperties":false}},"oneOf":[{"required":["individual","address"]},{"required":["organisation","address"]}],"additionalProperties":false},"aliases":{"type":"array","items":{"type":"object","description":"Individual name details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"title":{"type":"string","description":"Title by which a person is addressed"},"forename":{"type":"string","description":"Given Name (CJS DSC v5 3.50)","maxLength":35,"pattern":"^(?!.*  ).+"},"forename2":{"type":"string","description":"The second given name of a person, e.g. Ian","maxLength":35},"forename3":{"type":"string","description":"The third given name of a person, e.g. Barry","maxLength":35},"surname":{"type":"string","description":"Surname or Family name, e.g. Brown (CJS DSC v5 3.39 Family Name)","maxLength":35,"pattern":"^(?!.*  ).+"}},"required":["forename","surname"],"additionalProperties":false}},"languageRequirement":{"type":"string","description":"Notes about the defendant’s language needs, e.g. interpreter details","maxLength":150},"specificRequirements":{"type":"string","description":"Notes about any help that the defendant may need when attending court – e.g. wheelchair access.","maxLength":150}},"required":["nameDetails","gender"],"additionalProperties":false},"organisation":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"organisationName":{"type":"string","description":"Name of an organisation, e.g., Marks and Spencer.","maxLength":255},"companyTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":""},"aliasOrganisationNames":{"description":"Also known as company name.","type":"array","minItems":1,"pattern":"^[a-zA-Z0-9-]*$","maxLength":80,"items":{"type":"string"}}},"required":["organisationName"],"additionalProperties":false},"offences":{"type":"array","minItems":1,"items":{"type":"object","description":"Offences","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"offenceDetails":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"cjsOffenceCode":{"type":"string","description":"Identifies the CJS code applicable to criminal offences as per the CJS Standard section 3.11","maxLength":8},"offenceSequenceNo":{"type":"integer","description":"Sequence number of the offence","minimum":1,"maxLength":3},"offenceCommittedDate":{"description":"","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"offenceDateCode":{"description":"The code for the offence date to be used within the offence wording, 1 = on or in, 2 = before, 3 = after, 4 = between, 5 = on or about and 6 = on or before","type":"integer","enum":[1,2,3,4,5,6]},"offenceCommittedEndDate":{"description":"End date for period in which offence committed","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"offenceLocation":{"type":"string","description":"Offence location","maxLength":80},"vehicleMake":{"type":"string","maxLength":60},"vehicleRegistrationMark":{"type":"string","maxLength":11},"alcoholRelatedOffence":{"type":"object","properties":{"alcoholOrDrugLevelMethod":{"type":"string","description":"","minLength":1,"maxLength":1},"alcoholOrDrugLevelAmount":{"type":"integer","description":"","minimum":0,"maximum":999}},"required":["alcoholOrDrugLevelMethod","alcoholOrDrugLevelAmount"],"additionalProperties":false},"offenceWording":{"type":"string","description":"Details of Information or Charge to be laid before the court","maxLength":2500},"offenceWordingWelsh":{"type":"string","description":"Details of Information or Charge to be laid before the court in Welsh","maxLength":2500},"prosecutorCompensation":{"description":"Compensation claimed by the prosecutor","type":"string","pattern":"^(\\+)?([0-9]{1,16})\\.([0-9]{2})$"},"backDuty":{"description":"Back duty","type":"string","pattern":"^(\\+)?([0-9]{1,16})\\.([0-9]{2})$"},"backDutyDateFrom":{"description":"Start date of the period of unpaid duty","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"backDutyDateTo":{"description":"End date of the period of unpaid duty","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"}},"required":["cjsOffenceCode","offenceSequenceNo","offenceCommittedDate","offenceDateCode","offenceWording"],"additionalProperties":false},"statementOfFacts":{"type":"string","description":"Statement of facts","maxLength":4000},"statementOfFactsWelsh":{"type":"string","description":"Statement of facts welsh","maxLength":4000}},"required":["offenceDetails"],"additionalProperties":false}}},"oneOf":[{"required":["defendantDetails","individual","offences"]},{"required":["defendantDetails","organisation","offences"]}],"additionalProperties":false}}},"required":["prosecutionSubmissionDetails","defendants"],"additionalProperties":false},"examples":{"Generated":{"summary":"Generated example","value":{"prosecutionSubmissionDetails":{"urn":"URNSumm06","summonsCode":"A","prosecutingAuthority":"GABSY01","informant":"Adam","caseMarker":"HT","hearingDetails":{"courtHearingLocation":"B01BH00","dateOfHearing":"2019-10-16","timeOfHearing":"09:01:01.001"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SummonsNumber001","pncIdentifier":"4026/48923647","prosecutorCosts":"20.99","croNumber":"SF57/3004828","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":3,"address":{"address1":"Address Line 1","address2":"Address Line 2","address3":"Address Line 3","address4":"Address Line 4","address5":"Address Line 5","postcode":"CR0 1XX"}},"individual":{"languageRequirement":"no special language needs","specificRequirements":"no special needs","nameDetails":{"title":"Mr","forename":"John","forename2":"Adam","forename3":"Theodore","surname":"SMITH"},"contactDetails":{"workTelephoneNumber":"1231231230","homeTelephoneNumber":"1231231230","mobileTelephoneNumber":"1231231230","primaryEmail":"aer@af.com","secondaryEmail":"aer@af.com"},"parentGuardian":{"individual":{"nameDetails":{"title":"Mr","forename":"parentGuardianJack","forename2":"parentGuardianAaron","forename3":"Sr","surname":"parentGuardianReaper"},"contactDetails":{"workTelephoneNumber":"9991231230","homeTelephoneNumber":"9991231230","mobileTelephoneNumber":"9991231230","primaryEmail":"999aer@test.com","secondaryEmail":"999aer@test.com"},"dateOfBirth":"1979-05-23","gender":1,"observedEthnicity":4,"selfDefinedEthnicity":"W1"},"address":{"address1":"ParentGAddress Line 1","address2":"ParentGAddress Line 2","address3":"ParentGAddress Line 3","address4":"ParentGAddress Line 4","address5":"ParentG Address Line 5","postcode":"PG0 1XX"}},"aliases":[{"title":"Mr","forename":"AliasJack","forename2":"AliasAaron","forename3":"Sr","surname":"AliasReaper"},{"title":"Mr","forename":"Alias2Jack","forename2":"Alias2Aaron","forename3":"Mr","surname":"Alias2Reaper"}],"dateOfBirth":"1970-02-03","ethnicity":"W1","nationality":"GBR","additionalNationality":"POL","gender":1,"occupation":"TA","occupationCode":666,"driverNumber":"AGBA96122891MUIA","nationalInsuranceNumber":"SN123456C"},"offences":[{"offenceDetails":{"cjsOffenceCode":"CA03013","offenceSequenceNo":1,"offenceCommittedDate":"2019-10-14","offenceCommittedEndDate":"2020-06-11","alcoholRelatedOffence":{"alcoholOrDrugLevelMethod":"C","alcoholOrDrugLevelAmount":2},"offenceDateCode":6,"offenceLocation":"Croydon","offenceWording":"Test Prosecution charge wording","offenceWordingWelsh":"Test Prosecution charge wording in Welsh","prosecutorCompensation":"99.99","backDuty":"+340.99","backDutyDateFrom":"2018-04-09","backDutyDateTo":"2018-05-09"},"statementOfFacts":"this is english","statementOfFactsWelsh":"this is Welsh"},{"offenceDetails":{"cjsOffenceCode":"TH68023A","offenceSequenceNo":2,"offenceCommittedDate":"2019-06-11","offenceCommittedEndDate":"2020-06-11","alcoholRelatedOffence":{"alcoholOrDrugLevelMethod":"C","alcoholOrDrugLevelAmount":2},"offenceDateCode":6,"offenceLocation":"Croydon","offenceWording":"Test Prosecution charge wording","offenceWordingWelsh":"Test Prosecution charge wording in Welsh","prosecutorCompensation":"99.99","backDuty":"+340.99","backDutyDateFrom":"2018-04-09","backDutyDateTo":"2018-05-09"},"statementOfFacts":"this is english","statementOfFactsWelsh":"this is Welsh"}]},{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SummonsNumber001","pncIdentifier":"5695/15367740","prosecutorCosts":"20.99","croNumber":"SF99/554239d","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":3,"address":{"address1":"Address Line 1","address2":"Address Line 2","address3":"Address Line 3","address4":"Address Line 4","address5":"Address Line 5","postcode":"CR0 1XX"}},"individual":{"languageRequirement":"no special language needs","specificRequirements":"no special needs","nameDetails":{"title":"Mr","forename":"Max","forename2":"Adam","forename3":"Rutherford","surname":"Maxi"},"contactDetails":{"workTelephoneNumber":"1231231230","homeTelephoneNumber":"1231231230","mobileTelephoneNumber":"1231231230","primaryEmail":"aer@af.com","secondaryEmail":"aer@af.com"},"parentGuardian":{"individual":{"nameDetails":{"title":"Mr","forename":"parentGuardianMax","forename2":"parentGuardianAaron","forename3":"Sr","surname":"parentGuardianRutherford"},"contactDetails":{"workTelephoneNumber":"9991231230","homeTelephoneNumber":"9991231230","mobileTelephoneNumber":"9991231230","primaryEmail":"999aer@test.com","secondaryEmail":"999aer@test.com"},"dateOfBirth":"1979-05-23","gender":1,"observedEthnicity":4,"selfDefinedEthnicity":"W1"},"address":{"address1":"ParentGAddress Line 1","address2":"ParentGAddress Line 2","address3":"ParentGAddress Line 3","address4":"ParentGAddress Line 4","address5":"ParentG Address Line 5","postcode":"PG0 1XX"}},"aliases":[{"title":"Mr","forename":"MaxJack","forename2":"Max","forename3":"Sr","surname":"MaxReaper"},{"title":"Mr","forename":"MaxJack2","forename2":"Max2","forename3":"Mr","surname":"MaxReaper2"}],"dateOfBirth":"1970-02-03","ethnicity":"W1","nationality":"GBR","additionalNationality":"POL","gender":1,"occupation":"TA","occupationCode":666,"driverNumber":"10MSD662297VRQRN","nationalInsuranceNumber":"SN123333C"},"offences":[{"offenceDetails":{"cjsOffenceCode":"CD98066","offenceSequenceNo":1,"offenceCommittedDate":"2019-06-11","offenceCommittedEndDate":"2020-06-11","alcoholRelatedOffence":{"alcoholOrDrugLevelMethod":"C","alcoholOrDrugLevelAmount":2},"offenceDateCode":6,"offenceLocation":"Croydon","offenceWording":"Test Prosecution charge wording","offenceWordingWelsh":"Test Prosecution charge wording in Welsh","prosecutorCompensation":"99.99","backDuty":"+340.99","backDutyDateFrom":"2018-04-09","backDutyDateTo":"2018-05-09"},"statementOfFacts":"this is english","statementOfFactsWelsh":"this is Welsh"},{"offenceDetails":{"cjsOffenceCode":"TH68023","offenceSequenceNo":2,"offenceCommittedDate":"2019-06-11","offenceCommittedEndDate":"2020-06-11","alcoholRelatedOffence":{"alcoholOrDrugLevelMethod":"C","alcoholOrDrugLevelAmount":2},"offenceDateCode":6,"offenceLocation":"Croydon","offenceWording":"Test Prosecution charge wording","offenceWordingWelsh":"Test Prosecution charge wording in Welsh","prosecutorCompensation":"99.99","backDuty":"+340.99","backDutyDateFrom":"2018-04-09","backDutyDateTo":"2018-05-09"},"statementOfFacts":"this is english","statementOfFactsWelsh":"this is Welsh"}]}]}},"DVLA - Speeding Offence":{"summary":"DVLA - Example of a speeding violation case.","value":{"prosecutionSubmissionDetails":{"urn":"DVLA001","summonsCode":"A","prosecutingAuthority":"GABSY01","informant":"Officer Smith","caseMarker":"SP","hearingDetails":{"courtHearingLocation":"LDN1234","dateOfHearing":"2025-03-15","timeOfHearing":"10:30:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN123456","pncIdentifier":"1080/38413327","croNumber":"498629/71h","documentationLanguage":"E","hearingLanguage":"E","address":{"address1":"10 High Street","postcode":"AB1 2DD"}},"individual":{"nameDetails":{"title":"Mr","forename":"John","forename2":"Adam","forename3":"Theodore","surname":"Doe"},"dateOfBirth":"1985-06-20","gender":1,"driverNumber":"I4BAH954306TUQSK","nationalInsuranceNumber":"AB123456C","occupation":"Engineer","ethnicity":"W1","nationality":"GBR","additionalNationality":"USA"},"offences":[{"offenceDetails":{"cjsOffenceCode":"SV77010","offenceSequenceNo":1,"offenceCommittedDate":"2025-01-10","offenceDateCode":6,"offenceLocation":"M25, Junction 12","vehicleMake":"Ford","vehicleRegistrationMark":"AB12 XYZ","offenceWording":"Driving at 90mph in a 70mph zone."},"statementOfFacts":"Defendant was caught speeding on the M25 by a speed camera."}]}]}},"DVLA - Driving Without Insurance":{"summary":"DVLA - Example of a case where a defendant was caught driving without insurance.","value":{"prosecutionSubmissionDetails":{"urn":"DVLA002","summonsCode":"A","prosecutingAuthority":"GABSY01","informant":"Officer Jane","caseMarker":"IN","hearingDetails":{"courtHearingLocation":"MAN5678","dateOfHearing":"2025-04-10","timeOfHearing":"09:45:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN654321","pncIdentifier":"3757/32456827","croNumber":"SF53/9285914","documentationLanguage":"E","hearingLanguage":"E","address":{"address1":"20 Main Street","postcode":"AY9 4HZ"}},"individual":{"nameDetails":{"forename":"Emily","surname":"Smith"},"dateOfBirth":"1990-09-12","gender":2,"driverNumber":"OREBL659313EVEWR","nationalInsuranceNumber":"XY987654D"},"offences":[{"offenceDetails":{"cjsOffenceCode":"BL19039","offenceSequenceNo":1,"offenceCommittedDate":"2025-02-01","offenceDateCode":6,"offenceLocation":"Manchester City Centre","vehicleMake":"BMW","vehicleRegistrationMark":"XY99 ABC","offenceWording":"Driving a motor vehicle on a road without insurance."},"statementOfFacts":"Defendant was stopped by police and found to have no valid insurance."}]}]}},"DVLA - DUI":{"summary":"DVLA - Example of a case involving driving under the influence of alcohol.","value":{"prosecutionSubmissionDetails":{"urn":"DVLA003","summonsCode":"A","prosecutingAuthority":"GABSY01","informant":"Sergeant Wilson","caseMarker":"DU","hearingDetails":{"courtHearingLocation":"BIR7890","dateOfHearing":"2025-05-22","timeOfHearing":"14:15:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN789123","pncIdentifier":"2802/48669251","croNumber":"SF52/1028194","documentationLanguage":"E","hearingLanguage":"E","address":{"address1":"30 Park Lane","address2":"Apt 5B","address3":"Birmingham City","address4":"West Midlands","address5":"UK","postcode":"BC3 5XY"}},"individual":{"nameDetails":{"title":"Mr","forename":"Michael","forename2":"James","forename3":"Edward","surname":"Brown"},"dateOfBirth":"1982-03-08","gender":1,"driverNumber":"7FQRM75131356VJZ","nationalInsuranceNumber":"BB345678A","occupation":"Sales Manager","ethnicity":"B1","nationality":"GBR","additionalNationality":"IRL"},"offences":[{"offenceDetails":{"cjsOffenceCode":"FN23004","offenceSequenceNo":1,"offenceCommittedDate":"2025-03-01","offenceCommittedEndDate":"2025-03-01","offenceDateCode":1,"offenceLocation":"Birmingham High Street","vehicleMake":"Audi","vehicleRegistrationMark":"BC55 DEF","alcoholRelatedOffence":{"alcoholOrDrugLevelMethod":"B","alcoholOrDrugLevelAmount":85},"offenceWording":"Driving a motor vehicle with excess alcohol."},"statementOfFacts":"Defendant was stopped by police and breathalyzed, showing an alcohol level of 85 micrograms per 100 milliliters of breath."}]}]}},"RSPCA - Animal Cruelty":{"summary":"RSPCA - Example of a case involving animal cruelty.","value":{"prosecutionSubmissionDetails":{"urn":"RSPCA001","summonsCode":"A","prosecutingAuthority":"GABSY01","informant":"Inspector Jones","caseMarker":"AC","hearingDetails":{"courtHearingLocation":"LDN5678","dateOfHearing":"2025-06-15","timeOfHearing":"11:30:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN555666","pncIdentifier":"5960/3709281Y","croNumber":"533629/410","documentationLanguage":"E","hearingLanguage":"E","address":{"address1":"50 Green Lane","postcode":"CY1 4AB"}},"individual":{"nameDetails":{"title":"Mr","forename":"Peter","surname":"Jackson"},"dateOfBirth":"1980-07-22","gender":1,"nationality":"GBR"},"offences":[{"offenceDetails":{"cjsOffenceCode":"RI64006","offenceSequenceNo":1,"offenceCommittedDate":"2025-05-20","offenceDateCode":6,"offenceLocation":"Private property","offenceWording":"Causing unnecessary suffering to an animal."},"statementOfFacts":"Defendant was found mistreating animals at their property."}]}]}},"RSPCA - Illegal Puppy Farming":{"summary":"RSPCA - Example of a case involving illegal puppy farming.","value":{"prosecutionSubmissionDetails":{"urn":"RSPCA002","summonsCode":"A","prosecutingAuthority":"GABSY01","informant":"Officer Smith","caseMarker":"IPF","hearingDetails":{"courtHearingLocation":"MAN8901","dateOfHearing":"2025-07-10","timeOfHearing":"09:00:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN777888","pncIdentifier":"2451/8504697f","croNumber":"SF73/7512883","documentationLanguage":"E","hearingLanguage":"E","address":{"address1":"120 Farm Road","postcode":"MN2 5XY"}},"individual":{"nameDetails":{"title":"Mrs","forename":"Susan","surname":"Wright"},"dateOfBirth":"1975-03-12","gender":2,"nationality":"GBR"},"offences":[{"offenceDetails":{"cjsOffenceCode":"AN86004","offenceSequenceNo":1,"offenceCommittedDate":"2025-06-05","offenceDateCode":6,"offenceLocation":"Unlicensed breeding facility","offenceWording":"Operating an illegal puppy farm."},"statementOfFacts":"Defendant was found keeping unlicensed and unhealthy dogs for sale."}]}]}},"RSPCA - Animal Abandonment":{"summary":"RSPCA - Example of a case involving the abandonment of animals.","value":{"prosecutionSubmissionDetails":{"urn":"RSPCA003","summonsCode":"A","prosecutingAuthority":"GABSY01","informant":"Inspector Green","caseMarker":"AA","hearingDetails":{"courtHearingLocation":"BIR1234","dateOfHearing":"2025-08-20","timeOfHearing":"13:45:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN999000","pncIdentifier":"2800/5512985m","croNumber":"SF31/327184X","documentationLanguage":"E","hearingLanguage":"E","address":{"address1":"75 Country Road","postcode":"AB3 7DD"}},"individual":{"nameDetails":{"title":"Mr","forename":"Robert","surname":"Davis"},"dateOfBirth":"1965-11-05","gender":1,"nationality":"GBR"},"offences":[{"offenceDetails":{"cjsOffenceCode":"BL20025","offenceSequenceNo":1,"offenceCommittedDate":"2025-07-25","offenceDateCode":6,"offenceLocation":"Woodland area","offenceWording":"Abandoning domestic animals without care."},"statementOfFacts":"Defendant was found leaving animals in a remote area without food or water."}]}]}},"Local Council - Illegal Waste Dumping":{"summary":"Local Council - Example of a case involving illegal waste dumping.","value":{"prosecutionSubmissionDetails":{"urn":"LC001","summonsCode":"A","prosecutingAuthority":"GABSY01","informant":"Officer Roberts","caseMarker":"IWD","hearingDetails":{"courtHearingLocation":"LDN3456","dateOfHearing":"2025-09-10","timeOfHearing":"10:15:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN888777","pncIdentifier":"8184/59548138","croNumber":"SF14/2025982","documentationLanguage":"E","hearingLanguage":"E","address":{"address1":"25 River Street","postcode":"ZA1 3XY"}},"individual":{"nameDetails":{"title":"Mr","forename":"James","surname":"Turner"},"dateOfBirth":"1972-04-18","gender":1,"nationality":"GBR"},"offences":[{"offenceDetails":{"cjsOffenceCode":"CA12058","offenceSequenceNo":1,"offenceCommittedDate":"2025-08-20","offenceDateCode":6,"offenceLocation":"Public Park","offenceWording":"Dumping illegal waste in a public area."},"statementOfFacts":"Defendant was caught disposing of commercial waste illegally."}]}]}},"Local Council - Fare Evasion":{"summary":"Local Council - Example of a case involving fare evasion.","value":{"prosecutionSubmissionDetails":{"urn":"PT001","summonsCode":"A","prosecutingAuthority":"GABSY01","informant":"Inspector Clark","caseMarker":"FE","hearingDetails":{"courtHearingLocation":"MAN6789","dateOfHearing":"2025-10-12","timeOfHearing":"09:30:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN111222","pncIdentifier":"3428/0719339S","croNumber":"SF18/6421717","documentationLanguage":"E","hearingLanguage":"E","address":{"address1":"10 Metro Lane","postcode":"PT5 9YU"}},"individual":{"nameDetails":{"title":"Miss","forename":"Laura","surname":"Benson"},"dateOfBirth":"1995-07-14","gender":2,"nationality":"GBR"},"offences":[{"offenceDetails":{"cjsOffenceCode":"CT99069","offenceSequenceNo":1,"offenceCommittedDate":"2025-09-30","offenceDateCode":6,"offenceLocation":"Central Station","offenceWording":"Travelling without a valid ticket."},"statementOfFacts":"Defendant was caught entering a train without paying the fare."}]}]}},"Local Council - Fly-tipping":{"summary":"Local Council - Example of a case involving fly-tipping.","value":{"prosecutionSubmissionDetails":{"urn":"LC002","summonsCode":"A","prosecutingAuthority":"GABSY01","informant":"Officer Smith","caseMarker":"FT","hearingDetails":{"courtHearingLocation":"BIR4567","dateOfHearing":"2025-11-05","timeOfHearing":"14:00:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN999111","pncIdentifier":"5303/4169758x","croNumber":"SF76/1708506","documentationLanguage":"E","hearingLanguage":"E","address":{"address1":"78 High Street","postcode":"AB4 6WD"}},"individual":{"nameDetails":{"title":"Ms","forename":"Rachel","surname":"Davies"},"dateOfBirth":"1988-09-30","gender":2,"nationality":"GBR"},"offences":[{"offenceDetails":{"cjsOffenceCode":"TS07004","offenceSequenceNo":1,"offenceCommittedDate":"2025-10-15","offenceDateCode":6,"offenceLocation":"Residential Area","offenceWording":"Illegally dumping waste in an unauthorized location."},"statementOfFacts":"Defendant was caught disposing of furniture and hazardous materials in a public space."}]}]}}}},"application/vnd.hmcts.cjs.charge-prosecution.v2+json":{"schema":{"type":"object","properties":{"prosecutionSubmissionDetails":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"prosecutingAuthority":{"type":"string","description":"Identifies the Prosecuting Organisation responsible for initiating the case. Valid CJS OU Code.","pattern":"^[a-zA-Z0-9-]*$","minLength":7,"maxLength":7},"informant":{"type":"string","description":"Name of the person to be named as the informant in this case.","maxLength":92},"hearingDetails":{"type":"object","properties":{"courtHearingLocation":{"type":"string","description":"The OUCODE of the courthouse","minLength":1,"maxLength":7},"dateOfHearing":{"description":"The date of the hearing","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"timeOfHearing":{"type":"string","description":"The actual start time of the hearing"}},"required":["courtHearingLocation","dateOfHearing","timeOfHearing"]},"urn":{"description":"The unique reference number from the prosecuting authority","title":"URN","type":"string","pattern":"^[a-zA-Z0-9-]*$","maxLength":36},"caseMarker":{"type":"string","maxLength":10,"description":"To be populated if a CJS agreed Case Marker applies. Multiple values to be separated by a space"}},"required":["prosecutingAuthority","hearingDetails","urn"],"additionalProperties":false},"defendants":{"type":"array","minItems":1,"items":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"defendantDetails":{"type":"object","description":"Defendant Details of the case","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"prosecutorDefendantId":{"description":"DefendantId provided by prosecutor.","type":"string","pattern":"^[a-zA-Z0-9-]*$","maxLength":36},"asn":{"type":"string","description":"Arrest / Summons number","maxLength":20},"pncIdentifier":{"description":"person/organisation pnc identifier.","type":"string","pattern":"^(?!0{4}|0{3}|0{2}}|0{1})([0-9][0-9]{3})([\\/])([0-9]{7})([a-zA-Z]|[0-9])$","maxLength":13},"croNumber":{"description":"Criminal Records Office Number","type":"string","pattern":"^(([S][F])(\\d{2})([/])([0-9]{6})([a-zA-Z]|[0-9])|(\\d{6})([/])(\\d{2})([a-zA-Z]|[0-9]{1}))$","maxLength":12},"documentationLanguage":{"type":"string","description":"Identifies the language to be used, values E or W (English or Welsh)","enum":["E","W"],"default":"E"},"hearingLanguage":{"type":"string","description":"Identifies the language to be used, values E or W (English or Welsh)","enum":["E","W"],"default":"E"},"address":{"type":"object","description":"Address","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"address1":{"type":"string","description":"Address Line 1 for the defendant","minLength":1,"maxLength":35},"address2":{"type":"string","description":"Address Line 2 for the defendant","maxLength":35},"address3":{"type":"string","description":"Address Line 3 for the defendant","maxLength":35},"address4":{"type":"string","description":"Address Line 4 for the defendant","maxLength":35},"address5":{"type":"string","description":"Address Line 5 for the defendant","maxLength":35},"postcode":{"description":"UK Post Code (CGS DSC 5.25)","type":"string","pattern":"^(([gG][iI][rR] {0,}0[aA]{2})|(([aA][sS][cC][nN]|[sS][tT][hH][lL]|[tT][dD][cC][uU]|[bB][bB][nN][dD]|[bB][iI][qQ][qQ]|[fF][iI][qQ][qQ]|[pP][cC][rR][nN]|[sS][iI][qQ][qQ]|[iT][kK][cC][aA]) {0,}1[zZ]{2})|((([a-pr-uwyzA-PR-UWYZ][a-hk-yxA-HK-XY]?[0-9][0-9]?)|(([a-pr-uwyzA-PR-UWYZ][0-9][a-hjkstuwA-HJKSTUW])|([a-pr-uwyzA-PR-UWYZ][a-hk-yA-HK-Y][0-9][abehmnprv-yABEHMNPRV-Y]))) {0,}[0-9][abd-hjlnp-uw-zABD-HJLNP-UW-Z]{2}))$","maxLength":8}},"required":["address1"],"additionalProperties":false},"numPreviousConvictions":{"type":"integer","description":"Number of previous conviction cited by prosecutor."},"prosecutorCosts":{"description":"Prosecution costs claimed by prosecutor.","type":"string","pattern":"^(\\+)?([0-9]{1,16})\\.([0-9]{2})$"}},"required":["prosecutorDefendantId","documentationLanguage","hearingLanguage","address"],"additionalProperties":false},"individual":{"type":"object","description":"Charge individual details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"nameDetails":{"type":"object","description":"Individual name details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"title":{"type":"string","description":"Title by which a person is addressed"},"forename":{"type":"string","description":"Given Name (CJS DSC v5 3.50)","maxLength":35,"pattern":"^(?!.*  ).+"},"forename2":{"type":"string","description":"The second given name of a person, e.g. Ian","maxLength":35},"forename3":{"type":"string","description":"The third given name of a person, e.g. Barry","maxLength":35},"surname":{"type":"string","description":"Surname or Family name, e.g. Brown (CJS DSC v5 3.39 Family Name)","maxLength":35,"pattern":"^(?!.*  ).+"}},"required":["forename","surname"],"additionalProperties":false},"contactDetails":{"type":"object","description":"Contact Details of the individual","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"workTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A work telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"homeTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A home telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"mobileTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A mobile number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"primaryEmail":{"description":"The identification of the first e-mail address.","type":"string","pattern":"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"},"secondaryEmail":{"description":"The identification of the second e-mail address.","type":"string","pattern":"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"}},"additionalProperties":false},"nationality":{"type":"string","description":"Country of origin as stated by the defendant, as per CJS Standards section 3.103","maxLength":3},"additionalNationality":{"type":"string","description":"Additional country of origin as stated by the defendant, as per CJS Standards section 3.103","maxLength":3},"dateOfBirth":{"description":"The date when a person was born.","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"gender":{"description":"See CJS Standards (3.45)Mandatory if defendant is a person.Otherwise field must be null, e.g., organisation. 0=Not Known1=Male2=Female9=Not specified","type":"integer","maxLength":1,"enum":[0,1,2,9]},"occupation":{"type":"string","description":"The description of an occupation.","maxLength":54},"occupationCode":{"type":"integer","minLength":1,"maxLength":5,"description":"An occupation code"},"observedEthnicity":{"type":"number","description":"","minLength":1,"maxLength":1},"ethnicity":{"type":"string","description":"Ethnicity Self Defined Code"},"driverNumber":{"type":"string","description":"Driver number for DVLA case","pattern":"^([A-Z0-9]{5}\\d[0156]\\d([0][1-9]|[12]\\d|3[01])\\d[A-Z0-9]{3}[A-Z]{2}$)"},"nationalInsuranceNumber":{"type":"string","description":"National Insurance Number (CGS DSC 5.15)","minLength":9,"maxLength":9,"pattern":"^(?!BG)(?!GB)(?!NK)(?!KN)(?!TN)(?!NT)(?!ZZ)[A-CEGHJ-PR-TW-Z][A-CEGHJ-NPR-TW-Z][0-9][0-9][0-9][0-9][0-9][0-9][A-D ]$"},"parentGuardian":{"type":"object","description":"Person details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"organisation":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"organisationName":{"type":"string","description":"Name of an organisation, e.g., Marks and Spencer.","maxLength":255},"companyTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":""}},"required":["organisationName"],"additionalProperties":false},"individual":{"type":"object","description":"Person details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"nameDetails":{"type":"object","description":"Person details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"title":{"type":"string","description":"Title by which a person is addressed"},"forename":{"type":"string","description":"Given Name (CJS DSC v5 3.50)","maxLength":35,"pattern":"^(?!.*  ).+"},"forename2":{"type":"string","description":"The second given name of a person, e.g. Ian","maxLength":35},"forename3":{"type":"string","description":"The third given name of a person, e.g. Barry","maxLength":35},"surname":{"type":"string","description":"Surname or Family name, e.g. Brown (CJS DSC v5 3.39 Family Name)","maxLength":35,"pattern":"^(?!.*  ).+"}},"required":["surname"],"additionalProperties":false},"contactDetails":{"type":"object","description":"Contact Details of the individual","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"workTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A work telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"homeTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A home telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"mobileTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A mobile number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"primaryEmail":{"description":"The identification of the first e-mail address.","type":"string","pattern":"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"},"secondaryEmail":{"description":"The identification of the second e-mail address.","type":"string","pattern":"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"}},"additionalProperties":false},"dateOfBirth":{"description":"The date when a person was born.","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"gender":{"description":"See CJS Standards (3.45)Mandatory if defendant is a person.Otherwise field must be null, e.g., organisation. 0=Not Known1=Male2=Female9=Not specified","type":"integer","maxLength":1,"enum":[0,1,2,9]},"observedEthnicity":{"type":"number","description":"","minLength":1,"maxLength":1},"selfDefinedEthnicity":{"type":"string","description":"Ethnicity Self Defined Code"}},"required":["nameDetails","gender"],"additionalProperties":false},"address":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"address1":{"type":"string","description":"Address Line 1 for the defendant","minLength":1,"maxLength":35},"address2":{"type":"string","description":"Address Line 2 for the defendant","maxLength":35},"address3":{"type":"string","description":"Address Line 3 for the defendant","maxLength":35},"address4":{"type":"string","description":"Address Line 4 for the defendant","maxLength":35},"address5":{"type":"string","description":"Address Line 5 for the defendant","maxLength":35},"postcode":{"description":"UK Post Code (CGS DSC 5.25)","type":"string","pattern":"^(([gG][iI][rR] {0,}0[aA]{2})|(([aA][sS][cC][nN]|[sS][tT][hH][lL]|[tT][dD][cC][uU]|[bB][bB][nN][dD]|[bB][iI][qQ][qQ]|[fF][iI][qQ][qQ]|[pP][cC][rR][nN]|[sS][iI][qQ][qQ]|[iT][kK][cC][aA]) {0,}1[zZ]{2})|((([a-pr-uwyzA-PR-UWYZ][a-hk-yxA-HK-XY]?[0-9][0-9]?)|(([a-pr-uwyzA-PR-UWYZ][0-9][a-hjkstuwA-HJKSTUW])|([a-pr-uwyzA-PR-UWYZ][a-hk-yA-HK-Y][0-9][abehmnprv-yABEHMNPRV-Y]))) {0,}[0-9][abd-hjlnp-uw-zABD-HJLNP-UW-Z]{2}))$","maxLength":8}},"required":["address1"],"additionalProperties":false}},"oneOf":[{"required":["individual","address"]},{"required":["organisation","address"]}],"additionalProperties":false},"aliases":{"type":"array","items":{"type":"object","description":"Individual name details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"title":{"type":"string","description":"Title by which a person is addressed"},"forename":{"type":"string","description":"Given Name (CJS DSC v5 3.50)","maxLength":35,"pattern":"^(?!.*  ).+"},"forename2":{"type":"string","description":"The second given name of a person, e.g. Ian","maxLength":35},"forename3":{"type":"string","description":"The third given name of a person, e.g. Barry","maxLength":35},"surname":{"type":"string","description":"Surname or Family name, e.g. Brown (CJS DSC v5 3.39 Family Name)","maxLength":35,"pattern":"^(?!.*  ).+"}},"required":["forename","surname"],"additionalProperties":false}},"languageRequirement":{"type":"string","description":"Notes about the defendant’s language needs, e.g. interpreter details","maxLength":150},"specificRequirements":{"type":"string","description":"Notes about any help that the defendant may need when attending court – e.g. wheelchair access.","maxLength":150},"custodyStatus":{"type":"string","description":"Identifies the type of case","minLength":1,"maxLength":1},"bailConditions":{"description":"","type":"string","maxLength":2500}},"required":["nameDetails","gender","nationality","dateOfBirth","observedEthnicity","ethnicity","custodyStatus"],"additionalProperties":false},"organisation":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"organisationName":{"type":"string","description":"Name of an organisation, e.g., Marks and Spencer.","maxLength":255},"companyTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":""},"aliasOrganisationNames":{"description":"Also known as company name.","type":"array","minItems":1,"pattern":"^[a-zA-Z0-9-]*$","maxLength":80,"items":{"type":"string"}}},"required":["organisationName"],"additionalProperties":false},"offences":{"type":"array","minItems":1,"items":{"type":"object","description":"","properties":{"offenceDetails":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"cjsOffenceCode":{"type":"string","description":"Identifies the CJS code applicable to criminal offences as per the CJS Standard section 3.11","maxLength":8},"offenceSequenceNo":{"type":"integer","description":"Sequence number of the offence","minimum":1,"maxLength":3},"offenceCommittedDate":{"description":"","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"offenceDateCode":{"description":"The code for the offence date to be used within the offence wording, 1 = on or in, 2 = before, 3 = after, 4 = between, 5 = on or about and 6 = on or before","type":"integer","enum":[1,2,3,4,5,6]},"offenceCommittedEndDate":{"description":"End date for period in which offence committed","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"offenceLocation":{"type":"string","description":"Offence location","maxLength":80},"vehicleMake":{"type":"string","maxLength":60},"vehicleRegistrationMark":{"type":"string","maxLength":11},"alcoholRelatedOffence":{"type":"object","properties":{"alcoholOrDrugLevelMethod":{"type":"string","description":"","minLength":1,"maxLength":1},"alcoholOrDrugLevelAmount":{"type":"integer","description":"","minimum":0,"maximum":999}},"required":["alcoholOrDrugLevelMethod","alcoholOrDrugLevelAmount"],"additionalProperties":false},"offenceWording":{"type":"string","description":"Details of Information or Charge to be laid before the court","maxLength":2500},"offenceWordingWelsh":{"type":"string","description":"Details of Information or Charge to be laid before the court in Welsh","maxLength":2500},"prosecutorCompensation":{"description":"Compensation claimed by the prosecutor","type":"string","pattern":"^(\\+)?([0-9]{1,16})\\.([0-9]{2})$"},"backDuty":{"description":"Back duty","type":"string","pattern":"^(\\+)?([0-9]{1,16})\\.([0-9]{2})$"},"backDutyDateFrom":{"description":"Start date of the period of unpaid duty","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"backDutyDateTo":{"description":"End date of the period of unpaid duty","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"}},"required":["cjsOffenceCode","offenceSequenceNo","offenceCommittedDate","offenceDateCode","offenceWording"],"additionalProperties":false},"chargeDate":{"description":"The date the defendant was charged","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"arrestDate":{"description":"","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"}},"required":["offenceDetails","chargeDate","arrestDate"],"additionalProperties":false}}},"oneOf":[{"required":["defendantDetails","individual","offences"]},{"required":["defendantDetails","organisation","offences"]}],"additionalProperties":false}}},"required":["prosecutionSubmissionDetails","defendants"],"additionalProperties":false},"examples":{"Generated":{"summary":"Generated example","value":{"prosecutionSubmissionDetails":{"urn":"CRC10955-23","prosecutingAuthority":"GABSY01","informant":"Adam","caseMarker":"HT","hearingDetails":{"courtHearingLocation":"B01BH00","dateOfHearing":"2019-09-25","timeOfHearing":"09:01:01.001"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SummonsNumber001","pncIdentifier":"6692/96539360","prosecutorCosts":"20.99","croNumber":"SF52/9860852","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":3,"address":{"address1":"Address Line 1","address2":"Address Line 2","address3":"Address Line 3","address4":"Address Line 4","address5":"Address Line 5","postcode":"CR0 1XX"}},"individual":{"custodyStatus":"B","bailConditions":"this is a free text","languageRequirement":"no special language needs","specificRequirements":"no special needs","nameDetails":{"title":"Mr","forename":"John","forename2":"Adam","forename3":"Theodore","surname":"SMITH"},"contactDetails":{"workTelephoneNumber":"1231231230","homeTelephoneNumber":"1231231230","mobileTelephoneNumber":"1231231230","primaryEmail":"aer@af.com","secondaryEmail":"aer@af.com"},"parentGuardian":{"individual":{"nameDetails":{"title":"Mr","forename":"parentGuardianJack","forename2":"parentGuardianAaron","forename3":"Sr","surname":"parentGuardianReaper"},"contactDetails":{"workTelephoneNumber":"9991231230","homeTelephoneNumber":"9991231230","mobileTelephoneNumber":"9991231230","primaryEmail":"999aer@test.com","secondaryEmail":"999aer@test.com"},"dateOfBirth":"1969-05-23","gender":1,"observedEthnicity":4,"selfDefinedEthnicity":"W1"},"address":{"address1":"ParentGAddress Line 1","address2":"ParentGAddress Line 2","address3":"ParentGAddress Line 3","address4":"ParentGAddress Line 4","address5":"ParentG Address Line 5","postcode":"PG0 1XX"}},"aliases":[{"title":"Mr","forename":"AliasJack","forename2":"AliasAaron","forename3":"Sr","surname":"AliasReaper"},{"title":"Mr","forename":"Alias2Jack","forename2":"Alias2Aaron","forename3":"Mr","surname":"Alias2Reaper"}],"dateOfBirth":"1970-02-03","ethnicity":"W1","observedEthnicity":4,"nationality":"GBR","additionalNationality":"POL","gender":1,"occupation":"TA","occupationCode":666,"driverNumber":"PLQU0963095WVAOM","nationalInsuranceNumber":"SN333446C"},"offences":[{"offenceDetails":{"cjsOffenceCode":"CA03013","offenceSequenceNo":1,"offenceCommittedDate":"2019-09-06","offenceCommittedEndDate":"2020-06-11","alcoholRelatedOffence":{"alcoholOrDrugLevelMethod":"C","alcoholOrDrugLevelAmount":2},"offenceDateCode":6,"offenceLocation":"Croydon","offenceWording":"Test Prosecution charge wording","offenceWordingWelsh":"Test Prosecution charge wording in Welsh","prosecutorCompensation":"99.99","backDuty":"+340.99","backDutyDateFrom":"2018-04-09","backDutyDateTo":"2018-05-09"},"chargeDate":"2019-08-11","arrestDate":"2019-08-10"},{"offenceDetails":{"cjsOffenceCode":"TH68023A","offenceSequenceNo":2,"offenceCommittedDate":"2019-09-06","offenceCommittedEndDate":"2020-06-11","alcoholRelatedOffence":{"alcoholOrDrugLevelMethod":"C","alcoholOrDrugLevelAmount":2},"offenceDateCode":6,"offenceLocation":"Croydon","offenceWording":"Test Prosecution charge wording","offenceWordingWelsh":"Test Prosecution charge wording in Welsh","prosecutorCompensation":"99.99","backDuty":"+340.99","backDutyDateFrom":"2018-04-09","backDutyDateTo":"2018-05-09"},"chargeDate":"2019-08-11","arrestDate":"2019-08-10"}]},{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SummonsNumber001","pncIdentifier":"8190/4795128P","prosecutorCosts":"20.99","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":3,"address":{"address1":"Address Line 1","address2":"Address Line 2","address3":"Address Line 3","address4":"Address Line 4","address5":"Address Line 5","postcode":"CR1 1XX"}},"individual":{"custodyStatus":"B","bailConditions":"this is a free text","languageRequirement":"no special language needs","specificRequirements":"no special needs","nameDetails":{"title":"Mr","forename":"Max","forename2":"Adam","forename3":"Rutherford","surname":"Maxi"},"contactDetails":{"workTelephoneNumber":"1231231230","homeTelephoneNumber":"1231231230","mobileTelephoneNumber":"1231231230","primaryEmail":"aer@af.com","secondaryEmail":"aer@af.com"},"parentGuardian":{"individual":{"nameDetails":{"title":"Mr","forename":"parentGuardianMax","forename2":"parentGuardianAaron","forename3":"Sr","surname":"parentGuardianRutherford"},"contactDetails":{"workTelephoneNumber":"9991231230","homeTelephoneNumber":"9991231230","mobileTelephoneNumber":"9991231230","primaryEmail":"999aer@test.com","secondaryEmail":"999aer@test.com"},"dateOfBirth":"1979-05-23","gender":1,"observedEthnicity":4,"selfDefinedEthnicity":"W1"},"address":{"address1":"ParentGAddress Line 1","address2":"ParentGAddress Line 2","address3":"ParentGAddress Line 3","address4":"ParentGAddress Line 4","address5":"ParentG Address Line 5","postcode":"PG1 1XX"}},"aliases":[{"title":"Mr","forename":"MaxJack","forename2":"Max","forename3":"Sr","surname":"MaxReaper"},{"title":"Mr","forename":"MaxJack2","forename2":"Max2","forename3":"Mr","surname":"MaxReaper2"}],"dateOfBirth":"1970-02-03","ethnicity":"W1","observedEthnicity":4,"nationality":"GBR","additionalNationality":"POL","gender":1,"occupation":"TA","occupationCode":666,"driverNumber":"PQO4K456318P4POX","nationalInsuranceNumber":"SN123000A"},"offences":[{"offenceDetails":{"cjsOffenceCode":"CD98066","offenceSequenceNo":1,"offenceCommittedDate":"2019-09-06","offenceCommittedEndDate":"2020-06-11","alcoholRelatedOffence":{"alcoholOrDrugLevelMethod":"C","alcoholOrDrugLevelAmount":2},"offenceDateCode":6,"offenceLocation":"Croydon","offenceWording":"Test Prosecution charge wording","offenceWordingWelsh":"Test Prosecution charge wording in Welsh","prosecutorCompensation":"99.99","backDuty":"+340.99","backDutyDateFrom":"2018-04-09","backDutyDateTo":"2018-05-09"},"chargeDate":"2019-08-11","arrestDate":"2019-08-10"},{"offenceDetails":{"cjsOffenceCode":"TH68023","offenceSequenceNo":2,"offenceCommittedDate":"2019-06-11","offenceCommittedEndDate":"2020-06-11","alcoholRelatedOffence":{"alcoholOrDrugLevelMethod":"C","alcoholOrDrugLevelAmount":2},"offenceDateCode":6,"offenceLocation":"Croydon","offenceWording":"Test Prosecution charge wording","offenceWordingWelsh":"Test Prosecution charge wording in Welsh","prosecutorCompensation":"99.99","backDuty":"+340.99","backDutyDateFrom":"2018-04-09","backDutyDateTo":"2018-05-09"},"chargeDate":"2019-08-11","arrestDate":"2019-08-10"}]}]}},"DVLA - Speeding Offence":{"summary":"DVLA - Speeding Offence","value":{"prosecutionSubmissionDetails":{"urn":"DVLA12345678","prosecutingAuthority":"GABSY01","informant":"John Doe","caseMarker":"HT","hearingDetails":{"courtHearingLocation":"DVLA001","dateOfHearing":"2025-06-15","timeOfHearing":"10:30:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN123456","pncIdentifier":"2212/94225974","prosecutorCosts":"150.00","croNumber":"778129/175","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":1,"address":{"address1":"123 Main Street","address2":"Apt 5B","postcode":"AB1 2PD"}},"individual":{"nameDetails":{"title":"Mr","forename":"James","surname":"Smith"},"dateOfBirth":"1990-05-14","gender":1,"nationality":"GBR","observedEthnicity":2,"ethnicity":"W1","driverNumber":"04Q3G806301HCEHD","nationalInsuranceNumber":"SN123000B","custodyStatus":"B","occupation":"Software Engineer","occupationCode":12345},"offences":[{"offenceDetails":{"cjsOffenceCode":"BL19006","offenceSequenceNo":1,"offenceCommittedDate":"2025-05-01","offenceDateCode":1,"offenceLocation":"London","vehicleRegistrationMark":"AB12XYZ","vehicleMake":"Ford","offenceWording":"Exceeding the speed limit on a public road","prosecutorCompensation":"200.00"},"chargeDate":"2025-05-05","arrestDate":"2025-05-04"}]}]}},"DVLA - Driving Without Insurance":{"summary":"DVLA - Driving Without Insurance","value":{"prosecutionSubmissionDetails":{"urn":"DVLA87654321","prosecutingAuthority":"GABSY01","informant":"Jane Doe","caseMarker":"HT","hearingDetails":{"courtHearingLocation":"DVLA002","dateOfHearing":"2025-07-20","timeOfHearing":"14:00:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN654321","pncIdentifier":"8842/2319991V","prosecutorCosts":"250.00","croNumber":"290112/93k","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":2,"address":{"address1":"456 Elm Street","address2":"Flat 3C","postcode":"BY9 1ZW"}},"individual":{"nameDetails":{"title":"Ms","forename":"Emma","surname":"Johnson"},"dateOfBirth":"1985-09-23","gender":2,"nationality":"GBR","observedEthnicity":3,"ethnicity":"B2","driverNumber":"FZSJS607270KSFVY","nationalInsuranceNumber":"BB765432A","custodyStatus":"R","occupation":"Doctor","occupationCode":67890},"offences":[{"offenceDetails":{"cjsOffenceCode":"BL19039","offenceSequenceNo":1,"offenceCommittedDate":"2025-06-10","offenceDateCode":1,"offenceLocation":"Manchester","vehicleRegistrationMark":"YZ89ABC","vehicleMake":"BMW","offenceWording":"Driving a motor vehicle without insurance","prosecutorCompensation":"500.00"},"chargeDate":"2025-06-15","arrestDate":"2025-06-14"}]}]}},"DVLA - Drink Driving":{"summary":"DVLA - Drink Driving","value":{"prosecutionSubmissionDetails":{"urn":"DVLA44556677","prosecutingAuthority":"GABSY01","informant":"Mark Green","caseMarker":"HT","hearingDetails":{"courtHearingLocation":"DVLA003","dateOfHearing":"2025-08-10","timeOfHearing":"09:45:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN789012","pncIdentifier":"3370/3259786O","prosecutorCosts":"500.00","croNumber":"SF40/531162N","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":3,"address":{"address1":"789 Oak Avenue","address2":"Suite 2A","postcode":"LM2 3AP"}},"individual":{"nameDetails":{"title":"Mr","forename":"Daniel","surname":"Brown"},"dateOfBirth":"1995-03-11","gender":1,"nationality":"GBR","observedEthnicity":1,"ethnicity":"A1","driverNumber":"QEBE12023038XOFX","nationalInsuranceNumber":"EE987654A","custodyStatus":"B","occupation":"Electrician","occupationCode":54321},"offences":[{"offenceDetails":{"cjsOffenceCode":"BL21001","offenceSequenceNo":1,"offenceCommittedDate":"2025-07-05","offenceDateCode":1,"offenceLocation":"Birmingham","vehicleRegistrationMark":"CD34DEF","vehicleMake":"Mercedes","alcoholRelatedOffence":{"alcoholOrDrugLevelMethod":"B","alcoholOrDrugLevelAmount":75},"offenceWording":"Driving under the influence of alcohol above the legal limit","prosecutorCompensation":"700.00"},"chargeDate":"2025-07-10","arrestDate":"2025-07-09"}]}]}},"RSPCA - Animal Neglect":{"summary":"RSPCA - Animal Neglect","value":{"prosecutionSubmissionDetails":{"urn":"RSPCA12345678","prosecutingAuthority":"GABSY01","informant":"Sarah White","caseMarker":"HT","hearingDetails":{"courtHearingLocation":"RSPCA01","dateOfHearing":"2025-09-12","timeOfHearing":"11:00:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN789456","pncIdentifier":"9392/2602468p","prosecutorCosts":"300.00","croNumber":"082722/09N","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":0,"address":{"address1":"10 Rose Lane","address2":"Apt 2B","postcode":"RG1 5YZ"}},"individual":{"nameDetails":{"title":"Ms","forename":"Rebecca","surname":"Wilson"},"dateOfBirth":"1987-02-15","gender":2,"nationality":"GBR","observedEthnicity":3,"ethnicity":"B2","custodyStatus":"R","occupation":"Veterinary Assistant","occupationCode":56789},"offences":[{"offenceDetails":{"cjsOffenceCode":"AP62001","offenceSequenceNo":1,"offenceCommittedDate":"2025-08-01","offenceDateCode":1,"offenceLocation":"Oxford","offenceWording":"Failure to provide adequate food, water, and shelter for an animal in care.","prosecutorCompensation":"500.00"},"chargeDate":"2025-08-10","arrestDate":"2025-08-09"}]}]}},"RSPCA - Animal Cruelty":{"summary":"RSPCA - Animal Cruelty","value":{"prosecutionSubmissionDetails":{"urn":"RSPCA87654321","prosecutingAuthority":"GABSY01","informant":"Thomas Green","caseMarker":"HT","hearingDetails":{"courtHearingLocation":"RSPCA02","dateOfHearing":"2025-10-05","timeOfHearing":"14:30:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN321789","pncIdentifier":"4647/7323287F","prosecutorCosts":"400.00","croNumber":"641044/34Q","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":1,"address":{"address1":"22 Oak Street","address2":"Flat 4C","postcode":"M1 2AB"}},"individual":{"nameDetails":{"title":"Mr","forename":"William","surname":"Taylor"},"dateOfBirth":"1975-06-30","gender":1,"nationality":"GBR","observedEthnicity":1,"ethnicity":"A1","custodyStatus":"B","occupation":"Carpenter","occupationCode":23456},"offences":[{"offenceDetails":{"cjsOffenceCode":"AW06034","offenceSequenceNo":1,"offenceCommittedDate":"2025-09-20","offenceDateCode":1,"offenceLocation":"Manchester","offenceWording":"Causing unnecessary suffering to an animal by physical abuse.","prosecutorCompensation":"600.00"},"chargeDate":"2025-09-25","arrestDate":"2025-09-24"}]}]}},"RSPCA - Illegal Dog Fighting":{"summary":"RSPCA - Illegal Dog Fighting","value":{"prosecutionSubmissionDetails":{"urn":"RSPCA44556677","prosecutingAuthority":"GABSY01","informant":"Emily Carter","caseMarker":"HT","hearingDetails":{"courtHearingLocation":"RSPCA03","dateOfHearing":"2025-11-10","timeOfHearing":"09:15:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN654123","pncIdentifier":"5197/97620665","prosecutorCosts":"700.00","croNumber":"788090/70c","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":2,"address":{"address1":"55 Maple Drive","address2":"House 1","postcode":"L2 3WD"}},"individual":{"nameDetails":{"title":"Mr","forename":"David","surname":"Anderson"},"dateOfBirth":"1980-12-12","gender":1,"nationality":"GBR","observedEthnicity":2,"ethnicity":"W2","custodyStatus":"B","occupation":"Warehouse Manager","occupationCode":34567},"offences":[{"offenceDetails":{"cjsOffenceCode":"DD91001","offenceSequenceNo":1,"offenceCommittedDate":"2025-10-25","offenceDateCode":1,"offenceLocation":"Liverpool","offenceWording":"Organizing and promoting illegal dog fighting.","prosecutorCompensation":"1000.00"},"chargeDate":"2025-10-30","arrestDate":"2025-10-29"}]}]}},"Local Council - Fly-Tipping":{"summary":"Local Council - Fly-Tipping","value":{"prosecutionSubmissionDetails":{"urn":"COUNCIL12345678","prosecutingAuthority":"GABSY01","informant":"John Barnes","caseMarker":"HT","hearingDetails":{"courtHearingLocation":"LOCAL01","dateOfHearing":"2025-09-15","timeOfHearing":"10:00:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN777888","pncIdentifier":"8646/48275026","prosecutorCosts":"350.00","croNumber":"SF67/3924464","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":0,"address":{"address1":"5 Greenway Lane","address2":"Apartment 1A","postcode":"NE1 5XY"}},"individual":{"nameDetails":{"title":"Mr","forename":"Andrew","surname":"Bennett"},"dateOfBirth":"1988-07-21","gender":1,"nationality":"GBR","observedEthnicity":2,"ethnicity":"W1","custodyStatus":"R","occupation":"Plumber","occupationCode":56789},"offences":[{"offenceDetails":{"cjsOffenceCode":"DS14065","offenceSequenceNo":1,"offenceCommittedDate":"2025-08-10","offenceDateCode":1,"offenceLocation":"Newcastle","offenceWording":"Dumping waste illegally in a public area.","prosecutorCompensation":"400.00"},"chargeDate":"2025-08-20","arrestDate":"2025-08-19"}]}]}},"Local Council - Littering":{"summary":"Local Council - Littering","value":{"prosecutionSubmissionDetails":{"urn":"COUNCIL87654321","prosecutingAuthority":"GABSY01","informant":"Lisa Carter","caseMarker":"HT","hearingDetails":{"courtHearingLocation":"LOCAL02","dateOfHearing":"2025-10-22","timeOfHearing":"13:30:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN999888","pncIdentifier":"9200/1698711k","prosecutorCosts":"150.00","croNumber":"564660/47f","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":0,"address":{"address1":"15 High Street","address2":"Flat 2C","postcode":"W1 4RT"}},"individual":{"nameDetails":{"title":"Ms","forename":"Sophie","surname":"Clarke"},"dateOfBirth":"1995-11-30","gender":2,"nationality":"GBR","observedEthnicity":3,"ethnicity":"B2","custodyStatus":"B","occupation":"Shop Assistant","occupationCode":34567},"offences":[{"offenceDetails":{"cjsOffenceCode":"EP90046","offenceSequenceNo":1,"offenceCommittedDate":"2025-09-05","offenceDateCode":1,"offenceLocation":"London","offenceWording":"Throwing litter on the street without disposing of it properly.","prosecutorCompensation":"200.00"},"chargeDate":"2025-09-15","arrestDate":"2025-09-14"}]}]}},"Local Council - Noise Complaint Violation":{"summary":"Local Council - Noise Complaint Violation","value":{"prosecutionSubmissionDetails":{"urn":"COUNCIL11223344","prosecutingAuthority":"GABSY01","informant":"Mark Stevenson","caseMarker":"HT","hearingDetails":{"courtHearingLocation":"LOCAL03","dateOfHearing":"2025-11-30","timeOfHearing":"16:00:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN111222","pncIdentifier":"5545/0640076l","prosecutorCosts":"500.00","croNumber":"SF53/839303d","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":1,"address":{"address1":"25 Baker Street","address2":"Suite 4B","postcode":"SW1A 1AA"}},"individual":{"nameDetails":{"title":"Mr","forename":"Robert","surname":"Mason"},"dateOfBirth":"1982-03-18","gender":1,"nationality":"GBR","observedEthnicity":1,"ethnicity":"A1","custodyStatus":"R","occupation":"Musician","occupationCode":67890},"offences":[{"offenceDetails":{"cjsOffenceCode":"HA14038","offenceSequenceNo":1,"offenceCommittedDate":"2025-10-10","offenceDateCode":1,"offenceLocation":"Birmingham","offenceWording":"Playing loud music repeatedly after warnings from local authorities.","prosecutorCompensation":"600.00"},"chargeDate":"2025-10-20","arrestDate":"2025-10-19"}]}]}},"Public Transport - Fare Evasion":{"summary":"Public Transport - Fare Evasion","value":{"prosecutionSubmissionDetails":{"urn":"TRANSPORT12345678","prosecutingAuthority":"GABSY01","informant":"David Foster","caseMarker":"HT","hearingDetails":{"courtHearingLocation":"TRNSP01","dateOfHearing":"2025-09-25","timeOfHearing":"09:30:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN543210","pncIdentifier":"7947/94167006","prosecutorCosts":"100.00","croNumber":"909942/25t","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":0,"address":{"address1":"8 Queen Street","address2":"Flat 3D","postcode":"SE1 9LT"}},"individual":{"nameDetails":{"title":"Mr","forename":"Kevin","surname":"Wright"},"dateOfBirth":"1999-08-11","gender":1,"nationality":"GBR","observedEthnicity":2,"ethnicity":"W1","custodyStatus":"R","occupation":"Student","occupationCode":98765},"offences":[{"offenceDetails":{"cjsOffenceCode":"RL05038","offenceSequenceNo":1,"offenceCommittedDate":"2025-08-20","offenceDateCode":1,"offenceLocation":"London Underground","offenceWording":"Travelling without a valid ticket.","prosecutorCompensation":"120.00"},"chargeDate":"2025-08-25","arrestDate":"2025-08-24"}]}]}},"Public Transport - Vandalism of Public Transport Property":{"summary":"Public Transport - Vandalism of Public Transport Property","value":{"prosecutionSubmissionDetails":{"urn":"TRANSPORT87654321","prosecutingAuthority":"GABSY01","informant":"Lucy Adams","caseMarker":"HT","hearingDetails":{"courtHearingLocation":"TRNSP02","dateOfHearing":"2025-10-12","timeOfHearing":"15:00:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN222333","pncIdentifier":"5401/2805442n","prosecutorCosts":"450.00","croNumber":"SF11/7572376","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":1,"address":{"address1":"12 Bridge Road","address2":"Apt 5E","postcode":"WC1A 2AD"}},"individual":{"nameDetails":{"title":"Mr","forename":"Ryan","surname":"Hall"},"dateOfBirth":"1991-12-03","gender":1,"nationality":"GBR","observedEthnicity":1,"ethnicity":"A1","custodyStatus":"B","occupation":"Graphic Designer","occupationCode":54321},"offences":[{"offenceDetails":{"cjsOffenceCode":"AS03016","offenceSequenceNo":1,"offenceCommittedDate":"2025-09-15","offenceDateCode":1,"offenceLocation":"Manchester Bus Station","offenceWording":"Spray-painting graffiti on public transport property.","prosecutorCompensation":"500.00"},"chargeDate":"2025-09-20","arrestDate":"2025-09-19"}]}]}},"Public Transport - Drunk and Disorderly on Public Transport":{"summary":"Public Transport - Drunk and Disorderly on Public Transport","value":{"prosecutionSubmissionDetails":{"urn":"TRANSPORT55667788","prosecutingAuthority":"GABSY01","informant":"Olivia Brown","caseMarker":"HT","hearingDetails":{"courtHearingLocation":"TRNSP03","dateOfHearing":"2025-12-15","timeOfHearing":"18:45:00"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"ASN987654","pncIdentifier":"5275/6583047s","prosecutorCosts":"300.00","croNumber":"699695/68R","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":1,"address":{"address1":"23 Victoria Street","address2":"Flat 6A","postcode":"EC1A 4HY"}},"individual":{"nameDetails":{"title":"Mr","forename":"Jack","surname":"Thompson"},"dateOfBirth":"1993-04-29","gender":1,"nationality":"GBR","observedEthnicity":2,"ethnicity":"W1","custodyStatus":"B","occupation":"Bartender","occupationCode":87654},"offences":[{"offenceDetails":{"cjsOffenceCode":"CJ67002","offenceSequenceNo":1,"offenceCommittedDate":"2025-11-20","offenceDateCode":1,"offenceLocation":"London Underground Station","offenceWording":"Being drunk and disorderly on public transport, causing a disturbance.","prosecutorCompensation":"350.00"},"chargeDate":"2025-11-25","arrestDate":"2025-11-24"}]}]}}}},"application/vnd.hmcts.cjs.requisition-prosecution.v2+json":{"schema":{"type":"object","properties":{"prosecutionSubmissionDetails":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"prosecutingAuthority":{"type":"string","description":"Identifies the Prosecuting Organisation responsible for initiating the case. Valid CJS OU Code.","pattern":"^[a-zA-Z0-9-]*$","minLength":7,"maxLength":7},"informant":{"type":"string","description":"Name of the person to be named as the informant in this case.","maxLength":92},"hearingDetails":{"type":"object","properties":{"courtHearingLocation":{"type":"string","description":"The OUCODE of the courthouse","minLength":1,"maxLength":7},"dateOfHearing":{"description":"The date of the hearing","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"timeOfHearing":{"type":"string","description":"The actual start time of the hearing"}},"required":["courtHearingLocation","dateOfHearing","timeOfHearing"]},"urn":{"description":"The unique reference number from the prosecuting authority","title":"URN","type":"string","pattern":"^[a-zA-Z0-9-]*$","maxLength":36},"caseMarker":{"type":"string","maxLength":10,"description":"To be populated if a CJS agreed Case Marker applies. Multiple values to be separated by a space"},"writtenChargePostingDate":{"description":"Date on which notice was posted to the defendant.","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"}},"required":["prosecutingAuthority","hearingDetails","urn","writtenChargePostingDate"],"additionalProperties":false},"defendants":{"type":"array","minItems":1,"items":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"defendantDetails":{"type":"object","description":"Defendant Details of the case","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"prosecutorDefendantId":{"description":"DefendantId provided by prosecutor.","type":"string","pattern":"^[a-zA-Z0-9-]*$","maxLength":36},"asn":{"type":"string","description":"Arrest / Summons number","maxLength":20},"pncIdentifier":{"description":"person/organisation pnc identifier.","type":"string","pattern":"^(?!0{4}|0{3}|0{2}}|0{1})([0-9][0-9]{3})([\\/])([0-9]{7})([a-zA-Z]|[0-9])$","maxLength":13},"croNumber":{"description":"Criminal Records Office Number","type":"string","pattern":"^(([S][F])(\\d{2})([/])([0-9]{6})([a-zA-Z]|[0-9])|(\\d{6})([/])(\\d{2})([a-zA-Z]|[0-9]{1}))$","maxLength":12},"documentationLanguage":{"type":"string","description":"Identifies the language to be used, values E or W (English or Welsh)","enum":["E","W"],"default":"E"},"hearingLanguage":{"type":"string","description":"Identifies the language to be used, values E or W (English or Welsh)","enum":["E","W"],"default":"E"},"address":{"type":"object","description":"Address","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"address1":{"type":"string","description":"Address Line 1 for the defendant","minLength":1,"maxLength":35},"address2":{"type":"string","description":"Address Line 2 for the defendant","maxLength":35},"address3":{"type":"string","description":"Address Line 3 for the defendant","maxLength":35},"address4":{"type":"string","description":"Address Line 4 for the defendant","maxLength":35},"address5":{"type":"string","description":"Address Line 5 for the defendant","maxLength":35},"postcode":{"description":"UK Post Code (CGS DSC 5.25)","type":"string","pattern":"^(([gG][iI][rR] {0,}0[aA]{2})|(([aA][sS][cC][nN]|[sS][tT][hH][lL]|[tT][dD][cC][uU]|[bB][bB][nN][dD]|[bB][iI][qQ][qQ]|[fF][iI][qQ][qQ]|[pP][cC][rR][nN]|[sS][iI][qQ][qQ]|[iT][kK][cC][aA]) {0,}1[zZ]{2})|((([a-pr-uwyzA-PR-UWYZ][a-hk-yxA-HK-XY]?[0-9][0-9]?)|(([a-pr-uwyzA-PR-UWYZ][0-9][a-hjkstuwA-HJKSTUW])|([a-pr-uwyzA-PR-UWYZ][a-hk-yA-HK-Y][0-9][abehmnprv-yABEHMNPRV-Y]))) {0,}[0-9][abd-hjlnp-uw-zABD-HJLNP-UW-Z]{2}))$","maxLength":8}},"required":["address1"],"additionalProperties":false},"numPreviousConvictions":{"type":"integer","description":"Number of previous conviction cited by prosecutor."},"prosecutorCosts":{"description":"Prosecution costs claimed by prosecutor.","type":"string","pattern":"^(\\+)?([0-9]{1,16})\\.([0-9]{2})$"}},"required":["prosecutorDefendantId","documentationLanguage","hearingLanguage","address"],"additionalProperties":false},"individual":{"type":"object","description":"Requisition individual details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"nameDetails":{"type":"object","description":"Individual name details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"title":{"type":"string","description":"Title by which a person is addressed"},"forename":{"type":"string","description":"Given Name (CJS DSC v5 3.50)","maxLength":35,"pattern":"^(?!.*  ).+"},"forename2":{"type":"string","description":"The second given name of a person, e.g. Ian","maxLength":35},"forename3":{"type":"string","description":"The third given name of a person, e.g. Barry","maxLength":35},"surname":{"type":"string","description":"Surname or Family name, e.g. Brown (CJS DSC v5 3.39 Family Name)","maxLength":35,"pattern":"^(?!.*  ).+"}},"required":["forename","surname"],"additionalProperties":false},"contactDetails":{"type":"object","description":"Contact Details of the individual","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"workTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A work telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"homeTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A home telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"mobileTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A mobile number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"primaryEmail":{"description":"The identification of the first e-mail address.","type":"string","pattern":"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"},"secondaryEmail":{"description":"The identification of the second e-mail address.","type":"string","pattern":"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"}},"additionalProperties":false},"nationality":{"type":"string","description":"Country of origin as stated by the defendant, as per CJS Standards section 3.103","maxLength":3},"additionalNationality":{"type":"string","description":"Additional country of origin as stated by the defendant, as per CJS Standards section 3.103","maxLength":3},"dateOfBirth":{"description":"The date when a person was born.","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"gender":{"description":"See CJS Standards (3.45)Mandatory if defendant is a person.Otherwise field must be null, e.g., organisation. 0=Not Known1=Male2=Female9=Not specified","type":"integer","maxLength":1,"enum":[0,1,2,9]},"occupation":{"type":"string","description":"The description of an occupation.","maxLength":54},"occupationCode":{"type":"integer","minLength":1,"maxLength":5,"description":"An occupation code"},"ethnicity":{"type":"string","description":"Ethnicity Self Defined Code"},"driverNumber":{"type":"string","description":"Driver number for DVLA case","pattern":"^([A-Z0-9]{5}\\d[0156]\\d([0][1-9]|[12]\\d|3[01])\\d[A-Z0-9]{3}[A-Z]{2}$)"},"nationalInsuranceNumber":{"type":"string","description":"National Insurance Number (CGS DSC 5.15)","minLength":9,"maxLength":9,"pattern":"^(?!BG)(?!GB)(?!NK)(?!KN)(?!TN)(?!NT)(?!ZZ)[A-CEGHJ-PR-TW-Z][A-CEGHJ-NPR-TW-Z][0-9][0-9][0-9][0-9][0-9][0-9][A-D ]$"},"parentGuardian":{"type":"object","description":"Person details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"organisation":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"organisationName":{"type":"string","description":"Name of an organisation, e.g., Marks and Spencer.","maxLength":255},"companyTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":""}},"required":["organisationName"],"additionalProperties":false},"individual":{"type":"object","description":"Person details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"nameDetails":{"type":"object","description":"Person details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"title":{"type":"string","description":"Title by which a person is addressed"},"forename":{"type":"string","description":"Given Name (CJS DSC v5 3.50)","maxLength":35,"pattern":"^(?!.*  ).+"},"forename2":{"type":"string","description":"The second given name of a person, e.g. Ian","maxLength":35},"forename3":{"type":"string","description":"The third given name of a person, e.g. Barry","maxLength":35},"surname":{"type":"string","description":"Surname or Family name, e.g. Brown (CJS DSC v5 3.39 Family Name)","maxLength":35,"pattern":"^(?!.*  ).+"}},"required":["surname"],"additionalProperties":false},"contactDetails":{"type":"object","description":"Contact Details of the individual","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"workTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A work telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"homeTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A home telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"mobileTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":"A mobile number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means."},"primaryEmail":{"description":"The identification of the first e-mail address.","type":"string","pattern":"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"},"secondaryEmail":{"description":"The identification of the second e-mail address.","type":"string","pattern":"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"}},"additionalProperties":false},"dateOfBirth":{"description":"The date when a person was born.","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"gender":{"description":"See CJS Standards (3.45)Mandatory if defendant is a person.Otherwise field must be null, e.g., organisation. 0=Not Known1=Male2=Female9=Not specified","type":"integer","maxLength":1,"enum":[0,1,2,9]},"observedEthnicity":{"type":"number","description":"","minLength":1,"maxLength":1},"selfDefinedEthnicity":{"type":"string","description":"Ethnicity Self Defined Code"}},"required":["nameDetails","gender"],"additionalProperties":false},"address":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"address1":{"type":"string","description":"Address Line 1 for the defendant","minLength":1,"maxLength":35},"address2":{"type":"string","description":"Address Line 2 for the defendant","maxLength":35},"address3":{"type":"string","description":"Address Line 3 for the defendant","maxLength":35},"address4":{"type":"string","description":"Address Line 4 for the defendant","maxLength":35},"address5":{"type":"string","description":"Address Line 5 for the defendant","maxLength":35},"postcode":{"description":"UK Post Code (CGS DSC 5.25)","type":"string","pattern":"^(([gG][iI][rR] {0,}0[aA]{2})|(([aA][sS][cC][nN]|[sS][tT][hH][lL]|[tT][dD][cC][uU]|[bB][bB][nN][dD]|[bB][iI][qQ][qQ]|[fF][iI][qQ][qQ]|[pP][cC][rR][nN]|[sS][iI][qQ][qQ]|[iT][kK][cC][aA]) {0,}1[zZ]{2})|((([a-pr-uwyzA-PR-UWYZ][a-hk-yxA-HK-XY]?[0-9][0-9]?)|(([a-pr-uwyzA-PR-UWYZ][0-9][a-hjkstuwA-HJKSTUW])|([a-pr-uwyzA-PR-UWYZ][a-hk-yA-HK-Y][0-9][abehmnprv-yABEHMNPRV-Y]))) {0,}[0-9][abd-hjlnp-uw-zABD-HJLNP-UW-Z]{2}))$","maxLength":8}},"required":["address1"],"additionalProperties":false}},"oneOf":[{"required":["individual","address"]},{"required":["organisation","address"]}],"additionalProperties":false},"aliases":{"type":"array","items":{"type":"object","description":"Individual name details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"title":{"type":"string","description":"Title by which a person is addressed"},"forename":{"type":"string","description":"Given Name (CJS DSC v5 3.50)","maxLength":35,"pattern":"^(?!.*  ).+"},"forename2":{"type":"string","description":"The second given name of a person, e.g. Ian","maxLength":35},"forename3":{"type":"string","description":"The third given name of a person, e.g. Barry","maxLength":35},"surname":{"type":"string","description":"Surname or Family name, e.g. Brown (CJS DSC v5 3.39 Family Name)","maxLength":35,"pattern":"^(?!.*  ).+"}},"required":["forename","surname"],"additionalProperties":false}},"languageRequirement":{"type":"string","description":"Notes about the defendant’s language needs, e.g. interpreter details","maxLength":150},"specificRequirements":{"type":"string","description":"Notes about any help that the defendant may need when attending court – e.g. wheelchair access.","maxLength":150}},"required":["nameDetails","gender"],"additionalProperties":false},"organisation":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"organisationName":{"type":"string","description":"Name of an organisation, e.g., Marks and Spencer.","maxLength":255},"companyTelephoneNumber":{"pattern":"^[0-9+ \\\\-]{10,}$","description":""},"aliasOrganisationNames":{"description":"Also known as company name.","type":"array","minItems":1,"pattern":"^[a-zA-Z0-9-]*$","maxLength":80,"items":{"type":"string"}}},"required":["organisationName"],"additionalProperties":false},"offences":{"type":"array","minItems":1,"items":{"type":"object","description":"Offences","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"offenceDetails":{"type":"object","description":"","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"cjsOffenceCode":{"type":"string","description":"Identifies the CJS code applicable to criminal offences as per the CJS Standard section 3.11","maxLength":8},"offenceSequenceNo":{"type":"integer","description":"Sequence number of the offence","minimum":1,"maxLength":3},"offenceCommittedDate":{"description":"","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"offenceDateCode":{"description":"The code for the offence date to be used within the offence wording, 1 = on or in, 2 = before, 3 = after, 4 = between, 5 = on or about and 6 = on or before","type":"integer","enum":[1,2,3,4,5,6]},"offenceCommittedEndDate":{"description":"End date for period in which offence committed","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"offenceLocation":{"type":"string","description":"Offence location","maxLength":80},"vehicleMake":{"type":"string","maxLength":60},"vehicleRegistrationMark":{"type":"string","maxLength":11},"alcoholRelatedOffence":{"type":"object","properties":{"alcoholOrDrugLevelMethod":{"type":"string","description":"","minLength":1,"maxLength":1},"alcoholOrDrugLevelAmount":{"type":"integer","description":"","minimum":0,"maximum":999}},"required":["alcoholOrDrugLevelMethod","alcoholOrDrugLevelAmount"],"additionalProperties":false},"offenceWording":{"type":"string","description":"Details of Information or Charge to be laid before the court","maxLength":2500},"offenceWordingWelsh":{"type":"string","description":"Details of Information or Charge to be laid before the court in Welsh","maxLength":2500},"prosecutorCompensation":{"description":"Compensation claimed by the prosecutor","type":"string","pattern":"^(\\+)?([0-9]{1,16})\\.([0-9]{2})$"},"backDuty":{"description":"Back duty","type":"string","pattern":"^(\\+)?([0-9]{1,16})\\.([0-9]{2})$"},"backDutyDateFrom":{"description":"Start date of the period of unpaid duty","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"backDutyDateTo":{"description":"End date of the period of unpaid duty","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"}},"required":["cjsOffenceCode","offenceSequenceNo","offenceCommittedDate","offenceDateCode","offenceWording"],"additionalProperties":false},"chargeDate":{"description":"The date the defendant was charged","type":"string","format":"date","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"statementOfFacts":{"type":"string","description":"Statement of facts","maxLength":4000},"statementOfFactsWelsh":{"type":"string","description":"Statement of facts welsh","maxLength":4000}},"required":["offenceDetails","chargeDate"],"additionalProperties":false}}},"oneOf":[{"required":["defendantDetails","individual","offences"]},{"required":["defendantDetails","organisation","offences"]}],"additionalProperties":false}}},"required":["prosecutionSubmissionDetails","defendants"],"additionalProperties":false},"examples":{"Generated":{"summary":"Generated example","value":{"prosecutionSubmissionDetails":{"urn":"URNWARNIAdi","prosecutingAuthority":"GABSY01","writtenChargePostingDate":"2019-09-01","informant":"Adam","caseMarker":"HT","hearingDetails":{"courtHearingLocation":"B01BH00","dateOfHearing":"2019-09-25","timeOfHearing":"09:01:01.001"}},"defendants":[{"defendantDetails":{"prosecutorDefendantId":"6c55a0ab-3a6f-4ef6-8a06-538dbc0e8aa9","asn":"SummonsNumber001","pncIdentifier":"6650/7070600G","prosecutorCosts":"20.99","croNumber":"997366/51j","hearingLanguage":"E","documentationLanguage":"E","numPreviousConvictions":3,"address":{"address1":"Address Line 1","address2":"Address Line 2","address3":"Address Line 3","address4":"Address Line 4","address5":"Address Line 5","postcode":"CR7 1XX"}},"individual":{"languageRequirement":"no special language needs","specificRequirements":"no special needs","nameDetails":{"title":"Mr","forename":"John","forename2":"Adam","forename3":"Theodore","surname":"SMITH"},"contactDetails":{"workTelephoneNumber":"1231231230","homeTelephoneNumber":"1231231230","mobileTelephoneNumber":"1231231230","primaryEmail":"aer@af.com","secondaryEmail":"aer@af.com"},"parentGuardian":{"individual":{"nameDetails":{"title":"Mr","forename":"parentGuardianJack","forename2":"parentGuardianAaron","forename3":"Sr","surname":"parentGuardianReaper"},"contactDetails":{"workTelephoneNumber":"9991231230","homeTelephoneNumber":"9991231230","mobileTelephoneNumber":"9991231230","primaryEmail":"999aer@test.com","secondaryEmail":"999aer@test.com"},"dateOfBirth":"1979-05-23","gender":1,"observedEthnicity":4,"selfDefinedEthnicity":"W1"},"address":{"address1":"ParentGAddress Line 1","address2":"ParentGAddress Line 2","address3":"ParentGAddress Line 3","address4":"ParentGAddress Line 4","address5":"ParentG Address Line 5","postcode":"PG7 1XX"}},"aliases":[{"title":"Mr","forename":"AliasJack","forename2":"AliasAaron","forename3":"Sr","surname":"AliasReaper"},{"title":"Mr","forename":"Alias2Jack","forename2":"Alias2Aaron","forename3":"Mr","surname":"Alias2Reaper"}],"dateOfBirth":"1970-02-03","ethnicity":"W1","nationality":"GBR","additionalNationality":"POL","gender":1,"occupation":"TA","occupationCode":666,"driverNumber":"TE3LQ505109QDKSP","nationalInsuranceNumber":"SA112233C"},"offences":[{"offenceDetails":{"cjsOffenceCode":"CA03013","offenceSequenceNo":1,"offenceCommittedDate":"2019-02-19","offenceCommittedEndDate":"2020-06-11","alcoholRelatedOffence":{"alcoholOrDrugLevelMethod":"C","alcoholOrDrugLevelAmount":2},"offenceDateCode":6,"offenceLocation":"Croydon","offenceWording":"Test Prosecution charge wording","offenceWordingWelsh":"Test Prosecution charge wording in Welsh","prosecutorCompensation":"99.99","backDuty":"+340.99","backDutyDateFrom":"2018-04-09","backDutyDateTo":"2018-05-09"},"chargeDate":"2019-08-17","statementOfFacts":"this is english","statementOfFactsWelsh":"this is Welsh"}]}]}}}}}},"responses":{"202":{"description":"Accepted. Response contains details of the status of the request for this submission - ids required to check the status of the request","content":{"application/json":{"schema":{"type":"object","properties":{"statusURL":{"type":"string"},"submissionId":{"type":"string","format":"uuid"}},"additionalProperties":false,"required":["statusURL","submissionId"]},"example":{"statusURL":"https://www.dummy.gov.uk/foo/bar/8191c165-e9e4-4fd7-ac6d-5bfd04690f77","submissionId":"8191c165-e9e4-4fd7-ac6d-5bfd04690f77"}}}},"400":{"description":"Bad Request"}}}},"/prosecutions/{caseURN}/materials":{"post":{"summary":"Submit materials operation","description":"Upload a document and associate with an existing submitted case.","tags":["Submitting Case Info"],"parameters":[{"in":"path","name":"caseURN","description":"The unique reference number from the prosecuting authority. Matches the URN used for case submission","schema":{"type":"string"},"required":true}],"requestBody":{"description":"Prosecution Case Details","required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"material":{"description":"The uploaded material in binary format","type":"string","format":"binary"},"materialType":{"description":"Defines the type of material being uploaded","type":"string"},"defendantId":{"description":"An optional reference to the identity of the defendant within this prosecution case","type":"string"},"prosecutingAuthority":{"description":"The prosecutors CJS Organisation Code","type":"string"}},"required":["material","materialType","prosecutingAuthority"]}}}},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"type":"object","properties":{"statusURL":{"type":"string"},"submissionId":{"type":"string","format":"uuid"}},"additionalProperties":false,"required":["statusURL","submissionId"]},"example":{"statusURL":"https://www.dummy.gov.uk/foo/bar/8191c165-e9e4-4fd7-ac6d-5bfd04690f77","submissionId":"8191c165-e9e4-4fd7-ac6d-5bfd04690f77"}}}},"400":{"description":"Bad Request"}}}},"/submissions/{submissionId}":{"get":{"summary":"Get Submission Operation","description":"Retrieve an existing submission.","tags":["Retrieve Submitted Info"],"parameters":[{"in":"path","name":"submissionId","description":"Obtained via the Submit Prosecution operation response","schema":{"type":"string","format":"uuid"},"required":true}],"responses":{"200":{"description":"OK. Response contains the current status of the submission","content":{"application/vnd.hmcts.cjs.sjp.submission.v2+json":{"schema":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"id":{"type":"string","pattern":"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"},"status":{"type":"string","enum":["PENDING","FAILED","REJECTED","SUCCESS","SUCCESS_WITH_WARNINGS"]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","minLength":1},"values":{"type":"array","items":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"id":{"type":"string"},"key":{"type":"string","minLength":1},"value":{"type":"string"}},"required":["key","value"]}}},"required":["code","values"],"additionalProperties":false}},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","minLength":1},"values":{"type":"array","items":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"id":{"type":"string"},"key":{"type":"string","minLength":1},"value":{"type":"string"}},"required":["key","value"]}}},"required":["code","values"],"additionalProperties":false}}}},"example":{"id":"cedb215e-9297-4799-9a4d-5c608eaa4131","status":"REJECTED","warnings":[],"errors":[{"code":"DEFENDANT_DOB_IN_FUTURE","values":[{"key":"dateOfBirth","value":"2000-01-01"}]}]}},"application/vnd.hmcts.cjs.submission.v2+json":{"schema":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["PENDING","FAILED","REJECTED","SUCCESS","SUCCESS_WITH_WARNINGS"]},"caseWarnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","minLength":1},"values":{"type":"array","items":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"id":{"type":"string"},"key":{"type":"string","minLength":1},"value":{"type":"string"}},"required":["key","value"]}}},"required":["code","values"],"additionalProperties":false}},"defendantWarnings":{"type":"array","items":{"type":"object","properties":{"prosecutorDefendantReference":{"type":"string"},"problems":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","minLength":1},"values":{"type":"array","items":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"id":{"type":"string"},"key":{"type":"string","minLength":1},"value":{"type":"string"}},"required":["key","value"]}}},"required":["code","values"],"additionalProperties":false}}},"required":["prosecutorDefendantReference","problems"],"additionalProperties":false}},"caseErrors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","minLength":1},"values":{"type":"array","items":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"id":{"type":"string"},"key":{"type":"string","minLength":1},"value":{"type":"string"}},"required":["key","value"]}}},"required":["code","values"],"additionalProperties":false}},"defendantErrors":{"type":"array","items":{"type":"object","properties":{"prosecutorDefendantReference":{"type":"string"},"problems":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","minLength":1},"values":{"type":"array","items":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"id":{"type":"string"},"key":{"type":"string","minLength":1},"value":{"type":"string"}},"required":["key","value"]}}},"required":["code","values"],"additionalProperties":false}}},"required":["prosecutorDefendantReference","problems"],"additionalProperties":false}}}},"example":{"id":"d66b8daa-ae7b-4bf0-a46f-475272251d05","status":"SUCCESS_WITH_WARNINGS","type":"PROSECUTION","caseWarnings":[],"caseErrors":[],"defendantWarnings":[{"problems":[{"code":"OFFENCE_OUT_OF_TIME","values":[{"key":"daysOverdue","value":"1"}]}],"prosecutorDefendantReference":"DEFENDANTID1"}],"defendantErrors":[],"receivedAt":"2019-09-19T08:14:36.674Z[UTC]","completedAt":"2019-09-19T08:14:42.965Z[UTC]"}}}},"400":{"description":"Bad Request"}}}},"/results":{"get":{"summary":"Get case / application results","description":"Retrieve results related to case and applications","tags":["Retrieve case and/or application results"],"parameters":[{"in":"query","name":"startdate","description":"Start date for results to be returned format YYYY-MM-DD","schema":{"type":"string"},"required":true},{"in":"query","name":"enddate","description":"End date (optional) for results to be returned format YYYY-MM-DD. If end date is note specified, only results pertaining to the start date will be returned ","schema":{"type":"string"},"required":false}],"responses":{"200":{"description":"OK. Response contains the current status of the submission","content":{"application/vnd.hmcts.results.v1+json":{"schema":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"startDate":{"$ref":"#/components/schemas/DatePattern"},"endDate":{"$ref":"#/components/schemas/DatePattern"},"prosecutionAuthorityId":{"$ref":"#/components/schemas/Uuid"},"prosecutionAuthorityCode":{"description":"The prosecuting authority reference data code","type":"string"},"prosecutionAuthorityName":{"type":"string","description":"The name of the prosecution authority from reference data.  Required for documentation purposes.  Required to be enriched when publishing hearing results"},"majorCreditorCode":{"type":"string"},"hearingVenues":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/HearingVenue"}},"warnings":{"type":"array","description":"Warnings associated with the results. A successful response may still contain warnings.","items":{"type":"object","properties":{"code":{"type":"string","minLength":1,"description":"Warning code indicating the nature of the warning:\n- DEFENDANT_UNDER_18_YEARS_AT_CHARGE_DATE: Returned when the defendant was under 18 at the time of charge. Attributes: dateOfBirth, chargeDate\n- OFFENCE_OUT_OF_TIME: Returned when the difference between the charge date and the offence committed date exceeds the prosecution time limit. Attributes: daysOverdue\n- OFFENCE_NOT_IN_EFFECT_ON_OFFENCE_COMMITTED_DATE: Returned when the offence was not in effect at the time the offence was committed. Attributes: offenceCode, offenceCommittedDate, offenceStartDate, offenceEndDate\n- IMPRISONABLE_OFFENCE: Returned when the offence is imprisonable. Attributes: offenceCode\n","enum":["DEFENDANT_UNDER_18_YEARS_AT_CHARGE_DATE","OFFENCE_OUT_OF_TIME","OFFENCE_NOT_IN_EFFECT_ON_OFFENCE_COMMITTED_DATE","IMPRISONABLE_OFFENCE"]},"values":{"type":"array","description":"Key-value pairs providing additional context for the warning","items":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"id":{"type":"string"},"key":{"type":"string","minLength":1},"value":{"type":"string"}},"required":["key","value"]}}},"required":["code","values"],"additionalProperties":false}}},"required":["startDate","prosecutionAuthorityId","prosecutionAuthorityCode"]},"example":{"hearingVenues":[{"courtHouse":"Lavender Hill Magistrates' Court","courtSessions":[{"courtRoom":"N/A","defendants":[{"address1":"Flat 1, Armageddon House","address2":"13 Old Road","address3":"Giggleswick","address4":"Merton","address5":"London","dateOfBirth":"1998-09-18","firstName":"Adult Adult Offender","lastName":"Smith","name":"Adult Adult Offender Smith","postCode":"SW11 5TQ","prosecutionCasesOrApplications":[{"caseOrApplicationReference":"TVL72301372","offences":[{"offenceCode":"CA03011","offenceResults":[{"cjsResultCode":"1015","resultText":"Fine\nAmount of fine 147"},{"cjsResultCode":"3012","resultText":"Compensation\nAmount of compensation 14"}],"offenceTitle":"Possess a television set with intent to install / use without a licence","orderIndex":1,"originatingCaseUrn":"TVL72301372","pleaValue":"GUILTY"},{"offenceCode":"CA03013","offenceResults":[{"cjsResultCode":"1015","resultText":"Fine\nAmount of fine 440"},{"cjsResultCode":"3012","resultText":"Compensation\nAmount of compensation 14"}],"offenceTitle":"Obstruct person executing search warrant for TV receiver","orderIndex":2,"originatingCaseUrn":"TVL72301372","pleaValue":"GUILTY"},{"offenceCode":"CA03011","offenceResults":[{"cjsResultCode":"1018","resultText":"Conditional discharge\nPeriod of conditional discharge 12"},{"cjsResultCode":"3012","resultText":"Compensation\nAmount of compensation 14"}],"offenceTitle":"Possess a television set with intent to install / use without a licence","orderIndex":3,"originatingCaseUrn":"TVL72301372","pleaValue":"GUILTY"}]}],"results":[{"cjsResultCode":"3011","resultText":"Costs\nAmount of costs 11"},{"resultText":"Collection order\nCollection order type Make payments as ordered\nReason for not making an attachment of earnings order or deduction from benefit application No information from defendant"},{"cjsResultCode":"3117","resultText":"Surcharge\nAmount of surcharge 59"},{"resultText":"Payment terms - Instalments only\nInstalment amount 25\nInstalment start date 2021-07-01\nPayment frequency fortnightly"}],"title":"Mr"}],"hearingStartTime":"2021-04-27T10:02:00Z"}],"ljaName":"Lavender Hill Magistrates' Court"}],"prosecutionAuthorityCode":"TVL","prosecutionAuthorityId":"6b7b9adc-ccee-4b13-b2c7-499c28e98962","prosecutionAuthorityName":"TV Licensing","startDate":"2021-04-27","warnings":[{"code":"DEFENDANT_UNDER_18_YEARS_AT_CHARGE_DATE","values":[{"key":"dateOfBirth","value":"2008-03-15"},{"key":"chargeDate","value":"2024-11-01"}]},{"code":"OFFENCE_OUT_OF_TIME","values":[{"key":"daysOverdue","value":"5"}]},{"code":"OFFENCE_NOT_IN_EFFECT_ON_OFFENCE_COMMITTED_DATE","values":[{"key":"offenceCode","value":"CA03011"},{"key":"offenceCommittedDate","value":"2019-01-01"},{"key":"offenceStartDate","value":"2020-06-01"},{"key":"offenceEndDate","value":"2023-12-31"}]},{"code":"IMPRISONABLE_OFFENCE","values":[{"key":"offenceCode","value":"CA03013"}]}]}}}},"400":{"description":"Bad Request","content":{"application/vnd.hmcts.results.v1+json":{"schema":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"errors":{"type":"array","description":"Errors associated with the request","items":{"type":"object","properties":{"code":{"type":"string","minLength":1,"description":"Error code indicating why the request was rejected:\n- DEFENDANT_DOB_IN_FUTURE: Returned when the defendant's date of birth is in the future\n- DUPLICATED_PROSECUTION: Returned when attempting to create a prosecution that already exists on CPP\n- OFFENCE_CODE_IS_INVALID: Returned when the offence code is not recognised as a valid CJS offence code\n- OFFENCE_REQUIRES_A_LOCATION: Returned when an offence location is not provided when the CJS Offence Code full offence wording includes a location element\n- DEFENDANT_NATIONALITY_INVALID: Returned if an invalid value is received for Nationality\n- DEFENDANT_ADDITIONAL_NATIONALITY_INVALID: Returned if an invalid value is received for Additional Nationality\n- INVALID_FILE_TYPE: Returned if the file is not a pdf or word document\n- INVALID_DOCUMENT_TYPE: Returned if the document type is not a valid document type or not SJPN or CITN (for SJP cases)\n- CASE_REFERRED_TO_OPEN_COURT: Returned when attempting to submit a document for a case that has been referred to open court\n- MATERIAL_EXPIRED: Returned when the matching case for the submitted document cannot be found after 10 days from the date of receipt of the request\n- COURT_HEARING_LOCATION_OUCODE_INVALID: Returned when the supplied OUCODE for the court hearing location is not recognised\n- DATE_OF_HEARING_EARLIER_THAN_OFFENCE_COMMITTED_DATE: Returned when the date of hearing is earlier than the date the offence was committed\n- STATEMENT_OF_FACTS_REQUIRED: Returned when the statement of facts is not provided when it is required\n- PROSECUTOR_OUCODE_NOT_RECOGNISED: Returned when an OUCODE that is not recognised by CPP is received in the case submission\n- BAIL_CONDITIONS_REQUIRED: Returned when custody status is \"B\" and bail conditions not provided\n- DEFENDANT_ID_REQUIRED: Returned when a defendant is not provided when it is required\n- ARREST_DATE_IN_FUTURE: Returned when the arrest date is in the future\n- CHARGE_DATE_IN_FUTURE: Returned when the charge date is in the future\n- DATE_OF_HEARING_IN_THE_PAST: Returned when the date of hearing is in the past\n- DEFENDANT_CUSTODY_STATUS_INVALID: Returned when the custody status is not recognised\n- SUMMONS_CODE_INVALID: Returned when the summons code is not recognised\n- DEFENDANT_PARENT_GUARDIAN_DATE_OF_BIRTH_IN_FUTURE: Returned when the date of birth of the parent/guardian is in the future\n- CASE_MARKER_IS_INVALID: Returned when the case marker is not recognised\n- DEFENDANT_SELF_DEFINED_ETHNICITY_INVALID: Returned when the defendant's self defined ethnicity is not recognised\n- DEFENDANT_OBSERVED_ETHNICITY_INVALID: Returned when the defendant's observed ethnicity is not recognised\n- DEFENDANT_PARENT_GUARDIAN_SELF_DEFINED_ETHNICITY_INVALID: Returned when the defendant's parent/guardian self defined ethnicity is not recognised\n- DEFENDANT_PARENT_GUARDIAN_OBSERVED_ETHNICITY_INVALID: Returned when the defendant's parent/guardian observed ethnicity is not recognised\n- ALCOHOL_DRUG_LEVEL_METHOD_MISSING: Returned when the alcohol or drug level method has not been provided and the offence type is of driving with drugs or alcohol in excess of specified limit\n- ALCOHOL_DRUG_LEVEL_AMOUNT_MISSING: Returned when the alcohol or drug level amount has not been provided and the offence type is of driving with drugs or alcohol in excess of specified limit\n- ALCOHOL_DRUG_LEVEL_METHOD_INVALID: Returned when the alcohol or drug level method is not recognised\n- STATEMENT_OF_FACTS_WELSH_REQUIRED: Returned when the document language is Welsh and Summons type is M and statement of facts Welsh is not provided\n- DEFENDANT_ID_INVALID: Returned when the supplied defendant id in Submit Material API does not match a defendant id on the case\n- DUPLICATE_DEFENDANT: Returned when a case has more than one instance of the same defendant based on the prosecutor's defendant ID\n- BACK_DUTY_AMOUNT_MISSING: Returned when the back duty field has not been provided and offence type requires back duty information\n- BACK_DUTY_DATE_RANGE_INVALID: Returned when the back duty from date is earlier than the back duty to date or only 1 date was provided\n- PROSECUTOR_NOT_RECOGNISED_AS_AN_AUTHORISED_SJP_PROSECUTOR: Returned when a case submission is received from a prosecutor not recognised by CPP as an authorised SJP prosecutor\n- CASE_HAS_MORE_THAN_ONE_DEFENDANT: Returned when an SJP case has more than one defendant\n","enum":["DEFENDANT_DOB_IN_FUTURE","DUPLICATED_PROSECUTION","OFFENCE_CODE_IS_INVALID","OFFENCE_REQUIRES_A_LOCATION","DEFENDANT_NATIONALITY_INVALID","DEFENDANT_ADDITIONAL_NATIONALITY_INVALID","INVALID_FILE_TYPE","INVALID_DOCUMENT_TYPE","CASE_REFERRED_TO_OPEN_COURT","MATERIAL_EXPIRED","COURT_HEARING_LOCATION_OUCODE_INVALID","DATE_OF_HEARING_EARLIER_THAN_OFFENCE_COMMITTED_DATE","STATEMENT_OF_FACTS_REQUIRED","PROSECUTOR_OUCODE_NOT_RECOGNISED","BAIL_CONDITIONS_REQUIRED","DEFENDANT_ID_REQUIRED","ARREST_DATE_IN_FUTURE","CHARGE_DATE_IN_FUTURE","DATE_OF_HEARING_IN_THE_PAST","DEFENDANT_CUSTODY_STATUS_INVALID","SUMMONS_CODE_INVALID","DEFENDANT_PARENT_GUARDIAN_DATE_OF_BIRTH_IN_FUTURE","CASE_MARKER_IS_INVALID","DEFENDANT_SELF_DEFINED_ETHNICITY_INVALID","DEFENDANT_OBSERVED_ETHNICITY_INVALID","DEFENDANT_PARENT_GUARDIAN_SELF_DEFINED_ETHNICITY_INVALID","DEFENDANT_PARENT_GUARDIAN_OBSERVED_ETHNICITY_INVALID","ALCOHOL_DRUG_LEVEL_METHOD_MISSING","ALCOHOL_DRUG_LEVEL_AMOUNT_MISSING","ALCOHOL_DRUG_LEVEL_METHOD_INVALID","STATEMENT_OF_FACTS_WELSH_REQUIRED","DEFENDANT_ID_INVALID","DUPLICATE_DEFENDANT","BACK_DUTY_AMOUNT_MISSING","BACK_DUTY_DATE_RANGE_INVALID","PROSECUTOR_NOT_RECOGNISED_AS_AN_AUTHORISED_SJP_PROSECUTOR","CASE_HAS_MORE_THAN_ONE_DEFENDANT"]},"values":{"type":"array","description":"Key-value pairs providing additional context for the error","items":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"id":{"type":"string"},"key":{"type":"string","minLength":1},"value":{"type":"string"}},"required":["key","value"]}}},"required":["code","values"],"additionalProperties":false}}}},"example":{"errors":[{"code":"DEFENDANT_DOB_IN_FUTURE","values":[{"key":"dateOfBirth","value":"2030-01-01"}]}]}}}}}}},"/civilprosecutions":{"post":{"summary":"Submit a civil prosecution","description":"Submit a new civil prosecution (others or summons) to the staging prosecutors civil service. Returns 202 with a submission ID and status URL that can be polled for completion.","tags":["Civil Prosecutions"],"requestBody":{"required":true,"content":{"application/vnd.stagingprosecutorscivil.others.v1+json":{"schema":{"$ref":"#/components/schemas/CivilOtherCases"}},"application/vnd.stagingprosecutorscivil.summons.v1+json":{"schema":{"$ref":"#/components/schemas/CivilSummonsProsecution"}}}},"responses":{"202":{"description":"Civil prosecution accepted for processing","content":{"application/json":{"schema":{"type":"object","properties":{"statusURL":{"type":"string"},"submissionId":{"type":"string","format":"uuid"}},"additionalProperties":false,"required":["statusURL","submissionId"]},"example":{"statusURL":"https://www.dummy.gov.uk/foo/bar/8191c165-e9e4-4fd7-ac6d-5bfd04690f77","submissionId":"8191c165-e9e4-4fd7-ac6d-5bfd04690f77"}}}},"500":{"description":"Internal Server Error"}}}}},"components":{"securitySchemes":{"BearerAuth":{"description":"Valid Bearer Token","type":"http","scheme":"bearer"}},"schemas":{"Uuid":{"type":"string","pattern":"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"},"DatePattern":{"type":"string","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"Offence":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"originatingCaseUrn":{"description":"URN of the case containing the offence","type":"string"},"offenceCode":{"description":"The cjs code for the offence","type":"string"},"orderIndex":{"description":"The offence index","type":"integer","minimum":0},"offenceTitle":{"description":"The title taken from ref data","type":"string"},"pleaValue":{"description":"The defendants plea against the offence","type":"string"},"verdictCode":{"description":"The code for the verdict against the offence","type":"string"},"offenceResults":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/Result"}}},"required":["offenceCode","orderIndex","offenceTitle"]},"ResultData":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"amount":{"description":"","type":"string"},"nextHearingDate":{"type":"string","format":"date-time"},"nextCourtLocation":{"type":"string"},"durationValue":{"type":"string"},"durationUnit":{"type":"string"},"durationStartDate":{"type":"string","format":"date-time"},"durationEndDate":{"type":"string","format":"date-time"},"secondaryDurationValue":{"type":"string"},"secondaryDurationUnit":{"type":"string"}}},"Result":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"resultText":{"description":"The textual description of the result","type":"string"},"cjsResultCode":{"description":"The cjs code for the result","type":"string"},"resultData":{"$ref":"#/components/schemas/ResultData"}},"required":["resultText"]},"CaseOrApplication":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"caseOrApplicationReference":{"description":"The case or application reference","type":"string"},"arrestSummonsNumber":{"type":"string"},"applicationParticulars":{"type":"string"},"offences":{"description":"The details of the offences for the defendant","type":"array","minItems":1,"items":{"$ref":"#/components/schemas/Offence"}},"results":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/Result"}}},"required":["caseOrApplicationReference","offences"]},"Defendant":{"type":"object","description":"The defendant","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"name":{"description":"The defendant name","type":"string"},"dateOfBirth":{"description":"The defendant date of birth","type":"string","format":"date"},"address1":{"description":"The defendant address line 1","type":"string"},"address2":{"description":"The defendant address line 2","type":"string"},"address3":{"description":"The defendant address line 3","type":"string"},"address4":{"description":"The defendant address line 4","type":"string"},"address5":{"description":"The defendant address line 5","type":"string"},"postCode":{"description":"The defendant postCode","type":"string"},"nationality":{"description":"The defendant nationality","type":"string"},"title":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"prosecutionCasesOrApplications":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/CaseOrApplication"}},"results":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/Result"}}},"required":["name","address1"]},"CourtSession":{"type":"object","properties":{"courtRoom":{"description":"The court room where the hearing was proceeded","type":"string"},"hearingStartTime":{"description":"The start time of the hearing","type":"string"},"defendants":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/Defendant"}}},"required":["courtRoom","hearingStartTime","defendants"]},"HearingVenue":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"ljaName":{"description":"The court venue local justice area Name","type":"string"},"courtHouse":{"description":"The court venue Name","type":"string"},"courtSessions":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/CourtSession"}}},"required":["courtHouse","courtSessions"]},"CivilAddress":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"address1":{"type":"string","description":"Address Line 1 for the defendant","minLength":1,"maxLength":35},"address2":{"type":"string","description":"Address Line 2 for the defendant","maxLength":35},"address3":{"type":"string","description":"Address Line 3 for the defendant","maxLength":35},"address4":{"type":"string","description":"Address Line 4 for the defendant","maxLength":35},"address5":{"type":"string","description":"Address Line 5 for the defendant","maxLength":35},"postcode":{"$ref":"#/components/schemas/CivilUkGovPostCode"}},"required":["address1"],"additionalProperties":false},"CivilCommonAddress":{"type":"object","description":"The address","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"address1":{"type":"string"},"address2":{"type":"string"},"address3":{"type":"string"},"address4":{"type":"string"},"address5":{"type":"string"},"postcode":{"$ref":"#/components/schemas/CivilUkGovPostCodeWithOptionalSpace"}},"required":["address1","postcode"],"additionalProperties":false},"CivilCommonContactNumber":{"type":"object","description":"Contact details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"home":{"allOf":[{"$ref":"#/components/schemas/CivilPhone"}],"description":"The home telephone number"},"work":{"type":"string","description":"The work telephone number is free format to allow the specification of extensions, etc"},"mobile":{"allOf":[{"$ref":"#/components/schemas/CivilPhone"}],"description":"The mobile number"},"primaryEmail":{"allOf":[{"$ref":"#/components/schemas/CivilEmail"}],"description":"The primary email address"},"secondaryEmail":{"allOf":[{"$ref":"#/components/schemas/CivilEmail"}],"description":"The secondary email address"},"fax":{"type":"string","description":"The fax number"}},"additionalProperties":false},"CivilContactDetails":{"type":"object","description":"Contact Details of the individual","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"workTelephoneNumber":{"type":"string","description":"A work telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means.","pattern":"^[0-9+\\ \\-]{10,}$"},"homeTelephoneNumber":{"type":"string","description":"A home telephone number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means.","pattern":"^[0-9+\\ \\-]{10,}$"},"mobileTelephoneNumber":{"type":"string","description":"A mobile number, including any exchange of location code, at which a person or organisation can be contacted in the UK by telephonic means.","pattern":"^[0-9+\\ \\-]{10,}$"},"primaryEmail":{"allOf":[{"$ref":"#/components/schemas/CivilEmail"}],"description":"The identification of the first e-mail address."},"secondaryEmail":{"allOf":[{"$ref":"#/components/schemas/CivilEmail"}],"description":"The identification of the second e-mail address."}},"additionalProperties":false},"CivilCroNumber":{"type":"string","description":"CJS standard format for National Identification Service (formerly Criminal Records Office) Number (fingerprint number). E.g. 123456/20L, SF20/123456M","pattern":"^(([S][F])(\\d{2})([/])([0-9]{6})([a-zA-Z]|[0-9])|(\\d{6})([/])(\\d{2})([a-zA-Z]|[0-9]{1}))$"},"CivilCustodyStatus":{"type":"string","description":"Identifies the type of case","minLength":1,"maxLength":1},"CivilDate":{"type":"string","pattern":"^((([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01]))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-(0[13456789]|1[012])\\-(0[1-9]|[12]\\d|30))|(([\\+-]?\\d{4}(?!\\d{2}\\b))\\-02\\-(0[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))\\-02\\-29))$"},"CivilDefendant":{"type":"object","description":"Defendant Details of the case","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"defendantDetails":{"$ref":"#/components/schemas/CivilDefendantDetails"},"individual":{"$ref":"#/components/schemas/CivilIndividual"},"organisation":{"$ref":"#/components/schemas/CivilOrganisation"},"offences":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/CivilOffence"}}},"oneOf":[{"required":["defendantDetails","individual","offences"]},{"required":["defendantDetails","organisation","offences"]}],"additionalProperties":false},"CivilDefendantDetails":{"type":"object","description":"Defendant Details of the case","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"prosecutorDefendantId":{"type":"string","description":"DefendantId provided by prosecutor.","pattern":"^[a-zA-Z0-9-]*$","maxLength":36},"asn":{"type":"string","description":"Arrest / Summons number","maxLength":20},"pncIdentifier":{"$ref":"#/components/schemas/CivilPncId"},"croNumber":{"$ref":"#/components/schemas/CivilCroNumber"},"documentationLanguage":{"$ref":"#/components/schemas/CivilLanguage"},"hearingLanguage":{"$ref":"#/components/schemas/CivilLanguage"},"address":{"$ref":"#/components/schemas/CivilAddress"},"numPreviousConvictions":{"type":"integer","description":"Number of previous conviction cited by prosecutor."},"prosecutorCosts":{"$ref":"#/components/schemas/CivilMoney"}},"required":["prosecutorDefendantId","documentationLanguage","hearingLanguage","address"],"additionalProperties":false},"CivilEmail":{"type":"string","pattern":"^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"},"CivilGender":{"type":"integer","description":"Identifies the gender of the individual, 0 = Not Known, 1 = Male, 2 = Female, 9 = Not Applicable","enum":[0,1,2,9]},"CivilHearingDetails":{"type":"object","properties":{"courtHearingLocation":{"type":"string","description":"The OUCODE of the courthouse","minLength":1,"maxLength":7},"dateOfHearing":{"allOf":[{"$ref":"#/components/schemas/CivilDate"}],"description":"The date of the hearing"},"timeOfHearing":{"type":"string","description":"The actual start time of the hearing","pattern":"^(2[0-3]|[01]?[0-9]):([0-5]?[0-9]):([0-5]?[0-9])$","maxLength":8}},"required":["courtHearingLocation","dateOfHearing","timeOfHearing"]},"CivilIndividual":{"type":"object","description":"Individual details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"nameDetails":{"$ref":"#/components/schemas/CivilNameDetails"},"contactDetails":{"$ref":"#/components/schemas/CivilContactDetails"},"nationality":{"type":"string","description":"Country of origin as stated by the defendant, as per CJS Standards section 3.103","maxLength":3},"additionalNationality":{"type":"string","description":"Additional country of origin as stated by the defendant, as per CJS Standards section 3.103","maxLength":3},"dateOfBirth":{"$ref":"#/components/schemas/CivilDate"},"gender":{"$ref":"#/components/schemas/CivilGender"},"occupation":{"type":"string","description":"The description of an occupation.","maxLength":54},"occupationCode":{"type":"integer","minimum":0,"maximum":99999,"description":"An occupation code"},"observedEthnicity":{"type":"number"},"ethnicity":{"type":"string","description":"Ethnicity Self Defined Code"},"driverNumber":{"type":"string","description":"Driver number for DVLA case","maxLength":16},"languageRequirement":{"type":"string","description":"Notes about the defendant's language needs, e.g. interpreter details","maxLength":150},"specificRequirements":{"type":"string","description":"Notes about any help that the defendant may need when attending court","maxLength":150},"nationalInsuranceNumber":{"type":"string","description":"National Insurance Number (CGS DSC 5.15)","minLength":9,"maxLength":9,"pattern":"^(?!BG)(?!GB)(?!NK)(?!KN)(?!TN)(?!NT)(?!ZZ)[A-CEGHJ-PR-TW-Z][A-CEGHJ-NPR-TW-Z][0-9][0-9][0-9][0-9][0-9][0-9][A-D ]$"},"parentGuardian":{"$ref":"#/components/schemas/CivilParentGuardian"},"aliases":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/CivilNameDetails"}},"custodyStatus":{"$ref":"#/components/schemas/CivilCustodyStatus"},"bailConditions":{"type":"string","maxLength":2500}},"required":["nameDetails","gender"],"additionalProperties":false},"CivilLanguage":{"type":"string","description":"Identifies the language to be used, values E or W (English or Welsh)","enum":["E","W"],"default":"E"},"CivilMoney":{"type":"string","description":"An amount expressed in pounds and pence. Must be a positively signed or unsigned number of a maximum of 14 digits plus two decimal places","pattern":"^(\\+)?([0-9]{1,12})\\.([0-9]{2})$"},"CivilNameDetails":{"type":"object","description":"Individual name details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"title":{"type":"string","description":"Title by which a person is addressed","maxLength":35},"forename":{"type":"string","description":"Given Name (CJS DSC v5 3.50)","maxLength":35,"pattern":"^(?!.*  ).+"},"forename2":{"type":"string","description":"The second given name of a person, e.g. Ian","maxLength":35},"forename3":{"type":"string","description":"The third given name of a person, e.g. Barry","maxLength":35},"surname":{"type":"string","description":"Surname or Family name, e.g. Brown (CJS DSC v5 3.39 Family Name)","maxLength":35,"pattern":"^(?!.*  ).+"}},"required":["forename","surname"],"additionalProperties":false},"CivilOffence":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"offenceDetails":{"$ref":"#/components/schemas/CivilOffenceDetails"},"arrestDate":{"$ref":"#/components/schemas/CivilDate"},"statementOfFacts":{"type":"string","description":"Statement of facts","maxLength":4000},"statementOfFactsWelsh":{"type":"string","description":"Statement of facts in Welsh","maxLength":4000}},"required":["offenceDetails"],"additionalProperties":false},"CivilOffenceDateCode":{"type":"integer","description":"The code for the offence date to be used within the offence wording, 1 = on or in, 2 = before, 3 = after, 4 = between, 5 = on or about and 6 = on or before","enum":[1,2,3,4,5,6]},"CivilOffenceDetails":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"cjsOffenceCode":{"type":"string","description":"Identifies the CJS code applicable to criminal offences as per the CJS Standard section 3.11","maxLength":8},"offenceSequenceNo":{"type":"integer","description":"Sequence number of the offence","minimum":1},"offenceCommittedDate":{"$ref":"#/components/schemas/CivilDate"},"offenceDateCode":{"$ref":"#/components/schemas/CivilOffenceDateCode"},"laidDate":{"$ref":"#/components/schemas/CivilDate"},"offenceCommittedEndDate":{"allOf":[{"$ref":"#/components/schemas/CivilDate"}],"description":"End date for period in which offence committed"},"offenceLocation":{"type":"string","description":"Offence location","maxLength":80},"offenceWording":{"type":"string","description":"Details of Information or Charge to be laid before the court","maxLength":2500},"offenceWordingWelsh":{"type":"string","description":"Details of Information or Charge to be laid before the court in Welsh","maxLength":2500},"prosecutorCompensation":{"allOf":[{"$ref":"#/components/schemas/CivilMoney"}],"description":"Compensation claimed by the prosecutor"},"backDuty":{"allOf":[{"$ref":"#/components/schemas/CivilMoney"}],"description":"Back duty"},"backDutyDateFrom":{"allOf":[{"$ref":"#/components/schemas/CivilDate"}],"description":"Start date of the period of unpaid back duty"},"backDutyDateTo":{"allOf":[{"$ref":"#/components/schemas/CivilDate"}],"description":"End date of the period of unpaid back duty"},"vehicleMake":{"$ref":"#/components/schemas/CivilVehicleMake"},"vehicleRegistrationMark":{"$ref":"#/components/schemas/CivilVehicleRegistrationMark"}},"required":["cjsOffenceCode","offenceSequenceNo","offenceWording","laidDate"],"additionalProperties":false},"CivilOrganisation":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"organisationName":{"type":"string","description":"Name of an organisation, e.g., Marks and Spencer.","maxLength":255},"companyTelephoneNumber":{"type":"string","pattern":"^[0-9+\\ \\-]{10,}$"},"aliasOrganisationNames":{"type":"array","description":"Also known as company name.","minItems":1,"items":{"type":"string"}}},"required":["organisationName"],"additionalProperties":false},"CivilOtherCases":{"type":"object","properties":{"prosecutionCases":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/CivilProsecutionCase"}},"prosecutingAuthority":{"type":"string","description":"Identifies the Prosecuting Organisation responsible for initiating the case","pattern":"^[a-zA-Z0-9-]*$","minLength":7,"maxLength":7},"hearingDetails":{"$ref":"#/components/schemas/CivilHearingDetails"}},"required":["prosecutionCases","prosecutingAuthority","hearingDetails"],"additionalProperties":false},"CivilParentGuardian":{"type":"object","description":"Person details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"organisation":{"$ref":"#/components/schemas/CivilParentGuardianOrganisation"},"individual":{"$ref":"#/components/schemas/CivilParentGuardianIndividual"},"address":{"$ref":"#/components/schemas/CivilAddress"}},"oneOf":[{"required":["individual","address"]},{"required":["organisation","address"]}],"additionalProperties":false},"CivilParentGuardianIndividual":{"type":"object","description":"Person details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"nameDetails":{"$ref":"#/components/schemas/CivilParentGuardianNameDetails"},"contactDetails":{"$ref":"#/components/schemas/CivilContactDetails"},"dateOfBirth":{"$ref":"#/components/schemas/CivilDate"},"gender":{"$ref":"#/components/schemas/CivilGender"},"observedEthnicity":{"type":"number"},"selfDefinedEthnicity":{"type":"string","description":"Ethnicity Self Defined Code"}},"required":["nameDetails","gender"],"additionalProperties":false},"CivilParentGuardianNameDetails":{"type":"object","description":"Person name details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"title":{"type":"string","description":"Title by which a person is addressed","pattern":"^(Mr|Mrs|Ms|Miss)$"},"forename":{"type":"string","description":"Given Name (CJS DSC v5 3.50)","maxLength":35,"pattern":"^(?!.*  ).+"},"forename2":{"type":"string","description":"The second given name of a person, e.g. Ian","maxLength":35},"forename3":{"type":"string","description":"The third given name of a person, e.g. Barry","maxLength":35},"surname":{"type":"string","description":"Surname or Family name, e.g. Brown (CJS DSC v5 3.39 Family Name)","maxLength":35,"pattern":"^(?!.*  ).+"}},"required":["surname"],"additionalProperties":false},"CivilParentGuardianOrganisation":{"type":"object","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"organisationName":{"type":"string","description":"Name of an organisation, e.g., Marks and Spencer.","maxLength":255},"companyTelephoneNumber":{"type":"string","pattern":"^[0-9+\\ \\-]{10,}$"}},"required":["organisationName"],"additionalProperties":false},"CivilPhone":{"type":"string","pattern":"^[0-9()\\-\\.\\s]+$","description":"A telephone number"},"CivilPncId":{"type":"string","description":"CJS standard format for Police National Computer Identifier. E.g. 2020/1234567L","pattern":"^(?!0{4}|0{3}|0{2}}|0{1})([0-9][0-9]{3})([/])([0-9]{7})([a-zA-Z]|[0-9])$"},"CivilProsecutionCase":{"type":"object","description":"Prosecution Case details","x-class-extra-annotation":"@lombok.AllArgsConstructor","properties":{"defendants":{"type":"array","description":"Individual or Single Civil Prosecution Cases may contain more than one defendants. Bulk Civil Prosecution Cases contain only one defendant","minItems":1,"items":{"$ref":"#/components/schemas/CivilDefendant"}},"informant":{"type":"string","description":"Name of the person to be named as informant in this prosecution case","maxLength":92},"caseMarker":{"type":"string","description":"To be populated if a CJS agreed Case Marker applies. Multiple values to be separated by a space","maxLength":10},"urn":{"type":"string","description":"Case URN","maxLength":36},"paymentReference":{"type":"string","description":"Case payment reference","maxLength":36},"summonsCode":{"type":"string","description":"Summons code","maxLength":1}},"required":["defendants","urn","informant"],"additionalProperties":false},"CivilSummonsProsecution":{"type":"object","properties":{"prosecutionCases":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/CivilProsecutionCase"}},"prosecutingAuthority":{"type":"string","description":"Identifies the Prosecuting Organisation responsible for initiating the case","pattern":"^[a-zA-Z0-9-]*$","minLength":7,"maxLength":7},"hearingDetails":{"$ref":"#/components/schemas/CivilHearingDetails"}},"required":["prosecutionCases","prosecutingAuthority","hearingDetails"],"additionalProperties":false},"CivilUkGovPostCode":{"type":"string","description":"UK Gov post code validation following CJS Data Standards","pattern":"^(([gG][iI][rR] {0,}0[aA]{2})|(([aA][sS][cC][nN]|[sS][tT][hH][lL]|[tT][dD][cC][uU]|[bB][bB][nN][dD]|[bB][iI][qQ][qQ]|[fF][iI][qQ][qQ]|[pP][cC][rR][nN]|[sS][iI][qQ][qQ]|[iT][kK][cC][aA]) {0,}1[zZ]{2})|((([a-pr-uwyzA-PR-UWYZ][a-hk-yxA-HK-XY]?[0-9][0-9]?)|(([a-pr-uwyzA-PR-UWYZ][0-9][a-hjkstuwA-HJKSTUW])|([a-pr-uwyzA-PR-UWYZ][a-hk-yA-HK-Y][0-9][abehmnprv-yABEHMNPRV-Y]))) [0-9][abd-hjlnp-uw-zABD-HJLNP-UW-Z]{2}))$","maxLength":8},"CivilUkGovPostCodeWithOptionalSpace":{"type":"string","description":"UK Gov post code validation following CJS Data Standards","pattern":"^(([gG][iI][rR] {0,}0[aA]{2})|(([aA][sS][cC][nN]|[sS][tT][hH][lL]|[tT][dD][cC][uU]|[bB][bB][nN][dD]|[bB][iI][qQ][qQ]|[fF][iI][qQ][qQ]|[pP][cC][rR][nN]|[sS][iI][qQ][qQ]|[iT][kK][cC][aA]) {0,}1[zZ]{2})|((([a-pr-uwyzA-PR-UWYZ][a-hk-yxA-HK-XY]?[0-9][0-9]?)|(([a-pr-uwyzA-PR-UWYZ][0-9][a-hjkstuwA-HJKSTUW])|([a-pr-uwyzA-PR-UWYZ][a-hk-yA-HK-Y][0-9][abehmnprv-yABEHMNPRV-Y]))) {0,}[0-9][abd-hjlnp-uw-zABD-HJLNP-UW-Z]{2}))$","maxLength":8},"CivilUuid":{"type":"string","pattern":"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"},"CivilVehicleMake":{"type":"string","description":"Ford, Toyota etc.","maxLength":60},"CivilVehicleRegistrationMark":{"type":"string","pattern":"^[\\da-zA-Z]$|^[\\da-zA-Z](?=.{1,10}$)[\\da-zA-Z\\s]*[\\da-zA-Z]$","minLength":1,"maxLength":11}}}}