GET
/employers/{employer_id}
curl \
--request GET 'https://payroll-api.getpenfold.dev/v4/employers/{employer_id}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"id": "e1234-abcd-5678-efgh",
"created_at": "2023-03-01T12:00:00Z",
"updated_at": "2023-03-15T12:00:00Z",
"name": "Acme Corp.",
"contribution_basis": "QualifyingEarnings",
"allows_salary_sacrifice": false,
"external_reference": "ABC123",
"company_number": "12345678",
"payment_method": "DirectDebit",
"primary_contact_email": "john.doe@example.com",
"primary_contact_role": "HR",
"default_employee_contributions_percent": 5,
"default_employer_contributions_percent": 3,
"status": "Active"
}
Response examples (400)
{
"error": "Bad request: invalid data provided.",
"validation_errors": [
{
"field": "email",
"message": "Email address is invalid."
}
]
}
Response examples (401)
{
"error": "Bad request: invalid data provided."
}
Response examples (404)
{
"error": "Bad request: invalid data provided."
}