> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview Payroll by Check Date

> Generate a payroll preview job for all pending checks on a given check date.



## OpenAPI

````yaml openapi/zeal-api.json post /preview/checkDate
openapi: 3.1.0
info:
  title: zeal-api
  version: '1.0'
servers:
  - url: https://api.zeal.com
security:
  - sec0: []
paths:
  /preview/checkDate:
    post:
      summary: Preview Payroll by Check Date
      operationId: preview-payroll-by-check-date
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - companyID
                - check_date
              properties:
                companyID:
                  type: string
                  description: ID of the Company
                check_date:
                  type: string
                  description: The date on which the check was created
            examples:
              Request Example:
                value:
                  companyID: fcce6cc41440ac8a33e13223bbb462
                  check_date: '2023-04-29T18:21:28.951Z'
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    status: 200
                    success: true
                    data:
                      job_id: 0bc12668-9f1a-4fb6-b1c7-044d23fb678f
                      status: pending
                      request_body:
                        companyID: fcce6cc41440ac8a33e13223bbb462
                        check_date: '2023-04-29T18:21:28.951Z'
                        test_mode: false
                      created_at: '2023-05-04T19:49:31.064Z'
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 200
                    default: 0
                  success:
                    type: boolean
                    example: true
                    default: true
                  data:
                    type: object
                    properties:
                      job_id:
                        type: string
                        example: 0bc12668-9f1a-4fb6-b1c7-044d23fb678f
                      status:
                        type: string
                        example: pending
                      request_body:
                        type: object
                        properties:
                          companyID:
                            type: string
                            example: fcce6cc41440ac8a33e13223bbb462
                          check_date:
                            type: string
                            example: '2023-04-29T18:21:28.951Z'
                          test_mode:
                            type: boolean
                            example: false
                            default: true
                      created_at:
                        type: string
                        example: '2023-05-04T19:49:31.064Z'
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    success: false
                    errors:
                      - message: Invalid check date
                        code: 74
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: Authorization
      x-bearer-format: bearer

````