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

# syncTimeCardsToPayroll

> The `syncTimeCardsToPayroll` API imports eligible time cards into payroll.

### What it does:
- Imports standard and overtime hours for payroll processing.

### Notes:
- Time cards in `Approved` or `Synced` status are eligible for sync.



## OpenAPI

````yaml post /adminPortal/syncTimeCardsToPayroll
openapi: 3.1.0
info:
  title: Default module
  description: |
    Webhook events emitted when a company's KYB status is created or changes.

    Rollfi sends these requests to the webhook URL configured for the client.
    Consumers should return a successful 2xx response after accepting the event.
  version: 1.0.0
servers: []
security: []
tags:
  - name: Admin Portal
  - name: TimeOff Admin
  - name: TimeTracking Admin
  - name: TimeOff User
  - name: TimeTracking User
  - name: TimeTracking Reports
  - name: TimeOff Reports
  - name: Pay Schedule Webhooks
  - name: Pay Period Webhooks
  - name: Employee Bank Account Webhooks
  - name: Employee KYC Webhooks
  - name: Company Bank Account Webhooks
  - name: Company Webhooks
  - name: Employee Status Webhooks
paths:
  /adminPortal/syncTimeCardsToPayroll:
    post:
      tags:
        - TimeTracking Admin
      summary: syncTimeCardsToPayroll
      description: >-
        The `syncTimeCardsToPayroll` API imports eligible time cards into
        payroll.


        ### What it does:

        - Imports standard and overtime hours for payroll processing.


        ### Notes:

        - Time cards in `Approved` or `Synced` status are eligible for sync.
      operationId: syncTimeCardsToPayroll
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                companyId:
                  type: string
                payPeriodId:
                  type: string
                timeCardIds:
                  type: array
                  items:
                    type: string
              required:
                - method
                - companyId
                - payPeriodId
                - timeCardIds
            example:
              method: syncTimeCardsToPayroll
              companyId: 5221FFCF-E84B-4690-B7DC-DE29D549096B
              payPeriodId: 3EAEC271-6C06-4E17-8C3B-1C6649D534D5
              timeCardIds:
                - 4DDB60ED-BC33-49FA-A589-E29FB6C4FD5C
      responses:
        '200':
          description: Time cards sync processed
          content:
            application/json:
              schema:
                type: object
                properties:
                  timeCards:
                    type: array
                    items:
                      type: object
                      properties:
                        timeCardId:
                          type: string
                        userId:
                          type: string
                        status:
                          type: string
                        message:
                          type: string
                      required:
                        - timeCardId
                        - userId
                        - status
                        - message
                required:
                  - timeCards
              example:
                timeCards:
                  - timeCardId: 4DDB60ED-BC33-49FA-A589-E29FB6C4FD5C
                    userId: C4CA148F-F2C6-4E70-8349-57CC6DFC1C2B
                    status: Synced
                    message: Synced successfully.
          headers: {}
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
              example:
                timeCards:
                  - error: 400
                    message: >-
                      Only Approved or Synced time cards can be synced to
                      payroll
                  - error: 400
                    message: Invalid timeCardId
          headers: {}
      deprecated: false
      security: []

````