v1

latestOpenAPI 3.1.02026-07-2414339465.7 KB

Create Payroll Journal Report

Create a payroll journal report.

post/reports/payroll-journal

Request body

start_datestring date required

The first check date this report should retrieve checks for. Date should be in ISO-8601 format (YYYY-MM-DD).

end_datestring date required

The last check date this report should retrieve checks for. Date should be in ISO-8601 format (YYYY-MM-DD).

companyIDstring required

Zeal Company ID

media_type'csv' | 'pdf' required

The type of format this report can be downloaded as. Payroll Journals currently support "csv" and "pdf".

include_migratedboolean

Include migrated data in the report

with_preview_databoolean

Include preview data in the report (if media_type = csv only)

Response

200

successboolean

Example response

{
  "success": true,
  "data": {
    "job_id": "76f8a4e0-f2a0-4dc0-9a1c-215e083de5eb",
    "status": "pending",
    "request_body": {
      "start_date": "2022-01-01",
      "end_date": "2022-03-28",
      "company_id": "fc235f012bae46aa8a082f357715bcfa",
      "media_type": "csv",
      "has_live_key": true,
      "report_format": "payroll_journal"
    },
    "created_at": "2023-12-25T18:52:43.138Z"
  }
}