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

# List payroll connections (client portal)

> List all payroll connections for the authenticated client with provider information. Supports filtering by status and provider type.



## OpenAPI

````yaml /api-reference/cx/swagger.json get /cp/payroll/_list
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /cp/payroll/_list:
    get:
      tags:
        - client-portal
      summary: List payroll connections (client portal)
      description: >-
        List all payroll connections for the authenticated client with provider
        information. Supports filtering by status and provider type.
      parameters:
        - description: Include pending connections (set to 'true')
          name: include_pending
          in: query
          schema:
            type: string
        - description: Include report-based connections (set to 'true')
          name: include_reports
          in: query
          schema:
            type: string
        - description: 'Limit number of results (default: 100)'
          name: limit
          in: query
          schema:
            type: integer
        - description: 'Skip number of results (default: 0)'
          name: skip
          in: query
          schema:
            type: integer
      responses:
        '200':
          description: List of payroll connections
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg_routes_cp_payroll.ConnectionsResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_cp_payroll.ConnectionsResponse:
      type: object
      properties:
        connections:
          type: array
          items:
            $ref: '#/components/schemas/pkg_routes_cp_payroll.ConnectionWithProvider'
        total:
          type: integer
    pkg_routes_cp_payroll.ConnectionWithProvider:
      type: object
      properties:
        _id:
          type: string
        active:
          type: boolean
        assignee:
          type: string
        client:
          type: string
        client_name:
          type: string
        connect360:
          type: boolean
        connected_by:
          type: string
        connection_id:
          description: Finch Connect ID
          type: string
        created_at:
          type: string
        credentials:
          type: string
        deleted_at:
          type: string
        departments:
          type: array
          items:
            $ref: '#/components/schemas/types.PayrollDepartment'
        error:
          type: string
        finch_message:
          type: string
        finch_status:
          $ref: '#/components/schemas/finchgo.ConnectionStatusType'
        frequency:
          type: string
        integration:
          $ref: '#/components/schemas/sharedtypes.PayrollProvider'
        last_sync:
          type: string
        locations:
          type: array
          items:
            $ref: '#/components/schemas/types.Address'
        locked_at:
          type: string
        mapping:
          type: array
          items:
            $ref: '#/components/schemas/types.PayrollAPIMapping'
        mapping_status:
          type: string
        message:
          type: string
        missing_mapping:
          type: boolean
        pending_reports:
          type: integer
        provider:
          type: string
        provider_information:
          $ref: '#/components/schemas/types.PayrollProvider'
        provider_locations:
          type: array
          items:
            $ref: '#/components/schemas/types.ProviderLocation'
        source:
          type: string
        status:
          $ref: '#/components/schemas/sharedtypes.ClientPayrollStatus'
        team:
          type: string
        team_name:
          type: string
        updated_at:
          type: string
    types.PayrollDepartment:
      type: object
      properties:
        name:
          type: string
        parent_name:
          type: string
    finchgo.ConnectionStatusType:
      type: string
      enum:
        - pending
        - processing
        - connected
        - error_no_account_setup
        - error_permissions
        - reauth
        - pending
        - processing
        - connected
        - error_no_account_setup
        - error_permissions
        - reauth
      x-enum-varnames:
        - ConnectionStatusTypePending
        - ConnectionStatusTypeProcessing
        - ConnectionStatusTypeConnected
        - ConnectionStatusTypeErrorNoAccountSetup
        - ConnectionStatusTypeErrorPermissions
        - ConnectionStatusTypeReauth
    sharedtypes.PayrollProvider:
      type: string
      enum:
        - finch
        - payroll_integrations
      x-enum-varnames:
        - PayrollProviderFinch
        - PayrollProviderPayrollIntegrations
    types.Address:
      type: object
      properties:
        attn:
          type: string
        city:
          type: string
        country:
          type: string
        desc:
          type: string
        state:
          type: string
        street:
          type: string
        street2:
          type: string
        unit:
          type: string
        zip:
          type: string
    types.PayrollAPIMapping:
      type: object
      properties:
        ee_pre_tax:
          type: array
          items:
            $ref: '#/components/schemas/types.PayrollAPIMappingSource'
        ee_roth:
          type: array
          items:
            $ref: '#/components/schemas/types.PayrollAPIMappingSource'
        er_match:
          type: array
          items:
            $ref: '#/components/schemas/types.PayrollAPIMappingSource'
        er_non_elective:
          type: array
          items:
            $ref: '#/components/schemas/types.PayrollAPIMappingSource'
        er_qaca_match:
          type: array
          items:
            $ref: '#/components/schemas/types.PayrollAPIMappingSource'
        er_safe_harbor_match:
          type: array
          items:
            $ref: '#/components/schemas/types.PayrollAPIMappingSource'
        er_safe_harbor_non_elective:
          type: array
          items:
            $ref: '#/components/schemas/types.PayrollAPIMappingSource'
        hpi_compensation:
          type: array
          items:
            $ref: '#/components/schemas/types.PayrollAPIMappingSource'
        ignore:
          description: >-
            Fields to ignore - if there is a new field that's not in this list,
            we will flag for review
          type: array
          items:
            type: string
        loan_repayment:
          description: >-
            Loan repayments (spec 5.10): collected into
            employee_census.loan_payments, not compensation.
          type: array
          items:
            $ref: '#/components/schemas/types.PayrollAPIMappingSource'
        plan:
          description: For each field, we take the sum of all sources
          type: string
        plan_compensation:
          type: array
          items:
            $ref: '#/components/schemas/types.PayrollAPIMappingSource'
        prevailing_wage:
          type: array
          items:
            $ref: '#/components/schemas/types.PayrollAPIMappingSource'
        statutory_compensation:
          description: This is the base salary
          type: array
          items:
            $ref: '#/components/schemas/types.PayrollAPIMappingSource'
    types.PayrollProvider:
      type: object
      properties:
        _id:
          type: string
        auth_method:
          $ref: >-
            #/components/schemas/finchgo.ConnectSessionNewParamsIntegrationAuthMethod
        available_new_scopes:
          type: array
          items:
            $ref: '#/components/schemas/finchgo.ConnectSessionNewParamsProduct'
        available_reauth_scopes:
          type: array
          items:
            $ref: >-
              #/components/schemas/finchgo.ConnectSessionReauthenticateParamsProduct
        beta:
          type: boolean
        color:
          type: string
        created_at:
          type: string
        docs_url:
          type: string
        enabled:
          type: boolean
        icon:
          type: string
        is_assisted:
          type: boolean
        logo:
          type: string
        manual:
          type: boolean
        mfa_required:
          type: boolean
        name:
          type: string
        provider:
          type: string
        remote_id:
          type: string
        updated_at:
          type: string
    types.ProviderLocation:
      type: object
      properties:
        address:
          $ref: '#/components/schemas/types.Address'
        code:
          type: string
        external_id:
          type: string
        name:
          type: string
    sharedtypes.ClientPayrollStatus:
      type: string
      enum:
        - waiting_on_client
        - pending
        - syncing
        - synced
        - awaiting_mapping
        - needs_review
        - error
        - reauth_required
        - parsed_reports
        - census_imported
        - processed
        - processing
        - no_data
      x-enum-varnames:
        - ClientPayrollStatusWaitingOnClient
        - ClientPayrollStatusPending
        - ClientPayrollStatusSyncing
        - ClientPayrollStatusSynced
        - ClientPayrollStatusAwaitingMapping
        - ClientPayrollStatusNeedsReview
        - ClientPayrollStatusError
        - ClientPayrollStatusReauthRequired
        - ClientPayrollStatusParsedReports
        - ClientPayrollStatusCensusImported
        - ClientPayrollStatusProcessed
        - ClientPayrollStatusProcessing
        - ClientPayrollStatusNoData
    types.PayrollAPIMappingSource:
      type: object
      properties:
        minus:
          description: >-
            If any of these are empty, we won't look at them. At least one has
            to be set
          type: boolean
        name:
          description: The name of the source
          type: string
        type:
          description: 'The type of source: Earnings, Taxes, Contributions'
          type: string
    finchgo.ConnectSessionNewParamsIntegrationAuthMethod:
      type: string
      enum:
        - assisted
        - credential
        - oauth
        - api_token
      x-enum-varnames:
        - ConnectSessionNewParamsIntegrationAuthMethodAssisted
        - ConnectSessionNewParamsIntegrationAuthMethodCredential
        - ConnectSessionNewParamsIntegrationAuthMethodOAuth
        - ConnectSessionNewParamsIntegrationAuthMethodAPIToken
    finchgo.ConnectSessionNewParamsProduct:
      type: string
      enum:
        - company
        - directory
        - individual
        - employment
        - payment
        - pay_statement
        - benefits
        - ssn
        - deduction
        - documents
      x-enum-varnames:
        - ConnectSessionNewParamsProductCompany
        - ConnectSessionNewParamsProductDirectory
        - ConnectSessionNewParamsProductIndividual
        - ConnectSessionNewParamsProductEmployment
        - ConnectSessionNewParamsProductPayment
        - ConnectSessionNewParamsProductPayStatement
        - ConnectSessionNewParamsProductBenefits
        - ConnectSessionNewParamsProductSsn
        - ConnectSessionNewParamsProductDeduction
        - ConnectSessionNewParamsProductDocuments
    finchgo.ConnectSessionReauthenticateParamsProduct:
      type: string
      enum:
        - company
        - directory
        - individual
        - employment
        - payment
        - pay_statement
        - benefits
        - ssn
        - deduction
        - documents
      x-enum-varnames:
        - ConnectSessionReauthenticateParamsProductCompany
        - ConnectSessionReauthenticateParamsProductDirectory
        - ConnectSessionReauthenticateParamsProductIndividual
        - ConnectSessionReauthenticateParamsProductEmployment
        - ConnectSessionReauthenticateParamsProductPayment
        - ConnectSessionReauthenticateParamsProductPayStatement
        - ConnectSessionReauthenticateParamsProductBenefits
        - ConnectSessionReauthenticateParamsProductSsn
        - ConnectSessionReauthenticateParamsProductDeduction
        - ConnectSessionReauthenticateParamsProductDocuments
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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