Retrieve the contributions for a specified employee.
Query parameters
-
The maximum number of contributions to return per page.
Minimum value is
100, maximum value is500. Default value is200. -
The page number to return in the list of contributions.
Minimum value is
1. Default value is1. -
Sort Contributions by date
Values are
pay_period_start_date,pay_period_end_date, orcreated_at. Default value iscreated_at. -
Sort order (ascending or descending)
Values are
ascordesc. Default value isdesc.
Responses
-
A list of contributions for the specified employee.
-
Bad request, the request is malformed or contains invalid data.
-
Unauthorized, the request requires authentication, and the provided credentials are either missing or incorrect.
-
Employee or employer not found, the specified employee_id or employer_id does not match any existing records.
curl \
--request GET 'https://payroll-api.getpenfold.dev/v4/employers/{employer_id}/employees/{employee_id}/contributions' \
--header "Authorization: Bearer $ACCESS_TOKEN"
{
"page_number": 1,
"page_size": 200,
"total_items": 1,
"items": [
{
"id": "c1234-abcd-5678-efgh",
"upload_id": "string",
"employee_id": "e9876-wxyz-4321-stuv",
"employer_contributions_amount": 1000.0,
"employee_contributions_amount": 250.0,
"employer_contributions_percent": 10,
"employee_contributions_percent": 20,
"created_at": "2023-03-22T12:00:00Z",
"pay_period_start_date": "2023-03-01",
"pay_period_end_date": "2023-03-15",
"status": "Pending"
}
]
}
{
"error": "Bad request: invalid data provided."
}
{
"error": "Bad request: invalid data provided."
}
{
"error": "Bad request: invalid data provided."
}