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

# Upload Pay Statements Json

> validate_only runs the full validation and classification surface and persists nothing; previews call this route.



## OpenAPI

````yaml https://app.usequanta.com/openapi/quanta-services-api/openapi.json post /admin_api/manual_task/upload_pay_statements_json
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://app.usequanta.com
    description: Production
security:
  - HTTPBearer: []
paths:
  /admin_api/manual_task/upload_pay_statements_json:
    post:
      tags:
        - admin_manual_tasks
        - quanta-services-api
      summary: Upload Pay Statements Json
      description: >-
        validate_only runs the full validation and classification surface and
        persists nothing; previews call this route.
      operationId: upload_pay_statements_json
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UploadPayStatementsJsonRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/UploadPayStatementsJsonResponse'
                  - $ref: >-
                      #/components/schemas/UploadPayStatementsJsonValidationResponse
                title: Response Upload Pay Statements Json
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    UploadPayStatementsJsonRequest:
      properties:
        source:
          $ref: '#/components/schemas/PayStatementSource'
        statements:
          items:
            $ref: '#/components/schemas/UploadPayStatementItem'
          type: array
          maxItems: 12
          minItems: 1
          title: Statements
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
        reason_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason Type
        validate_only:
          type: boolean
          title: Validate Only
          default: false
      type: object
      required:
        - source
        - statements
      title: UploadPayStatementsJsonRequest
    UploadPayStatementsJsonResponse:
      properties:
        created:
          items:
            $ref: '#/components/schemas/PayStatementUploadResult'
          type: array
          title: Created
        already_existed:
          items:
            $ref: '#/components/schemas/PayStatementExistingResult'
          type: array
          title: Already Existed
        workflow_ids:
          items:
            type: string
          type: array
          title: Workflow Ids
        workflow_start_failed:
          items:
            type: string
          type: array
          title: Workflow Start Failed
          default: []
      type: object
      required:
        - created
        - already_existed
        - workflow_ids
      title: UploadPayStatementsJsonResponse
    UploadPayStatementsJsonValidationResponse:
      properties:
        validate_only:
          type: boolean
          title: Validate Only
        would_create:
          items:
            $ref: '#/components/schemas/PayStatementValidationResult'
          type: array
          title: Would Create
        already_existed:
          items:
            $ref: '#/components/schemas/PayStatementExistingResult'
          type: array
          title: Already Existed
        mismatches:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Mismatches
      type: object
      required:
        - validate_only
        - would_create
        - already_existed
        - mismatches
      title: UploadPayStatementsJsonValidationResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PayStatementSource:
      type: string
      enum:
        - central_payroll
        - justworks
        - justworks_peo_invoice
        - sequoia_one
        - warp
      title: PayStatementSource
    UploadPayStatementItem:
      properties:
        pay_date:
          type: string
          format: date
          title: Pay Date
        pay_period_start_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Pay Period Start Date
        pay_period_end_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Pay Period End Date
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        rows:
          items:
            additionalProperties:
              type: string
            type: object
          type: array
          minItems: 1
          title: Rows
      type: object
      required:
        - pay_date
        - rows
      title: UploadPayStatementItem
    PayStatementUploadResult:
      properties:
        qid:
          type: string
          title: Qid
        pay_date:
          type: string
          title: Pay Date
        total:
          type: string
          title: Total
      type: object
      required:
        - qid
        - pay_date
        - total
      title: PayStatementUploadResult
    PayStatementExistingResult:
      properties:
        qids:
          items:
            type: string
          type: array
          title: Qids
        pay_date:
          type: string
          title: Pay Date
      type: object
      required:
        - qids
        - pay_date
      title: PayStatementExistingResult
    PayStatementValidationResult:
      properties:
        pay_date:
          type: string
          title: Pay Date
        total:
          type: string
          title: Total
      type: object
      required:
        - pay_date
        - total
      title: PayStatementValidationResult
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Quanta Services API scoped bearer token. Supported only on Services API
        routes.

````

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