> ## 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 company census statuses

> Returns one company row for a plan year with matching plans, company status, contacts, census workflow dates, employee count, and current census error count. Optional filters.census_status values: census_review_complete, census_review_requested, census_and_questionnaire, questionnaire_complete, census_data_received, census_request_sent, other. Joinder plans are excluded unless filters.include_joinders is set. Sortable fields: name, notes, primary_contact, plan_consultant, financial_advisor, census_requested_at, census_received_at, questionnaire_at, review_requested_at, review_completed_at, employees, census_errors. Companies with no census records and no workflow dates sort as the lowest value, so they lead an ascending page and trail a descending one. Dynamic `columns` entries accept `contacts:{role}`, `assignees:{role}`, `internal:{role}`, and `external:{role}`. Each company then includes only the assignments whose role matches one of those values exactly (case-insensitive, no fallback), with contact or user name, email, and phone filled in. `assignees` and `internal` are the same bucket. A requested bucket with no matches is an empty array; a bucket that was not requested is omitted.



## OpenAPI

````yaml /api-reference/cx/swagger.json post /packages/retirement/census/statuses/{planYear}/_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:
  /packages/retirement/census/statuses/{planYear}/_list:
    post:
      tags:
        - packages
      summary: List company census statuses
      description: >-
        Returns one company row for a plan year with matching plans, company
        status, contacts, census workflow dates, employee count, and current
        census error count. Optional filters.census_status values:
        census_review_complete, census_review_requested,
        census_and_questionnaire, questionnaire_complete, census_data_received,
        census_request_sent, other. Joinder plans are excluded unless
        filters.include_joinders is set. Sortable fields: name, notes,
        primary_contact, plan_consultant, financial_advisor,
        census_requested_at, census_received_at, questionnaire_at,
        review_requested_at, review_completed_at, employees, census_errors.
        Companies with no census records and no workflow dates sort as the
        lowest value, so they lead an ascending page and trail a descending one.
        Dynamic `columns` entries accept `contacts:{role}`, `assignees:{role}`,
        `internal:{role}`, and `external:{role}`. Each company then includes
        only the assignments whose role matches one of those values exactly
        (case-insensitive, no fallback), with contact or user name, email, and
        phone filled in. `assignees` and `internal` are the same bucket. A
        requested bucket with no matches is an empty array; a bucket that was
        not requested is omitted.
      parameters:
        - description: Plan year
          name: planYear
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/pkg_routes_packages_retirement_census_statuses.ListStatusesRequest
        description: Filters, sort, pagination, role names, and columns
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_packages_retirement_census_statuses.ListStatusesResponse
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '504':
          description: Gateway Timeout
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_packages_retirement_census_statuses.ListStatusesRequest:
      type: object
      properties:
        columns:
          description: >-
            Columns names the role assignments to resolve on each company.
            Entries are

            `contacts:{role}`, `assignees:{role}` or `internal:{role}` (internal
            users),

            and `external:{role}`. Only assignments whose role matches one of
            those

            values are returned, with the contact or user record filled in.
          type: array
          items:
            type: string
        filters:
          $ref: >-
            #/components/schemas/pkg_routes_packages_retirement_census_statuses.ListStatusesFilters
        page:
          $ref: '#/components/schemas/types.ListPagination'
        roles:
          $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_routes_query.RoleNames'
        sort:
          $ref: '#/components/schemas/types.ListSort'
    pkg_routes_packages_retirement_census_statuses.ListStatusesResponse:
      type: object
      properties:
        clients:
          type: array
          items:
            $ref: >-
              #/components/schemas/pkg_routes_packages_retirement_census_statuses.CensusStatusCompany
        total:
          type: integer
    pkg_routes_packages_retirement_census_statuses.ListStatusesFilters:
      type: object
      properties:
        assignee:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        census_status:
          description: Optional exclusive workflow status from the _stats response
          type: string
        client:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        client_tags:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        data:
          type: array
          items:
            $ref: '#/components/schemas/types.ListFilterData'
        include_joinders:
          description: >-
            IncludeJoinders keeps MEP/PEP joinder plans in the result. It
            defaults to

            false on the wire, so callers wanting them must say so.
          type: boolean
        plan_data:
          type: array
          items:
            $ref: '#/components/schemas/types.ListFilterData'
        plan_status:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        plan_structure:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        plan_tags:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        plan_type:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        provisions:
          type: object
          additionalProperties:
            type: string
        pye: {}
        search:
          type: string
        status:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        tags:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
    types.ListPagination:
      type: object
      properties:
        limit:
          type: integer
        skip:
          type: integer
    stax_ai_cx_cx-api_pkg_routes_query.RoleNames:
      type: object
      properties:
        advisor:
          type: string
        consultant:
          type: string
        consultant_fallback:
          type: string
        contact:
          type: string
    types.ListSort:
      type: object
      properties:
        field:
          type: string
        last: {}
        order:
          type: integer
    pkg_routes_packages_retirement_census_statuses.CensusStatusCompany:
      type: object
      properties:
        _id:
          type: string
        assignees:
          type: array
          items:
            $ref: >-
              #/components/schemas/pkg_routes_packages_retirement_census_statuses.CensusStatusAssigneeRole
        census_errors:
          type: integer
        census_received_at:
          type: string
        census_requested_at:
          type: string
        contacts:
          type: array
          items:
            $ref: >-
              #/components/schemas/pkg_routes_packages_retirement_census_statuses.CensusStatusContactRole
        employees:
          type: integer
        external:
          type: array
          items:
            $ref: >-
              #/components/schemas/pkg_routes_packages_retirement_census_statuses.CensusStatusContactRole
        financial_advisor:
          $ref: >-
            #/components/schemas/pkg_routes_packages_retirement_census_statuses.CensusStatusPerson
        name:
          type: string
        notes:
          type: string
        plan_consultant:
          type: string
        plans:
          type: array
          items:
            $ref: >-
              #/components/schemas/pkg_routes_packages_retirement_census_statuses.CensusStatusPlan
        primary_contact:
          $ref: >-
            #/components/schemas/pkg_routes_packages_retirement_census_statuses.CensusStatusPerson
        questionnaire_at:
          type: string
        review_completed_at:
          type: string
        review_requested_at:
          type: string
        status:
          type: string
        tags:
          type: array
          items:
            type: string
    stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter:
      type: object
      properties:
        exclude:
          type: array
          items:
            type: string
        include:
          type: array
          items:
            type: string
    types.ListFilterData:
      type: object
      properties:
        key:
          type: string
        op:
          type: string
        value: {}
    pkg_routes_packages_retirement_census_statuses.CensusStatusAssigneeRole:
      type: object
      properties:
        deal:
          type: string
        plan:
          type: string
        role:
          type: string
        user:
          $ref: >-
            #/components/schemas/pkg_routes_packages_retirement_census_statuses.CensusStatusPerson
    pkg_routes_packages_retirement_census_statuses.CensusStatusContactRole:
      type: object
      properties:
        contact:
          $ref: >-
            #/components/schemas/pkg_routes_packages_retirement_census_statuses.CensusStatusPerson
        deal:
          type: string
        inactive:
          type: boolean
        plan:
          type: string
        role:
          type: string
    pkg_routes_packages_retirement_census_statuses.CensusStatusPerson:
      type: object
      properties:
        _id:
          type: string
        email:
          type: string
        name:
          type: string
        phone:
          type: string
    pkg_routes_packages_retirement_census_statuses.CensusStatusPlan:
      type: object
      properties:
        _id:
          type: string
        code:
          type: string
        is_joinder:
          type: boolean
        name:
          type: string
        notes:
          type: string
        pye:
          type: string
        status:
          type: string
        tags:
          type: array
          items:
            type: string
        type:
          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.