> ## 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.

# getPayPeriodDetails

> The `getPayPeriodDetails` API retrieves detailed payroll information for a specific pay period using a payPeriodId. Use it to review payroll totals, employee earnings, taxes, deductions, reimbursements, garnishments, and payment allocations.

### What it does:
- Returns pay period dates, status, companyId, payScheduleId, totals, and debitAmount
- Provides employee gross and net pay, wage information, differential-pay eligibility, and imported base-pay entries when available
- Returns employee and employer tax details, tax adjustments, and grouped miscellaneous state taxes
- Includes overtime, additional compensation, deductions, reimbursements, formatted time off, garnishments, and payment allocations
- Supports pagination of payrollLineItems using limit and offset

### Notes:
- includeTransactions can be used to view the company debit and employee credits on each payPeriod
- includeTransactions defaults to false when not included in the request
- limit and offset are optional; omit both to retrieve all payroll line items




## OpenAPI

````yaml get /reports/getPayPeriodDetails
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
  - name: Sandbox
paths:
  /reports/getPayPeriodDetails:
    get:
      tags: []
      summary: getPayPeriodDetails
      description: >
        The `getPayPeriodDetails` API retrieves detailed payroll information for
        a specific pay period using a payPeriodId. Use it to review payroll
        totals, employee earnings, taxes, deductions, reimbursements,
        garnishments, and payment allocations.


        ### What it does:

        - Returns pay period dates, status, companyId, payScheduleId, totals,
        and debitAmount

        - Provides employee gross and net pay, wage information,
        differential-pay eligibility, and imported base-pay entries when
        available

        - Returns employee and employer tax details, tax adjustments, and
        grouped miscellaneous state taxes

        - Includes overtime, additional compensation, deductions,
        reimbursements, formatted time off, garnishments, and payment
        allocations

        - Supports pagination of payrollLineItems using limit and offset


        ### Notes:

        - includeTransactions can be used to view the company debit and employee
        credits on each payPeriod

        - includeTransactions defaults to false when not included in the request

        - limit and offset are optional; omit both to retrieve all payroll line
        items
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  examples:
                    - getPayPeriodDetails
                  title: getPayPeriodDetails
                  enum:
                    - getPayPeriodDetails
                payPeriodId:
                  type: string
                  format: uuid
                  description: ID of the pay period to retrieve.
                companyId:
                  type: string
                  format: uuid
                  description: Optional company ID. Resolved from payPeriodId when omitted.
                includeTransactions:
                  type: boolean
                  default: false
                  description: >-
                    Include company debit and employee credit transaction
                    details. Transaction fields are omitted when false.
                limit:
                  type: integer
                  minimum: 0
                  description: >-
                    Maximum number of payroll line items to return. Use a
                    positive value for a bounded page; omit for no page-size
                    limit.
                offset:
                  type: integer
                  minimum: 0
                  default: 0
                  description: >-
                    Number of payroll line items to skip. Supplying limit or
                    offset adds root-level pagination metadata.
              required:
                - method
                - payPeriodId
            example:
              method: getPayPeriodDetails
              payPeriodId: 7BF6D637-9E8C-4AF6-A8B0-A24F36CA2F53
              includeTransactions: false
              limit: 50
              offset: 0
      responses:
        '200':
          description: >-
            Pay period details. Pagination and transaction fields are included
            only when requested.
          content:
            application/json:
              schema:
                type: object
                properties:
                  pagination:
                    type: object
                    description: >-
                      Present when limit or offset is supplied. total counts
                      payroll line items for the pay period, not just the
                      returned page.
                    properties:
                      offset:
                        type: integer
                      limit:
                        type: integer
                        description: Requested limit, or 0 when omitted.
                      total:
                        type: integer
                    required:
                      - offset
                      - limit
                      - total
                  payPeriod:
                    type: array
                    items:
                      type: object
                      properties:
                        payPeriodId:
                          type: string
                          format: uuid
                        payScheduleId:
                          type:
                            - string
                            - 'null'
                          format: uuid
                        companyId:
                          type: string
                          format: uuid
                        payPeriod:
                          type: string
                        deadLineToRunPayroll:
                          type:
                            - string
                            - 'null'
                        PayPeriodStatus:
                          type:
                            - string
                            - 'null'
                        total:
                          type:
                            - number
                            - 'null'
                        debitAmount:
                          type:
                            - number
                            - 'null'
                          description: >-
                            Calculated debit amount for the pay period, when
                            available.
                        employeeTaxSum:
                          type:
                            - number
                            - 'null'
                        employerTaxSum:
                          type:
                            - number
                            - 'null'
                        isProcessed:
                          type:
                            - boolean
                            - 'null'
                        payDate:
                          type:
                            - string
                            - 'null'
                        payEndDate:
                          type:
                            - string
                            - 'null'
                        payBeginDate:
                          type:
                            - string
                            - 'null'
                        workerType:
                          type:
                            - object
                            - 'null'
                          properties:
                            workerType:
                              type: string
                          required:
                            - workerType
                        payPeriodType:
                          type:
                            - object
                            - 'null'
                          properties:
                            payPeriodType:
                              type: string
                          required:
                            - payPeriodType
                        payrollLineItems:
                          type: array
                          items:
                            type: object
                            properties:
                              userId:
                                type: string
                                format: uuid
                              userName:
                                type: string
                                description: >-
                                  Employee name, or company name for a business
                                  contractor.
                              baseTotal:
                                type:
                                  - number
                                  - 'null'
                              numberOfLeaveDays:
                                type:
                                  - number
                                  - 'null'
                              lop:
                                type:
                                  - number
                                  - 'null'
                              retroAmount:
                                type:
                                  - number
                                  - 'null'
                              grossTotal:
                                type:
                                  - number
                                  - 'null'
                              netTotal:
                                type:
                                  - number
                                  - 'null'
                              payHours:
                                type:
                                  - number
                                  - 'null'
                              payRate:
                                type:
                                  - number
                                  - 'null'
                              standardWorkingHours:
                                type:
                                  - number
                                  - 'null'
                              differentialPay:
                                type: boolean
                                description: >-
                                  Whether the latest active wage record has
                                  differential pay enabled.
                              isMiscellaneousStateTaxApplicable:
                                type: boolean
                                description: >-
                                  Whether the employee has an active
                                  miscellaneous state tax configuration.
                              employeeWages:
                                type: array
                                description: >-
                                  Latest active employee wage record, when
                                  available. Differential-pay identifiers are
                                  excluded.
                                items:
                                  type: object
                                  properties:
                                    wageRate:
                                      type:
                                        - number
                                        - 'null'
                                    wageBasis:
                                      type:
                                        - object
                                        - 'null'
                                      properties:
                                        wageBasis:
                                          type: string
                                      required:
                                        - wageBasis
                                  required:
                                    - wageRate
                                    - wageBasis
                              paymentMethod:
                                type: string
                                description: Payment method label, included when available.
                              employeeTax:
                                type:
                                  - object
                                  - 'null'
                                properties:
                                  employeeTax:
                                    type:
                                      - number
                                      - 'null'
                                required:
                                  - employeeTax
                              employeePayrollTransactions:
                                type: array
                                description: >-
                                  Included only when includeTransactions is
                                  true.
                                items:
                                  type: object
                                  properties:
                                    transactionName:
                                      type: string
                                    transferAmount:
                                      type: number
                                    status:
                                      type: string
                                      enum:
                                        - failed
                                        - pending
                                        - returned
                                        - complete
                                        - cancelled
                                  required:
                                    - transactionName
                                    - transferAmount
                                    - status
                              employeeTaxDetails:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    taxName:
                                      type: string
                                    taxAmount:
                                      type: number
                                    taxAmountYtd:
                                      type: number
                                    isEmployerTax:
                                      type: boolean
                                  required:
                                    - taxName
                                    - taxAmount
                                    - taxAmountYtd
                                    - isEmployerTax
                              employerTaxDetails:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    taxName:
                                      type: string
                                    taxAmount:
                                      type: number
                                    taxAmountYtd:
                                      type: number
                                    isEmployerTax:
                                      type: boolean
                                  required:
                                    - taxName
                                    - taxAmount
                                    - taxAmountYtd
                                    - isEmployerTax
                              taxAdjustments:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    taxName:
                                      type:
                                        - string
                                        - 'null'
                                    taxAmount:
                                      type:
                                        - number
                                        - 'null'
                                  required:
                                    - taxName
                                    - taxAmount
                              miscellaneousStateTaxes:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    stateCode:
                                      type: string
                                    taxName:
                                      type: string
                                    taxDetails:
                                      type: array
                                      items:
                                        type: object
                                        description: >-
                                          Tax-specific form fields use camelCase
                                          names and string values, alongside
                                          noOfHours.
                                        properties:
                                          noOfHours:
                                            type: number
                                        additionalProperties:
                                          type: string
                                        required:
                                          - noOfHours
                                  required:
                                    - stateCode
                                    - taxName
                                    - taxDetails
                              overTimes:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                    amount:
                                      type: number
                                    numberOfHours:
                                      type: number
                                    multiplier:
                                      type:
                                        - number
                                        - string
                                      description: >-
                                        Overtime multiplier, or an empty string
                                        when unavailable.
                                  required:
                                    - type
                                    - amount
                                    - numberOfHours
                                    - multiplier
                              additionalCompensations:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    payrollLineItemAdditionalCompensationVertexCompensationIdentifier:
                                      type:
                                        - object
                                        - 'null'
                                      properties:
                                        compensationDescription:
                                          type: string
                                      required:
                                        - compensationDescription
                                    amount:
                                      type:
                                        - number
                                        - 'null'
                                  required:
                                    - >-
                                      payrollLineItemAdditionalCompensationVertexCompensationIdentifier
                                    - amount
                              deductions:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    vertexDeductionIdentifier:
                                      type:
                                        - object
                                        - 'null'
                                      properties:
                                        deductionDescription:
                                          type: string
                                      required:
                                        - deductionDescription
                                    amount:
                                      type:
                                        - number
                                        - 'null'
                                  required:
                                    - vertexDeductionIdentifier
                                    - amount
                              reimbursements:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    reimbursementType:
                                      type:
                                        - string
                                        - 'null'
                                    amount:
                                      type:
                                        - number
                                        - 'null'
                                  required:
                                    - reimbursementType
                                    - amount
                              garnishments:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    amount:
                                      type: number
                                    garnishmentType:
                                      type: string
                                    garnishmentAgency:
                                      type: string
                                  required:
                                    - amount
                              timeOffs:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    leaveType:
                                      type: string
                                    policyType:
                                      type: string
                                      description: >-
                                        Paid-time-off policy label, when
                                        available.
                                    amount:
                                      type: number
                                      description: >-
                                        Amount for an unpaid-time-off entry,
                                        when applicable.
                                    hours:
                                      type: number
                                  required:
                                    - leaveType
                                    - hours
                              payDetails:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    payPercentage:
                                      type:
                                        - number
                                        - 'null'
                                    amount:
                                      type:
                                        - number
                                        - 'null'
                                    employeePayAccount:
                                      type:
                                        - object
                                        - 'null'
                                      properties:
                                        accountName:
                                          type: string
                                      required:
                                        - accountName
                                    paymentMethod:
                                      type: string
                                      description: >-
                                        Payment method label, included when
                                        available.
                                  required:
                                    - payPercentage
                                    - amount
                                    - employeePayAccount
                              basePay:
                                type: array
                                description: >-
                                  Active imported base-pay entries. Omitted when
                                  none exist.
                                items:
                                  type: object
                                  properties:
                                    payCode:
                                      type:
                                        - string
                                        - 'null'
                                    payHours:
                                      type:
                                        - number
                                        - 'null'
                                    payRate:
                                      type:
                                        - number
                                        - 'null'
                                    multiplier:
                                      type:
                                        - number
                                        - 'null'
                                    amount:
                                      type:
                                        - number
                                        - 'null'
                                  required:
                                    - payCode
                                    - payHours
                                    - payRate
                                    - multiplier
                                    - amount
                            required:
                              - userId
                              - userName
                              - baseTotal
                              - numberOfLeaveDays
                              - lop
                              - retroAmount
                              - grossTotal
                              - netTotal
                              - payHours
                              - differentialPay
                              - isMiscellaneousStateTaxApplicable
                              - taxAdjustments
                              - employeeTaxDetails
                              - employerTaxDetails
                  companyPayrollTransactions:
                    type: array
                    description: >-
                      Company debit and credit transactions for the pay period.
                      Present at the response root only when includeTransactions
                      is true.
                    items:
                      type: object
                      properties:
                        transactionName:
                          type: string
                        transferAmount:
                          type: number
                        status:
                          type: string
                          enum:
                            - failed
                            - pending
                            - returned
                            - complete
                            - cancelled
                      required:
                        - transferAmount
                        - status
                        - transactionName
                required:
                  - payPeriod
              examples:
                '1':
                  summary: Paginated payroll details without transactions
                  value:
                    pagination:
                      offset: 0
                      limit: 50
                      total: 1
                    payPeriod:
                      - payPeriodId: 7BF6D637-9E8C-4AF6-A8B0-A24F36CA2F53
                        payScheduleId: 56925A03-645D-4AC8-BBDF-6960A1DFF394
                        companyId: 3986B7F2-AC6E-4694-A2B1-970167A98216
                        payPeriod: 09/01/2026 - 09/15/2026
                        deadLineToRunPayroll: '2026-09-14'
                        PayPeriodStatus: processed
                        total: 2025
                        debitAmount: 2140
                        employeeTaxSum: 250
                        employerTaxSum: 115
                        isProcessed: true
                        payDate: '2026-09-18'
                        payEndDate: '2026-09-15'
                        payBeginDate: '2026-09-01'
                        workerType:
                          workerType: W2
                        payPeriodType:
                          payPeriodType: Regular
                        payrollLineItems:
                          - userId: 4DF5A79A-3735-4588-95A6-B80D15CB5A5E
                            userName: Alex Morgan
                            baseTotal: 2000
                            numberOfLeaveDays: 0
                            lop: 0
                            retroAmount: 0
                            grossTotal: 2025
                            netTotal: 1775
                            payHours: 80
                            payRate: 25
                            standardWorkingHours: 8
                            differentialPay: true
                            isMiscellaneousStateTaxApplicable: false
                            employeeWages:
                              - wageRate: 25
                                wageBasis:
                                  wageBasis: Hourly
                            paymentMethod: Direct Deposit
                            employeeTax:
                              employeeTax: 250
                            employeeTaxDetails:
                              - taxName: Federal Withholding Tax
                                taxAmount: 250
                                taxAmountYtd: 2250
                                isEmployerTax: false
                            employerTaxDetails:
                              - taxName: Social Security
                                taxAmount: 115
                                taxAmountYtd: 1035
                                isEmployerTax: true
                            taxAdjustments:
                              - taxName: Federal Withholding Tax
                                taxAmount: 10.5
                            miscellaneousStateTaxes: []
                            overTimes: []
                            additionalCompensations: []
                            deductions: []
                            reimbursements: []
                            garnishments: []
                            timeOffs: []
                            payDetails:
                              - payPercentage: 100
                                amount: 1775
                                employeePayAccount:
                                  accountName: Primary Checking
                                paymentMethod: Direct Deposit
                            basePay:
                              - payCode: REG
                                payHours: 80
                                payRate: 25
                                multiplier: 1
                                amount: 2000
                              - payCode: SHIFT
                                payHours: 2.5
                                payRate: 10
                                multiplier: 1
                                amount: 25
                '2':
                  summary: Unpaginated response with company and employee transactions
                  value:
                    payPeriod:
                      - payPeriodId: 7BF6D637-9E8C-4AF6-A8B0-A24F36CA2F53
                        payScheduleId: 56925A03-645D-4AC8-BBDF-6960A1DFF394
                        companyId: 3986B7F2-AC6E-4694-A2B1-970167A98216
                        payPeriod: 09/01/2026 - 09/15/2026
                        deadLineToRunPayroll: '2026-09-14'
                        PayPeriodStatus: processed
                        total: 2025
                        debitAmount: 2140
                        employeeTaxSum: 250
                        employerTaxSum: 115
                        isProcessed: true
                        payDate: '2026-09-18'
                        payEndDate: '2026-09-15'
                        payBeginDate: '2026-09-01'
                        workerType:
                          workerType: W2
                        payPeriodType:
                          payPeriodType: Regular
                        payrollLineItems:
                          - userId: 4DF5A79A-3735-4588-95A6-B80D15CB5A5E
                            userName: Alex Morgan
                            baseTotal: 2000
                            numberOfLeaveDays: 0
                            lop: 0
                            retroAmount: 0
                            grossTotal: 2025
                            netTotal: 1775
                            payHours: 80
                            payRate: 25
                            standardWorkingHours: 8
                            differentialPay: false
                            isMiscellaneousStateTaxApplicable: false
                            employeeWages: []
                            employeeTax:
                              employeeTax: 250
                            employeePayrollTransactions:
                              - transactionName: AchCredit
                                transferAmount: 1775
                                status: complete
                            employeeTaxDetails:
                              - taxName: Federal Withholding Tax
                                taxAmount: 250
                                taxAmountYtd: 2250
                                isEmployerTax: false
                            employerTaxDetails:
                              - taxName: Social Security
                                taxAmount: 115
                                taxAmountYtd: 1035
                                isEmployerTax: true
                            taxAdjustments: []
                            miscellaneousStateTaxes: []
                            overTimes: []
                            additionalCompensations:
                              - payrollLineItemAdditionalCompensationVertexCompensationIdentifier:
                                  compensationDescription: Bonus
                                amount: 25
                            deductions: []
                            reimbursements: []
                            garnishments: []
                            timeOffs: []
                            payDetails:
                              - payPercentage: 100
                                amount: 1775
                                employeePayAccount: null
                    companyPayrollTransactions:
                      - transactionName: AchDebit
                        transferAmount: 2140
                        status: complete
          headers: {}
      deprecated: false
      security: []

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.