Get the errors of an upload. Returns an empty list when there are no errors, or when processing has not finished. Errors are present when status is Error or PartiallyProcessed.
Query parameters
-
The maximum number of records to return per page.
Minimum value is
100, maximum value is500. Default value is200. -
The page number to return in the list of records.
Minimum value is
1. Default value is1.
GET
/uploads/{upload_id}/errors
curl \
--request GET 'https://payroll-api.getpenfold.dev/v4/uploads/{upload_id}/errors' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"page_number": 1,
"page_size": 200,
"total_items": 1,
"items": [
{
"upload_id": "string",
"scope": "File",
"row_index": 42.0,
"code": "NationalInsuranceNumberInvalid",
"message": "The provided National Insurance Number is invalid."
}
]
}
Response examples (400)
{
"error": "Bad request: invalid data provided."
}
Response examples (401)
{
"error": "Bad request: invalid data provided."
}
Response examples (404)
{
"error": "Bad request: invalid data provided."
}