List payrolls
Changed onReturns a list of payrolls.
Request
- Base URLhttps://sandbox.checkhq.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Return payrolls for this company ID.
Return payrolls of these types. Repeat the parameter to match any of multiple values (for example, ?type=regular&type=off_cycle).
Filter to void payrolls (true) or non-void payrolls (false).
Return payrolls of this managed status.
Number of payrolls returned per page. The maximum value is 25.
Return payrolls whose payday is on or after the provided date (format: YYYY-MM-DD)
Return payrolls whose payday is on or before the provided date (format: YYYY-MM-DD)
Return payrolls in a given status. Repeat the parameter to match any of multiple values (for example, ?status=paid&status=partially_paid).
Filter payrolls based on their approval status
Return payrolls for this pay schedule
Filter the list to a specific set of payroll IDs
Return related payroll items directly on each payroll.
Return related contractor payments directly on each payroll.
Response
200
Example response
[
{
"id": "pay_Z26PNMC7Ky1wfFQzVqfF",
"company": "com_sx3svU6K8c5ZkSFlOh5p",
"period_start": "2019-06-16",
"period_end": "2019-06-29",
"approval_deadline": "2019-07-02T00:00:00.000000Z",
"approved_at": "2019-06-29T18:26:56.848920Z",
"payday": "2019-07-05",
"status": "paid",
"type": "regular",
"pay_frequency": "biweekly",
"processing_period": "four_day",
"managed": true,
"totals": {
"employee_gross": "961.54",
"employee_reimbursements": "0.00",
"employee_taxes": "249.23",
"employee_benefits": "0.00",
"post_tax_deductions": "0.00",
"employee_net": "712.31",
"contractor_gross": "100.00",
"contractor_reimbursements": "15.00",
"contractor_net": "115.00",
"company_taxes": "73.56",
"company_benefits": "0.00",
"liability": "1150.10",
"cash_requirement": "1150.10"
},
"items": [
{
"id": "itm_yvmmsVGFxLoBaMIkqzea",
"payroll": "pay_Z26PNMC7Ky1wfFQzVqfF",
"employee": "emp_zGGp6wYcxAeu1Ng8IA7v",
"payment_method": "direct_deposit",
"net_pay": "712.31",
"earnings": [
{
"amount": "961.54",
"hours": 40,
"type": "regular",
"workplace": "wrk_cxcG4vjGKcSXZk1fgKai"
}
],
"taxes": [
{
"tax": "tax_I1Z9zqbBGWIbvlZpN2Vq",
"description": "New York SDI",
"amount": "0.60",
"payer": "employee"
}
]
}
],
"contractor_payments": [
{
"contractor": "ctr_90QzaH9xPRI7JRLXnRoU",
"payment_method": "manual",
"amount": "100.00",
"reimbursement_amount": "15.00"
}
]
}
]Changes
- breaking
removed the enum value
amendmentfrom thequeryrequest parametertype - breaking
removed the enum value
balancingfrom thequeryrequest parametertype - breaking
removed the enum value
draftfrom thequeryrequest parameterstatus - breaking
removed the enum value
failedfrom thequeryrequest parameterstatus - breaking
removed the enum value
off_cyclefrom thequeryrequest parametertype - breaking
removed the enum value
paidfrom thequeryrequest parameterstatus - breaking
removed the enum value
partially_paidfrom thequeryrequest parameterstatus - breaking
removed the enum value
pendingfrom thequeryrequest parameterstatus - breaking
removed the enum value
processingfrom thequeryrequest parameterstatus - breaking
removed the enum value
regularfrom thequeryrequest parametertype - info
added the new optional
queryrequest parameteris_void - info
for the
queryrequest parameterstatus, the type was generalized fromstringtoarray - info
for the
queryrequest parametertype, the type was generalized fromstringtoarray - info
added the optional property
/to the response with the status
- breaking