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

# Confirm a Census v2 W-2 employee match

> Revalidates the W-2 tax year and SSN last four, then links a needs-review upload to the selected employee.



## OpenAPI

````yaml /api-reference/cx/swagger.json post /cp/{client}/tasks/{task}/census-v2/w2/{w2}/_match
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/{client}/tasks/{task}/census-v2/w2/{w2}/_match:
    post:
      tags:
        - client-portal
      summary: Confirm a Census v2 W-2 employee match
      description: >-
        Revalidates the W-2 tax year and SSN last four, then links a
        needs-review upload to the selected employee.
      parameters:
        - description: Client ID
          name: client
          in: path
          required: true
          schema:
            type: string
        - description: Task ID
          name: task
          in: path
          required: true
          schema:
            type: string
        - description: W-2 upload ID
          name: w2
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pkg_routes_cp_census_v2.matchW2Request'
        description: Selected employee
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_cp_census_v2.matchW2Request:
      type: object
      properties:
        employee:
          type: string
        person_id:
          type: string
  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.