A Java Springboot service within Access to Work (AtW) that will facilitate and manage to submission of claims within AtW
Submit a claim to be saved in the mongo database
{
"claimType": "EQUIPMENT_OR_ADAPTATION",
"nino": "AA370773A",
"atwNumber": "ATW1234567895",
"declarationVersion": 2.1,
"claim": [
{
"description": "Item 1",
"dateOfPurchase": {
"dd": "22",
"mm": "11",
"yyyy": "2020"
}
}
],
"cost": "2211",
"hasContributions": true,
"evidence": [
{
"fileId": "633ce73b-1414-433e-8a08-72449a0244fc/144b2aca-996d-4c27-bdf2-1e9b418874d3",
"fileName": "6b99f480c27e246fa5dd0453cd4fba29.pdf"
}
],
"payee": {
"newPayee": true, //for EA newPayee must be true
"details": {
"fullName": "George Herbert",
"emailAddress": "[email protected]"
},
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND", // Optional
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY", // Optional
"postcode": "NE26 4RS"
},
"bankDetails": {
"accountHolderName": "George Herbert",
"sortCode": "000004",
"accountNumber": "12345677",
"rollNumber": "12345677"// Optional
}
},
"claimant": {
"forename": "Odin",
"surname": "Surtsson",
"dateOfBirth": "1930-11-22",
"emailAddress": "[email protected]",
"homeNumber": "01277777777",
"mobileNumber": "07700900630",
"company": "Company 1",
"address": {
"address1": "1 The Street",
"address2": "Village Name",
"address3": "Town",
"address4": "County",
"postcode": "NE26 4RS"
}
},
"journeyContext": { // This is the data as it is saved in Casa
"data": {
"equipment-cost": {
"cost": 123.2
}
}
}
}
201 - Created
{
"claimReference": "EA15",
"claimNumber": 15,
"claimType": "EQUIPMENT_OR_ADAPTATION"
}
Submit a claim to be saved in the mongo database
{
"claimType": "ADAPTATION_TO_VEHICLE",
"nino": "AA370773A",
"atwNumber": "ATW1234567895",
"declarationVersion": 2.1,
"claim": {
"0": {
"claimDescription": {
"description": "Item 1",
"dateOfInvoice": {
"dd": "22",
"mm": "11",
"yyyy": "2020"
}
}
},
"1": {
"claimDescription": {
"description": "Item 2",
"dateOfInvoice": {
"dd": "2",
"mm": "11",
"yyyy": "2020"
}
}
}
},
"cost": "2211",
"hasContributions": true,
"evidence": [
{
"fileId": "633ce73b-1414-433e-8a08-72449a0244fc/144b2aca-996d-4c27-bdf2-1e9b418874d3",
"fileName": "6b99f480c27e246fa5dd0453cd4fba29.pdf"
}
],
"payee": {
"newPayee": true, //for AV newPayee must be true
"details": {
"fullName": "George Herbert",
"emailAddress": "[email protected]"
},
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND", // Optional
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY", // Optional
"postcode": "NE26 4RS"
},
"bankDetails": {
"accountHolderName": "George Herbert",
"sortCode": "000004",
"accountNumber": "12345677",
"rollNumber": "12345677"// Optional
}
},
"claimant": {
"forename": "Odin",
"surname": "Surtsson",
"dateOfBirth": "1930-11-22",
"emailAddress": "[email protected]",
"homeNumber": "01277777777",
"mobileNumber": "07700900630",
"company": "Company 1",
"address": {
"address1": "1 The Street",
"address2": "Village Name",
"address3": "Town",
"address4": "County",
"postcode": "NE26 4RS"
}
},
"journeyContext": { // This is the data as it is saved in Casa
"data": {
"equipment-cost": {
"cost": 123.2
}
}
}
}
201 - Created
{
"claimReference": "AV15",
"claimNumber": 15,
"claimType": "ADAPTATION_TO_VEHICLE"
}
Submit a claim to be saved in the mongo database
{
"nino": "AA370773A",
"declarationVersion": 2.1,
"atwNumber": "ATW1234567895",
"claimType": "SUPPORT_WORKER",
"previousClaimId": 1, // Optional. This field links the previous claim to the claim that is being resubmitted.
"nameOfSupport": "Joe Bloggs", // Optional
"claim": {
"0": {
"monthYear": {
"mm": "04",
"yyyy": "2020"
},
"claim": [
{
"dayOfSupport": "1",
"timeOfSupport": {
"hoursOfSupport": 2,
"minutesOfSupport": 15
}
},
{
"dayOfSupport": "2",
"timeOfSupport": {
"hoursOfSupport": 3,
"minutesOfSupport": 0
}
}
]
},
"1": {
"monthYear": {
"mm": "05",
"yyyy": "2020"
},
"claim": [
{
"dayOfSupport": "12",
"timeOfSupport": {
"hoursOfSupport": 0,
"minutesOfSupport": 15
}
},
{
"dayOfSupport": "14",
"timeOfSupport": {
"hoursOfSupport": 12,
"minutesOfSupport": 15
}
}
]
}
},
"cost": "2000",
"hasContributions": false,
"evidence": [
{
"fileId": "09672038-7155-4cb9-8b2e-56eda1fd6b53/7e67a9c5-f7c7-4565-a2ab-6c36530e0710",
"fileName": "6b99f480c27e246fa5dd0453cd4fba29.pdf"
},
{
"fileId": "b9c2ea02-f424-4cd3-bdc1-0ab1c26706fe/cfda6946-7bb5-4886-8b27-beaccbd8e834",
"fileName": "Technical Architect.docx"
}
],
"payee": {
"newPayee": true,
"details": { // details must always be present
"fullName": "INeed Paying",
"emailAddress": "[email protected]"// Optional if newPayee is set to false
},
"address": { // if newPayee is set to false, address is not required
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND", // Optional
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY", // Optional
"postcode": "NE26 4RS"
},
"bankDetails": { // if newPayee is set to false, bankDetails is not required
"accountHolderName": "Ineed Paying",
"sortCode": "000004",
"accountNumber": "12345677"
}
},
"workplaceContact": {
"fullName": "Count Signer",
"emailAddress": "[email protected]"
},
"claimant": {
"forename": "Odin",
"surname": "Surtsson",
"dateOfBirth": "1930-11-22",
"emailAddress": "[email protected]",
"homeNumber": "01277777777",
"mobileNumber": "07700900630",
"company": "Company 1",
"address": {
"address1": "1 The Street",
"address2": "Village Name",
"address3": "Town",
"address4": "County",
"postcode": "NE26 4RS"
}
},
"journeyContext": { // This is the data as it is saved in Casa
"data": {
"support-cost": {
"cost": 123.2
}
}
}
}
201 - Created
{
"claimReference": "SW15",
"claimNumber": 15,
"claimType": "SUPPORT_WORKER"
}
Submit a claim to be saved in the mongo database
{
"nino": "AA370773A",
"atwNumber": "ATW1234567895",
"declarationVersion": 2.1,
"claimType": "TRAVEL_TO_WORK",
"previousClaimId": 1, // Optional. This field links the previous claim to the claim that is being resubmitted for an employed employmentStatus
"travelDetails": {
"howDidYouTravelForWork": "lift", // Values: lift or taxi
"journeysOrMileage": "mileage"// Optional. Will only be show if above is lift. Values: mileage or Journeys
},
"cost": 121, // If TW and howDidYouTravelForWork == lift then it will not be presented
"hasContributions": true,
"claim": {
"0": {
"monthYear": {
"mm": "04",
"yyyy": "2020"
},
"claim": [
{
"dayOfTravel": "12",
"totalTravel": "13" // Both fields are required. No optional fields as this is a TW specific field
}
]
},
"1": {
"monthYear": {
"mm": "05",
"yyyy": "2020"
},
"claim": [
{
"dayOfTravel": "12",
"totalTravel": "13"
}
]
}
},
"evidence": [// Same as SW and EA
{
"fileId": "583d32fb-4b1d-418b-a25b-d1a47feb095f/4a5d1bdf-7b60-402d-93bf-de3e7a369044",
"fileName": "6b99f480c27e246fa5dd0453cd4fba29.pdf"
}
],
"payee": { // Same as SW and EA
"newPayee": true,
"details": { // details must always be present
"fullName": "INeed Paying",
"emailAddress": "[email protected]"// Optional if newPayee is set to false
},
"address": {// if newPayee is set to false, address is not required
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND", // Optional
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY", // Optional
"postcode": "NE26 4RS"
},
"bankDetails": {// if newPayee is set to false, bankDetails is not required
"accountHolderName": "Ineed Paying",
"sortCode": "000004",
"accountNumber": "12345677"
}
},
"workplaceContact": {//This block is different for TW
"employmentStatus": "employed", // Only shown on TW. Values: employed or selfEmployed
"fullName": "Count Signer", // Only shown when employmentStatus is employed
"emailAddress": "[email protected]"// Only shown when employmentStatus is employed
},
"claimant": {
"forename": "Odin",
"surname": "Surtsson",
"dateOfBirth": "1930-11-22",
"emailAddress": "[email protected]",
"homeNumber": "01277777777",
"mobileNumber": "07700900630",
"company": "Company 1",
"address": {
"address1": "1 The Street",
"address2": "Village Name",
"address3": "Town",
"address4": "County",
"postcode": "NE26 4RS"
}
},
"journeyContext": { // This is the data as it is saved in Casa
"data": {
"travel-cost": {
"cost": 123.2
}
}
}
}
201 - Created
{
"claimReference": "TW15",
"claimNumber": 15,
"claimType": "TRAVEL_TO_WORK"
}
Submit a claim to be saved in the mongo database
{
"nino": "CS700100A",
"atwNumber": "ATW1234567",
"declarationVersion": 2.1,
"claimType": "TRAVEL_IN_WORK",
"previousClaimId": 3,// Optional. This field links the previous claim to the claim that is being resubmitted for an employed employmentStatus
"cost": 2211,
"hasContributions": true,
"totalMileage": 2,
"claim": {
"0": {
"monthYear": {
"mm": "04",
"yyyy": "2020"
},
"claim": [
{
"dayOfTravel": "12",
"startPostcode": "xx11 1xx",
"endPostcode": "xx11 2xx",
"costOfTravel": "13" // All fields are required. No optional fields as this is a TIW specific field
},
{
"dayOfTravel": "13",
"startPostcode": "xx11 1xx",
"endPostcode": "xx11 2xx",
"costOfTravel": "14"
},
{
"dayOfTravel": "14",
"startPostcode": "xx11 1xx",
"endPostcode": "xx11 2xx",
"costOfTravel": "15"
}
]
},
"1": {
"monthYear": {
"mm": "05",
"yyyy": "2020"
},
"claim": [
{
"dayOfTravel": "13",
"startPostcode": "xx11 1xx",
"endPostcode": "xx11 2xx",
"costOfTravel": "14"
},
{
"dayOfTravel": "14",
"startPostcode": "xx11 1xx",
"endPostcode": "xx11 2xx",
"costOfTravel": "15"
}
]
}
},
"evidence": [// Same as SW, TW, AV and EA
{
"fileId": "633ce73b-1414-433e-8a08-72449a0244fc/144b2aca-996d-4c27-bdf2-1e9b418874d3",
"fileName": "6b99f480c27e246fa5dd0453cd4fba29.pdf"
}
],
"payee": { // Same as SW, TW, AV and EA
"newPayee": true,
"details": { // details must always be present
"fullName": "INeed Paying",
"emailAddress": "[email protected]"// Optional if newPayee is set to false
},
"address": {// if newPayee is set to false, address is not required
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND", // Optional
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY", // Optional
"postcode": "NE26 4RS"
},
"bankDetails": {// if newPayee is set to false, bankDetails is not required
"accountHolderName": "Ineed Paying",
"sortCode": "000004",
"accountNumber": "12345677",
"rollNumber": "12345677"
}
},
"workplaceContact": { //This block is different for TIW
"employmentStatus": "employed", // Shown on TW and TIW. Values: employed or selfEmployed
"fullName": "Count Signer", // Only shown when employmentStatus is employed
"emailAddress": "[email protected]" // Only shown when employmentStatus is employed
},
"claimant": {
"forename": "Odin",
"surname": "Surtsson",
"dateOfBirth": "1930-11-22",
"emailAddress": "[email protected]",
"homeNumber": "01233665544",
"mobileNumber": "07700900630",
"company": "Company 1",
"address": {
"address1": "1 The Street",
"address2": "Village Name",
"address3": "Town",
"address4": "County",
"postcode": "NE26 4RS"
}
},
"journeyContext": { // This is the data as it is saved in Casa
"data": {
"equipment-cost": {
"cost": 123.2
}
}
}
}
201 - Created
{
"claimReference": "TIW15",
"claimNumber": 15,
"claimType": "TRAVEL_IN_WORK"
}
Submit an update to a claim in the mongo database
{
"claimNumber": 3,
"claimType": "SUPPORT_WORKER",
"organisation": "company2",
"declarationVersion": 2.1,
"jobTitle": "boss2",
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND", // Optional
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY", // Optional
"postcode": "NE26 4RS"
}
}
204 - No Content
Submit an update to reject a claim in the mongo database
{
"claimNumber": 1,
"claimType": "TRAVEL_TO_WORK",
"organisation": "company",
"jobTitle": "boss",
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND", // Optional
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY", // Optional
"postcode": "NE26 4RS"
},
"reason": "This claim is not valid" // Max limit of 300 characters
}
204 - No Content
Retrieve claim request for the claim reference (claim type and claim number)
{
"claimReference": "TW0001",
"nino": "AA370773A"
}
200 - a claim request for the claim number and claim type given
{
"id": 1,
"createdDate": "2022-01-18T16:31:03.297",
"lastModifiedDate": "2022-01-18T16:31:29.095",
"claimStatus": "COUNTER_SIGN_REJECTED",
"nino": "AA370773A",
"claimType": "TRAVEL_TO_WORK",
"atwNumber": "ATW123456789",
"cost": 2211.0,
"evidence": [
{
"fileId": "633ce73b-1414-433e-8a08-72449a0244fc/144b2aca-996d-4c27-bdf2-1e9b418874d3",
"fileName": "6b99f480c27e246fa5dd0453cd4fba29.pdf"
}
],
"payee": {
"details": {
"fullName": "George Herbert",
"emailAddress": "[email protected]"
},
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY",
"postcode": "NE26 4RS"
},
"bankDetails": {
"accountHolderName": "George Herbert",
"sortCode": "000004",
"accountNumber": "12345677",
"rollNumber": "12345677"
}
},
"declarationVersion": 2.1,
"travelDetails": {
"howDidYouTravelForWork": "taxi",
"journeysOrMiles": null
},
"claim": {
"0": {
"monthYear": {
"mm": "04",
"yyyy": "2020"
},
"claim": [
{
"dayOfTravel": "12",
"totalTravel": "13"
}
]
}
},
"workplaceContact": {
"emailAddress": "[email protected]",
"organisation": "company",
"jobTitle": "boss",
"reason": "nulla facilisi etiam dignissim",
"updatedOn": "2021-11-18T14:00:38.477"
},
"claimant": {
"forename": "Odin",
"surname": "Surtsson",
"dateOfBirth": "1930-11-22",
"emailAddress": "[email protected]",
"homeNumber": "01277777777",
"mobileNumber": "07700900630",
"company": "Company 1",
"address": {
"address1": "1 The Street",
"address2": "Village Name",
"address3": "Town",
"address4": "County",
"postcode": "NE26 4RS"
},
},
"journeyContext": { // This is the data as it is saved in Casa
"data": {
"travel-cost": {
"cost": 123.2
}
}
}
}
Retrieve claim request for the claim reference (claim type and claim number)
{
"claimReference": "TW0001"
}
200 - a claim request for the claim number and claim type with AWAITING_COUNTER_SIGN value only
{
"id": 1,
"createdDate": "2022-01-18T16:31:03.297",
"lastModifiedDate": "2022-01-18T16:31:29.095",
"atwNumber": "ATW123456789",
"claimStatus": "AWAITING_COUNTER_SIGN",
"nino": "AA370773A",
"claimType": "TRAVEL_TO_WORK",
"cost": 2211.0,
"evidence": [
{
"fileId": "633ce73b-1414-433e-8a08-72449a0244fc/144b2aca-996d-4c27-bdf2-1e9b418874d3",
"fileName": "6b99f480c27e246fa5dd0453cd4fba29.pdf"
}
],
"payee": {
"details": {
"fullName": "George Herbert",
"emailAddress": "[email protected]"
},
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY",
"postcode": "NE26 4RS"
},
"bankDetails": {
"accountHolderName": "George Herbert",
"sortCode": "000004",
"accountNumber": "12345677",
"rollNumber": "12345677"
}
},
"declarationVersion": 2.1,
"travelDetails": {
"howDidYouTravelForWork": "taxi",
"journeysOrMiles": null
},
"claim": {
"0": {
"monthYear": {
"mm": "04",
"yyyy": "2020"
},
"claim": [
{
"dayOfTravel": "12",
"totalTravel": "13"
}
]
}
},
"workplaceContact": {
"emailAddress": "[email protected]",
"organisation": "company",
"jobTitle": "boss",
"reason": "nulla facilisi etiam dignissim",
"updatedOn": "2021-11-18T14:00:38.477"
},
"claimant": {
"forename": "Odin",
"surname": "Surtsson",
"dateOfBirth": "1930-11-22",
"emailAddress": "[email protected]",
"homeNumber": "01277777777",
"mobileNumber": "07700900630",
"company": "Company 1",
"address": {
"address1": "1 The Street",
"address2": "Village Name",
"address3": "Town",
"address4": "County",
"postcode": "NE26 4RS"
},
},
"journeyContext": { // This is the data as it is saved in Casa
"data": {
"travel-cost": {
"cost": 123.2
}
}
}
}
Retrieve all claims for the user (by Nino)
{
"nino": "AA370773A"
}
200 - a list of claims (all fields will be populated):
[
{
"id": 11,
"createdDate": "2022-01-18T16:31:03.297",
"lastModifiedDate": "2022-01-18T16:31:29.095",
"atwNumber": "ATW123456789",
"claimStatus": "AWAITING_COUNTER_SIGN",
"nino": "AA370773A",
"claimType": "TRAVEL_TO_WORK",
"cost": 2211.0,
"evidence": [
{
"fileId": "633ce73b-1414-433e-8a08-72449a0244fc/144b2aca-996d-4c27-bdf2-1e9b418874d3",
"fileName": "6b99f480c27e246fa5dd0453cd4fba29.pdf"
}
],
"payee": {
"details": {
"fullName": "George Herbert",
"emailAddress": "[email protected]"
},
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY",
"postcode": "NE26 4RS"
},
"bankDetails": {
"accountHolderName": "George Herbert",
"sortCode": "000004",
"accountNumber": "12345677",
"rollNumber": "12345677"
}
},
"declarationVersion": 2.1,
"travelDetails": {
"howDidYouTravelForWork": "taxi",
"journeysOrMiles": null
},
"claim": {
"0": {
"monthYear": {
"mm": "04",
"yyyy": "2020"
},
"claim": [
{
"dayOfTravel": "12",
"totalTravel": "13"
}
]
}
},
"workplaceContact": {
"emailAddress": "[email protected]",
"organisation": "company",
"jobTitle": "boss",
"reason": "nulla facilisi etiam dignissim",
"updatedOn": "2021-11-18T14:00:38.477"
},
"claimant": {
"forename": "Odin",
"surname": "Surtsson",
"dateOfBirth": "1930-11-22",
"emailAddress": "[email protected]",
"homeNumber": "01277777777",
"mobileNumber": "07700900630",
"company": "Company 1",
"address": {
"address1": "1 The Street",
"address2": "Village Name",
"address3": "Town",
"address4": "County",
"postcode": "NE26 4RS"
}
},
"journeyContext": { // This is the data as it is saved in Casa
"data": {
"travel-cost": {
"cost": 123.2
}
}
}
}
]
Update claim status to UPLOADED_TO_DOCUMENT_BATCH
{
"claimReference" : "SW11",
"requestId" : "db1543c5-449a-448c-9cb7-5aab84bd4670"
}
204 - No Content
Update claim status to DRS_ERROR
{
"requestId" : "db1543c5-449a-448c-9cb7-5aab84bd4670"
}
204 - No Content
Update claim status to AWAITING_AGENT_APPROVAL
{
"requestId" : "db1543c5-449a-448c-9cb7-5aab84bd4670"
}
204 - No Content
Update the workplace details before the submitted claim is accepted or reject by the workplace contact
{
"nino": "AA370773A",
"claimReference": "TW6",
"workplaceContact" :
{
"fullName": "Counter Signer1",
"emailAddress": "[email protected]"
}
}
204 - No Content
Update contact information which is saved in the mongo database
{
"accessToWorkNumber": "ATW12006521",
"nino": "AA370773A",
"declarationVersion" : 2.3,
"currentContactInformation" : {
"forename": "Martha", //optional
"surname": "Ledgrave", //optional
"dateOfBirth": "1930-11-22", //optional
"emailAddress": "[email protected]", //optional
"homeNumber": "01277777777", //optional
"mobileNumber": "07627847834", //optional
"address": { //optional
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND",//optional
"address3": "WHITLEY BAY",
"postcode": "NE26 4RS"
}
},
"newContactInformation" : {
"forename": "Martha", //optional
"surname": "Ledgrave", //optional
"dateOfBirth": "1930-11-22", //optional
"emailAddress": "[email protected]", //optional
"homeNumber": "01277777777", //optional
"mobileNumber": "07627847834", //optional
"address": { //optional
"address1": "15 Redburry Grove",
"address2": "Bramhope", //optional
"address3": "Leeds",
"address4": "West Yorkshire", //optional
"postcode": "LS6 7RU"
}
}
}
201 - Created
{
"contactInformationStatus": "AWAITING_UPLOAD",
"createdDate": "2022-02-25T16:40:59.492887",
"accessToWorkNumber": "ATW12006521",
"nino": "AA370773A",
"declarationVersion": 2.3,
"currentContactInformation": {
"forename": "Martha",
"surname": "Ledgrave",
"dateOfBirth": "1930-11-22",
"emailAddress": "[email protected]",
"homeNumber": "01277777777",
"mobileNumber": "07627847834",
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"address4": null,
"postcode": "NE26 4RS"
}
},
"newContactInformation": {
"forename": "Martha",
"surname": "Ledgrave",
"dateOfBirth": "1930-11-22",
"emailAddress": "[email protected]",
"homeNumber": "01277777777",
"mobileNumber": "07627847834",
"address": {
"address1": "15 Redburry Grove",
"address2": "Bramhope",
"address3": "Leeds",
"address4": "West Yorkshire",
"postcode": "LS6 7RU"
}
}
}
Retrieve contact information from the mongo database. The contactInformationStatus available are AWAITING_UPLOAD, PROCESSING_UPLOAD, UPLOADED_TO_DOCUMENT_BATCH
{
"requestId": "6234b56be952e507b56268f8"
}
200 - a list of the contact information that has been submitted to be updated
{
"id": "623c9f1c9ca76741d2ba883a",
"contactInformationStatus": "AWAITING_UPLOAD",
"createdDate": "2022-03-24T16:41:00.628",
"accessToWorkNumber": "ATW12006521",
"nino": "AA370773A",
"declarationVersion": 2.3,
"currentContactInformation": {
"forename": "Martha",
"surname": "Ledgrave",
"dateOfBirth": "1930-11-22",
"emailAddress": "[email protected]",
"homeNumber": "01277777777",
"mobileNumber": "07627847834",
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"address4": null,
"postcode": "NE26 4RS"
}
},
"newContactInformation": {
"forename": "Martha",
"surname": "Ledgrave",
"dateOfBirth": "1930-11-22",
"emailAddress": "[email protected]",
"homeNumber": "01277777777",
"mobileNumber": "1",
"address": {
"address1": "15 Redburry Grove",
"address2": "Bramhope",
"address3": "Leeds",
"address4": "West Yorkshire",
"postcode": "LS6 7RU"
}
}
}
Update the contact information status to be PROCESSING_UPLOAD
{
"requestId": "6234b56be952e507b56268f8"
}
204 - No Content
Update the contact information status to be COMPLETE_UPLOAD
{
"requestId": "6234b56be952e507b56268f8"
}
204 - No Content
End point to get the count of rejected claims
{
"nino": "AA370773A"
}
{
"count": 1
}
End point to get the count of rejected claims per claimtype
{
"nino": "AA370773A"
}
[
{
"claimType": "TRAVEL_TO_WORK",
"count": 1
},
{
"claimType": "SUPPORT_WORKER",
"count": 3
}
]
This service utilises Spring Boot actuator.
200:
{
"status": "UP"
}
503:
{
"status": "DOWN"
}
if this is your first time running this service locally, please set up your AWS credentials
-
spin up the dependencies of this service
-
start the service
mvn spring-boot:run -Dspring-boot.run.profiles=local
there are a few different ways to load AWS credentials. The credentials for localstack can be found on the first few lines of this file
Maintainer Team: Bluejay
Contributing file: ../CONTRIBUTING.md