A Java Springboot service within Access to Work (AtW) that will take in json, convert to html and then convert the html to a pdf. The pdf is encrypted and uploaded to a s3 bucket.
{
"id": 49,
"createdDate": "2022-01-30T13:31:05.775",
"lastModifiedDate": "2022-01-31T14:27:32.02",
"claimStatus": "COUNTER_SIGN_APPROVED",
"nino": "AA370773A",
"claimType": "SUPPORT_WORKER",
"cost": 2000.0,
"hasContributions": true,
"atwNumber" : "ATW1234567",
"claimant": {
"forename": "Odin",
"surname": "Surtsson",
"dateOfBirth": "1930-11-12",
"emailAddress": "[email protected]", //optional
"homeNumber": "07700900630", //optional
"company": "Apple Inc",
"address": {
"address1": "1 The Street",
"address2": "Village Name",
"address3": "Town",
"address4": "County",
"postcode": "NE26 4RS"
}
},
"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": {
"fullName": "INeed Paying",
"emailAddress": "[email protected]"// Optional if newPayee is set to false
},
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"address4": null,
"postcode": "NE26 4RS"
},
"bankDetails": {
"accountHolderName": "Ineed Paying",
"sortCode": "000004",
"accountNumber": "12345677",
"rollNumber": null
}
},
"declarationVersion": 2.1,
"nameOfSupport": "person 1", //Optional
"claim": {
"0": {
"monthYear": {
"mm": "04",
"yyyy": "2020"
},
"claim": [
{
"dayOfSupport": "01",
"timeOfSupport": {
"hoursOfSupport": 2,
"minutesOfSupport": 15
}
},
{
"dayOfSupport": "02",
"timeOfSupport": {
"hoursOfSupport": 3,
"minutesOfSupport": 0
}
},
]
},
"1": {
"monthYear": {
"mm": "05",
"yyyy": "2020"
},
"claim": [
{
"dayOfSupport": "12",
"timeOfSupport": {
"hoursOfSupport": 12,
"minutesOfSupport": 15
}
},
{
"dayOfSupport": "14",
"timeOfSupport": {
"hoursOfSupport": 0,
"minutesOfSupport": 15
}
}
]
}
},
"workplaceContact": {
"emailAddress": "[email protected]",
"fullName": "Count Signer",
"organisation": "company2",
"jobTitle": "boss2",
"updatedOn": "2022-01-31T14:27:32.02",
"declarationVersion": 3.1,
"address": {
"address1": "THE COTTAGE 3",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"postcode": "NE26 4RS"
}
}
}
200 - Ok
{
"fileId": "claim-forms/SUPPORT_WORKER/49/24d83c22-3243-45f1-884b-a10916ad21f5"
}
{
"id": 6,
"createdDate": "2022-02-17T15:35:14.432",
"lastModifiedDate": "2022-02-17T15:35:14.432",
"claimStatus": "AWAITING_AGENT_APPROVAL",
"nino": "AA370773A",
"claimType": "EQUIPMENT_OR_ADAPTATION",
"cost": 2211.0,
"hasContributions": true,
"atwNumber" : "ATW1234567",
"claimant": {
"forename": "Odin",
"surname": "Surtsson",
"dateOfBirth": "1930-11-12",
"emailAddress": "[email protected]", //optional
"homeNumber": "07700900630", //optional
"company": "Apple Inc",
"address": {
"address1": "1 The Street",
"address2": "Village Name",
"address3": "Town",
"address4": "County",
"postcode": "NE26 4RS"
}
},
"payee": {
"newPayee": true, //for EA newPayee must be true
"details": {
"fullName": "INeed Paying",
"emailAddress": "[email protected]"
},
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY",
"postcode": "NE26 4RS"
},
"bankDetails": {
"accountHolderName": "Ineed Paying",
"sortCode": "000004",
"accountNumber": "12345677",
"rollNumber": "12345677"
}
},
"declarationVersion": 2.1,
"evidence": [
{
"fileId": "633ce73b-1414-433e-8a08-72449a0244fc/144b2aca-996d-4c27-bdf2-1e9b418874d3",
"fileName": "6b99f480c27e246fa5dd0453cd4fba29.pdf"
}
],
"claim": [
{
"description": "Item 1",
"dateOfPurchase": {
"dd": "22",
"mm": "11",
"yyyy": "2020"
}
},
{
"description": "Item 2",
"dateOfPurchase": {
"dd": "18",
"mm": "12",
"yyyy": "2020"
}
}
]
}
200 - Ok
{
"fileId": "claim-forms/EQUIPMENT_OR_ADAPTATION/6/c5de70cc-66c8-4012-be55-be1e2f42f700"
}
{
"id": 6,
"createdDate": "2022-02-17T15:35:14.432",
"lastModifiedDate": "2022-02-17T15:35:14.432",
"claimStatus": "AWAITING_AGENT_APPROVAL",
"nino": "AA370773A",
"claimType": "ADAPTATION_TO_VEHICLE",
"cost": 2211.0,
"hasContributions": true,
"atwNumber" : "ATW1234567",
"claimant": {
"forename": "Odin",
"surname": "Surtsson",
"dateOfBirth": "1930-11-12",
"emailAddress": "[email protected]", //optional
"homeNumber": "07700900630", //optional
"company": "Apple Inc",
"address": {
"address1": "1 The Street",
"address2": "Village Name",
"address3": "Town",
"address4": "County",
"postcode": "NE26 4RS"
}
},
"payee": {
"newPayee": true, //for AV newPayee must be true
"details": {
"fullName": "Ineed Paying",
"emailAddress": "[email protected]"
},
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY",
"postcode": "NE26 4RS"
},
"bankDetails": {
"accountHolderName": "Ineed Paying",
"sortCode": "000004",
"accountNumber": "12345677",
"rollNumber": "12345677"
}
},
"declarationVersion": 2.1,
"evidence": [
{
"fileId": "633ce73b-1414-433e-8a08-72449a0244fc/144b2aca-996d-4c27-bdf2-1e9b418874d3",
"fileName": "6b99f480c27e246fa5dd0453cd4fba29.pdf"
}
],
"claim": [
{
"description": "Item 1",
"dateOfInvoice": {
"dd": "22",
"mm": "11",
"yyyy": "2020"
}
},
{
"description": "Item 2",
"dateOfInvoice": {
"dd": "18",
"mm": "12",
"yyyy": "2020"
}
}
]
}
200 - Ok
{
"fileId": "claim-forms/ADAPTATION_TO_VEHICLE/6/c5de70cc-66c8-4012-be55-be1e2f42f700"
}
{
"id": 9,
"createdDate": "2022-02-18T17:55:24.669",
"lastModifiedDate": "2022-02-19T17:55:50.841",
"claimStatus": "COUNTER_SIGN_APPROVED",
"nino": "AA370773A",
"claimType": "TRAVEL_TO_WORK",
"cost": 2211.0, // If TW and howDidYouTravelForWork == lift then it will not be presented
"hasContributions": true,
"atwNumber" : "ATW1234567",
"claimant": {
"forename": "Odin",
"surname": "Surtsson",
"dateOfBirth": "1930-11-12",
"emailAddress": "[email protected]", //optional
"homeNumber": "07700900630", //optional
"company": "Apple Inc",
"address": {
"address1": "1 The Street",
"address2": "Village Name",
"address3": "Town",
"address4": "County",
"postcode": "NE26 4RS"
}
},
"payee": { // Same as SW and EA
"newPayee": true,
"details": {
"fullName": "Ineed Paying",
"emailAddress": "[email protected]"// Optional if newPayee is set to false
},
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY",
"postcode": "NE26 4RS"
},
"bankDetails": {
"accountHolderName": "Ineed Paying",
"sortCode": "000004",
"accountNumber": "12345677",
"rollNumber": "12345677"
}
},
"declarationVersion": 2.1,
"workplaceContact": {
"emailAddress": "[email protected]",
"fullName": "Count Signer",
"organisation": "company2",
"jobTitle": "boss2",
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY",
"postcode": "NE26 4RS"
},
"updatedOn": "2022-02-19T17:55:50.841",
"employmentStatus": "employed",
"declarationVersion": 3.1
},
"evidence": [ // Same as SW and EA
{
"fileId": "633ce73b-1414-433e-8a08-72449a0244fc/144b2aca-996d-4c27-bdf2-1e9b418874d3",
"fileName": "6b99f480c27e246fa5dd0453cd4fba29.pdf"
}
],
"travelDetails": {
"howDidYouTravelForWork": "Taxi", // Values: lift or taxi
"journeysOrMileage": null // Optional. Will only be show if above is lift. Values: mileage or Journeys
},
"claim": {
"0": {
"monthYear": {
"mm": "04",
"yyyy": "2020"
},
"claim": [
{
"dayOfTravel": "8",
"totalTravel": "6"// Both fields are required. No optional fields as this is a TW specific field
}
]
},
"1": {
"monthYear": {
"mm": "05",
"yyyy": "2020"
},
"claim": [
{
"dayOfTravel": "12",
"totalTravel": "12"
},
{
"dayOfTravel": "13",
"totalTravel": "13"
}
]
}
}
}
200 - Ok
{
"fileId": "claim-forms/TRAVEL_TO_WORK/9/3f72dbc7-a6cd-4615-b8fe-52fd28906aa0"
}
{
"id": 9,
"createdDate": "2024-02-27T11:03:11.594",
"lastModifiedDate": "2024-02-27T13:46:00.123",
"claimStatus": "COUNTER_SIGN_APPROVED",
"nino": "CS700100A",
"atwNumber": "ATW1234567",
"claimType": "TRAVEL_IN_WORK",
"cost": 2211.0,
"hasContributions": true,
"claimant": {
"forename": "Odin",
"surname": "Surtsson",
"dateOfBirth": "1930-11-22",
"emailAddress": "[email protected]", //optional
"homeNumber": "01233665544", //optional
"mobileNumber": "07700900630",
"address": {
"address1": "1 The Street",
"address2": "Village Name",
"address3": "Town",
"address4": "County",
"postcode": "NE26 4RS"
},
"company": "Company 1"
},
"payee": { // Same as SW, TW, AV and EA
"details": {
"fullName": "INeed Paying",
"emailAddress": "[email protected]"// Optional if newPayee is set to false
},
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY",
"postcode": "NE26 4RS"
},
"bankDetails": {
"accountHolderName": "INeed Paying",
"sortCode": "000004",
"accountNumber": "12345677",
"rollNumber": "12345677"
},
"newPayee": true
},
"declarationVersion": 2.1,
"journeyContext": {
"data": {
"equipment-cost": {
"cost": 123.2
}
}
},
"previousClaimId": 3,
"documentBatchRequestId": null,
"workplaceContact": {
"emailAddress": "[email protected]",
"fullName": "Count Signer",
"organisation": "bq bridl",
"jobTitle": "boss2",
"address": {
"address1": "b q bridl",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"address4": "WHITLEY BAY",
"postcode": "NE26 4RS"
},
"updatedOn": "2024-02-27T13:46:00.116",
"employmentStatus": "employed",
"declarationVersion": 3.0
},
"evidence": [ // Same as SW, TW, AV and EA
{
"fileId": "633ce73b-1414-433e-8a08-72449a0244fc/144b2aca-996d-4c27-bdf2-1e9b418874d3",
"fileName": "6b99f480c27e246fa5dd0453cd4fba29.pdf"
}
],
"totalMileage": 2,
"claim": {
"0": {
"monthYear": {
"mm": "04",
"yyyy": "2020"
},
"claim": [
{
"dayOfTravel": 12,
"startPostcode": "xx11 1xx",
"endPostcode": "xx11 2xx",
"costOfTravel": 13.0 // All fields are required. No optional fields as this is a TIW specific field
},
{
"dayOfTravel": 13,
"startPostcode": "xx11 1xx",
"endPostcode": "xx11 2xx",
"costOfTravel": 14.0
},
{
"dayOfTravel": 14,
"startPostcode": "xx11 1xx",
"endPostcode": "xx11 2xx",
"costOfTravel": 15.0
}
]
},
"1": {
"monthYear": {
"mm": "05",
"yyyy": "2020"
},
"claim": [
{
"dayOfTravel": 13,
"startPostcode": "xx11 1xx",
"endPostcode": "xx11 2xx",
"costOfTravel": 14.0
},
{
"dayOfTravel": 14,
"startPostcode": "xx11 1xx",
"endPostcode": "xx11 2xx",
"costOfTravel": 15.0
}
]
}
}
}
200 - Ok
{
"fileId": "claim-forms/TRAVEL_IN_WORK/9/3f72dbc7-a6cd-4615-b8fe-52fd28906aa0"
}
{
"contactInformationStatus": "AWAITING_UPLOAD",
"createdDate": "2022-02-28T15:01:32.357",
"accessToWorkNumber": "ATW12006521",
"declarationVersion": 2.3,
"currentContactInformation": {
"forename": "Martha",
"surname": "Ledgrave",
"dateOfBirth": "1930-11-12",
"emailAddress": "[email protected]", //optional
"homeNumber": "07627847834", //optional
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"address4": null,
"postcode": "NE26 4RS"
}
},
"newContactInformation": {
"forename": "Martha",
"surname": "Ledgrave",
"dateOfBirth": "1930-11-12",
"emailAddress": "[email protected]", //optional
"homeNumber": "07627847834", //optional
"address": {
"address1": "15 Redburry Grove",
"address2": "Bramhope",
"address3": "Leeds",
"address4": "West Yorkshire",
"postcode": "LS6 7RU"
}
}
}
200 - Ok
{
"fileId": "claim-forms/contact-information/ATW12006521/988e17f1-332f-44d3-b4af-f0222521059d"
}
{
"contactInformationStatus": "AWAITING_UPLOAD",
"createdDate": "2022-02-28T15:01:32.357",
"accessToWorkNumber": "ATW12006521",
"declarationVersion": 2.3,
"currentContactInformation": {
"forename": "Martha",
"surname": "Ledgrave",
"emailAddress": "[email protected]", //optional
"homeNumber": "07627847834", //optional
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"address4": null,
"postcode": "NE26 4RS"
}
},
"payee": {
"details": {
"fullName": "INeed Paying",
"emailAddress": "[email protected]"
},
"address": {
"address1": "THE COTTAGE",
"address2": "ST. MARYS ISLAND",
"address3": "WHITLEY BAY",
"postcode": "NE26 4RS"
},
"bankDetails": {
"accountHolderName": "Ineed Paying",
"sortCode": "000004",
"accountNumber": "12345677"
}
}
}
200 - Ok
{
"fileId": "claim-forms/payee-information/ATW12006521/f461ad53-9465-4129-9dab-9a8b4bf98af5"
}
Maintainer Team: Bluejay
Contributing file: ../CONTRIBUTING.md