payroll runs list

GET {{baseUrl}}/payroll-runs

Returns a list of PayrollRun objects.

Request Params

KeyDatatypeRequiredDescription
created_afterstringIf provided, will only return objects created after this datetime.
created_beforestringIf provided, will only return objects created before this datetime.
cursorstringThe pagination cursor value.
ended_afterstringIf provided, will only return payroll runs ended after this datetime.
ended_beforestringIf provided, will only return payroll runs ended before this datetime.
include_deleted_databooleanWhether to include data that was marked as deleted by third party webhooks.
include_remote_databooleanWhether to include the original data Merge fetched from the third-party to produce these models.
modified_afterstringIf provided, will only return objects modified after this datetime.
modified_beforestringIf provided, will only return objects modified before this datetime.
page_sizenumberNumber of results to return per page.
remote_fieldsstringWhich fields should be returned in non-normalized form.
remote_idstringThe API provider's ID for the given object.
run_typestringIf provided, will only return PayrollRun's with this status. Options: ('REGULAR', 'OFF_CYCLE', 'CORRECTION', 'TERMINATION', 'SIGN_ON_BONUS')
started_afterstringIf provided, will only return payroll runs started after this datetime.
started_beforestringIf provided, will only return payroll runs started before this datetime.

HEADERS

KeyDatatypeRequiredDescription
X-Account-Tokenstring(Required) Token identifying the end user.
Acceptstring

RESPONSES

status: OK

{"next":"cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw","previous":"cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ","results":[{"id":"37336947-b3d4-4a4c-a310-ab6ab510e079","remote_id":"19202938","run_state":"APPROVED","run_type":"OFF_CYCLE","start_date":"2020-11-08T00:00:00Z","end_date":"2020-11-15T00:00:00Z","check_date":"2020-11-15T00:00:00Z","remote_data":[{"path":"deserunt Lorem","data":{"ipsum69":{},"adipisicingf":{}}},{"path":"dolore quis Excepteur","data":{"proident1d":{},"et_2":{}}}],"remote_was_deleted":false},{"id":"37336947-b3d4-4a4c-a310-ab6ab510e079","remote_id":"19202938","run_state":"PAID","run_type":"SIGN_ON_BONUS","start_date":"2020-11-08T00:00:00Z","end_date":"2020-11-15T00:00:00Z","check_date":"2020-11-15T00:00:00Z","remote_data":[{"path":"proi","data":{"minim1f":{},"tempor_4":{}}},{"path":"enim ad velit eu","data":{"esse_305":{},"consequatbe":{}}}],"remote_was_deleted":false}]}