Update an employer's configuration. All fields are optional — only provided fields are updated.
Body
Required
-
The email address of the employer primary contact.
-
The role of the employer primary contact.
Values are
CompanyDirector,Finance, orHR. -
Payroll frequencies to add for this employer. Additive only: each value is added if not already configured; existing frequencies are never removed by this field. Sending a frequency that is already set is a no-op.
At least
1element. -
The default contribution percentage for the employer.
Minimum value is
0, maximum value is100. -
The default contribution percentage for the employee.
Minimum value is
0, maximum value is100. -
The basis on which the employer makes pension contributions.
Values are
QualifyingEarnings,TotalPay, orBasicPay. -
Whether the employer allows for salary sacrifice.
-
The payment method used by the employer.
Value is
BankTransfer.
curl \
--request PATCH 'https://payroll-api.getpenfold.dev/v4/employers/{employer_id}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"primary_contact_email":"john.doe@example.com","primary_contact_role":"CompanyDirector","payroll_frequencies":[{"frequency":"Monthly","expected_first_pay_period_start_date":"2025-03-01"}],"default_employer_contributions_percent":3,"default_employee_contributions_percent":5,"contribution_basis":"QualifyingEarnings","allows_salary_sacrifice":false,"payment_method":"BankTransfer"}'
{
"primary_contact_email": "john.doe@example.com",
"primary_contact_role": "CompanyDirector",
"payroll_frequencies": [
{
"frequency": "Monthly",
"expected_first_pay_period_start_date": "2025-03-01"
}
],
"default_employer_contributions_percent": 3,
"default_employee_contributions_percent": 5,
"contribution_basis": "QualifyingEarnings",
"allows_salary_sacrifice": false,
"payment_method": "BankTransfer"
}
{
"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"
}
{
"error": "Bad request: invalid data provided.",
"validation_errors": [
{
"field": "email",
"message": "Email address is invalid."
}
]
}
{
"error": "Bad request: invalid data provided."
}
{
"error": "Bad request: invalid data provided."
}
{
"error": "Bad request: invalid data provided."
}