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

# Parse payroll report (client portal)

> Trigger parsing of uploaded payroll reports. Only works for "Upload Payroll Report" or "Census Data Collection" task types.



## OpenAPI

````yaml /api-reference/cx/swagger.json post /cp/payroll/_parse
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/_parse:
    post:
      tags:
        - client-portal
      summary: Parse payroll report (client portal)
      description: >-
        Trigger parsing of uploaded payroll reports. Only works for "Upload
        Payroll Report" or "Census Data Collection" task types.
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/pkg_routes_cp_payroll.ParsePayrollReportRequest
        description: Parse request (task, client, reports required)
        required: true
      responses:
        '200':
          description: Parse result
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_cp_payroll.ParsePayrollReportResponse
        '400':
          description: >-
            Bad request - invalid request body, task not found, or no reports
            provided
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '403':
          description: Forbidden - no access to client
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_cp_payroll.ParsePayrollReportRequest:
      type: object
      properties:
        client:
          type: string
        reports:
          type: array
          items:
            type: string
        task:
          type: string
    pkg_routes_cp_payroll.ParsePayrollReportResponse:
      type: object
      properties:
        ok:
          type: boolean
  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.