Get the enrolments created for an upload, in the form of employee records.
GET
/employers/{employerId}/uploads/{uploadId}/enrolments
curl \
--request GET 'https://partner-api.getpenfold.com/v1/employers/{employerId}/uploads/{uploadId}/enrolments' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"pageNumber": 1,
"pageSize": 200,
"totalItems": 1,
"items": [
{
"id": "e1234-abcd-5678-efgh",
"email": "john.doe@example.com",
"forename": "John",
"surname": "Doe",
"title": "Mr.",
"dateOfBirth": "1990-01-01",
"addressLine1": "123 Main Street",
"postcode": "AB12 3CD",
"nationalInsuranceNumber": "AA123456C",
"employmentStartDate": "2023-01-01",
"status": "Active",
"exitDate": "2026-05-04",
"optOutDate": "2026-05-04",
"optInDate": "2026-05-04",
"optOutWindowStartDate": "2023-01-01",
"optOutWindowEndDate": "2023-01-31",
"createdAt": "2023-03-01T12:00:00Z",
"updatedAt": "2023-03-15T12:00:00Z"
}
]
}
Response examples (401)
{
"error": "unauthorized"
}
Response examples (404)
{
"error": "not found"
}
Response examples (500)
{
"error": "internal server error"
}