P45 Forms
Get P45 form for an employee
Retrieves the P45 form data for a specific employee
GET
/
p45
/
{employeeId}
Get P45 form for an employee
curl --request GET \
--url https://api.sandbox.flowpayroll.ai/v1/p45/{employeeId} \
--header 'X-Auth-Token: <api-key>'{
"message": {
"text": "P45 Form Retrieved",
"token": "p45FormRetrieved"
},
"content": {
"data": {
"employeeDetails": {
"id": "EMP01JPW80Q2B7Q9RGGRY29VGC8WM",
"payrollId": "PAY001",
"nationalInsuranceNumber": "AB123456C",
"department": "Engineering",
"jobTitle": "Software Engineer",
"email": "john.doe@example.com",
"name": {
"title": "Mr",
"firstName": "John",
"lastName": "Doe",
"initials": "JD"
},
"hasStudentLoanDeductions": false,
"hasPostGraduateLoanDeductions": false,
"address": {
"line1": "123 Main Street",
"line2": "Apartment 4B",
"city": "London",
"county": "Greater London",
"postcode": "SW1A 1AA",
"countryCode": "GB"
},
"birthGender": "Male",
"birthDate": "1980-01-12",
"employeeLeaverDetails": {
"leavingDate": "2024-06-15",
"reason": "Resignation",
"issuedBy": "HR Department"
}
},
"employerDetails": {
"id": "ORG001",
"name": {
"legalName": "Acme Corporation Ltd",
"tradingName": "Acme Corp"
},
"taxReferenceNumbers": {
"employerPayeReference": {
"officeNumber": "123",
"referenceNumber": "AB12345"
},
"accountsOfficeReference": "123PX00123456",
"selfAssessmentUniqueTaxpayerReference": "1234567890",
"corporationTaxReferenceUniqueTaxpayerReference": "1234567890"
},
"address": {
"line1": "456 Business Park",
"line2": "Suite 100",
"city": "Manchester",
"county": "Greater Manchester",
"postcode": "M1 1AA",
"countryCode": "GB"
}
},
"taxDetails": {
"taxCodeAtLeavingDate": "1257L",
"taxCodeWeek1Month1": false,
"totalPayToDate": 25000,
"totalTaxToDate": 3750,
"totalPayInThisEmployment": 25000,
"totalTaxInThisEmployment": 3750,
"weekNumber": 1
},
"createdBy": "system",
"createdDate": "2024-06-15T10:00:00Z",
"updatedBy": "system",
"updatedDate": "2024-06-15T10:00:00Z"
}
}
}Documentation Index
Fetch the complete documentation index at: https://docs.flowpayroll.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Cognito JWT access token
Path Parameters
The ID of the employee
Was this page helpful?
⌘I
Get P45 form for an employee
curl --request GET \
--url https://api.sandbox.flowpayroll.ai/v1/p45/{employeeId} \
--header 'X-Auth-Token: <api-key>'{
"message": {
"text": "P45 Form Retrieved",
"token": "p45FormRetrieved"
},
"content": {
"data": {
"employeeDetails": {
"id": "EMP01JPW80Q2B7Q9RGGRY29VGC8WM",
"payrollId": "PAY001",
"nationalInsuranceNumber": "AB123456C",
"department": "Engineering",
"jobTitle": "Software Engineer",
"email": "john.doe@example.com",
"name": {
"title": "Mr",
"firstName": "John",
"lastName": "Doe",
"initials": "JD"
},
"hasStudentLoanDeductions": false,
"hasPostGraduateLoanDeductions": false,
"address": {
"line1": "123 Main Street",
"line2": "Apartment 4B",
"city": "London",
"county": "Greater London",
"postcode": "SW1A 1AA",
"countryCode": "GB"
},
"birthGender": "Male",
"birthDate": "1980-01-12",
"employeeLeaverDetails": {
"leavingDate": "2024-06-15",
"reason": "Resignation",
"issuedBy": "HR Department"
}
},
"employerDetails": {
"id": "ORG001",
"name": {
"legalName": "Acme Corporation Ltd",
"tradingName": "Acme Corp"
},
"taxReferenceNumbers": {
"employerPayeReference": {
"officeNumber": "123",
"referenceNumber": "AB12345"
},
"accountsOfficeReference": "123PX00123456",
"selfAssessmentUniqueTaxpayerReference": "1234567890",
"corporationTaxReferenceUniqueTaxpayerReference": "1234567890"
},
"address": {
"line1": "456 Business Park",
"line2": "Suite 100",
"city": "Manchester",
"county": "Greater Manchester",
"postcode": "M1 1AA",
"countryCode": "GB"
}
},
"taxDetails": {
"taxCodeAtLeavingDate": "1257L",
"taxCodeWeek1Month1": false,
"totalPayToDate": 25000,
"totalTaxToDate": 3750,
"totalPayInThisEmployment": 25000,
"totalTaxInThisEmployment": 3750,
"weekNumber": 1
},
"createdBy": "system",
"createdDate": "2024-06-15T10:00:00Z",
"updatedBy": "system",
"updatedDate": "2024-06-15T10:00:00Z"
}
}
}