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

# Get an employer census submission

> Returns the tenant-scoped baseline, draft/submitted snapshot, employer-field history, and W-2 processing metadata.



## OpenAPI

````yaml /api-reference/cx/swagger.json get /packages/retirement/census/submissions/{submission}
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/submissions/{submission}:
    get:
      tags:
        - packages
      summary: Get an employer census submission
      description: >-
        Returns the tenant-scoped baseline, draft/submitted snapshot,
        employer-field history, and W-2 processing metadata.
      parameters:
        - description: Submission ID
          name: submission
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.Submission'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    stax_ai_cx_cx-api_pkg_censusv2.Submission:
      type: object
      properties:
        _id:
          type: string
        client:
          type: string
        created_at:
          type: string
        current_section:
          $ref: '#/components/schemas/sharedtypes.EmployerCensusSection'
        draft:
          $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.Snapshot'
        employee_categories:
          type: array
          items:
            type: string
        employee_data_columns:
          type: array
          items:
            $ref: '#/components/schemas/sharedtypes.CensusColumnKey'
        employee_data_policy:
          $ref: '#/components/schemas/sharedtypes.CensusV2EmployeeDataPolicy'
        employment_types:
          type: array
          items:
            type: string
        flow_preset:
          $ref: '#/components/schemas/sharedtypes.CensusV2FlowPreset'
        history:
          type: array
          items:
            $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.FieldHistory'
        plan:
          type: string
        plan_year:
          type: integer
        plan_year_end:
          type: string
        plan_year_start:
          type: string
        prior_year:
          $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.Snapshot'
        proposal:
          type: string
        reports:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.ReportFile'
        required_contact_roles:
          type: array
          items:
            type: string
        required_sections:
          type: array
          items:
            $ref: '#/components/schemas/sharedtypes.EmployerCensusSection'
        review_status:
          $ref: '#/components/schemas/sharedtypes.EmployerCensusReviewStatus'
        revision:
          type: integer
        schema_version:
          type: integer
        section_statuses:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/sharedtypes.EmployerCensusSectionStatus'
        status:
          $ref: '#/components/schemas/sharedtypes.EmployerCensusSubmissionStatus'
        submitted_at:
          type: string
        submitted_by:
          type: string
        submitted_snapshot:
          $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.Snapshot'
        task:
          type: string
        team:
          type: string
        updated_at:
          type: string
        validation_profile:
          type: string
        version:
          type: integer
        w2s:
          type: array
          items:
            $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.W2Document'
    sharedtypes.EmployerCensusSection:
      type: string
      enum:
        - company
        - contacts
        - ownership
        - payroll_census
      x-enum-varnames:
        - EmployerCensusSectionCompany
        - EmployerCensusSectionContacts
        - EmployerCensusSectionOwnership
        - EmployerCensusSectionPayrollCensus
    stax_ai_cx_cx-api_pkg_censusv2.Snapshot:
      type: object
      properties:
        businesses:
          type: array
          items:
            $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.Business'
        company:
          $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.CompanyFacts'
        contacts:
          type: array
          items:
            $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.Contact'
        employee_data:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.EmployeeDataEvidence
        family_relationships:
          type: array
          items:
            $ref: >-
              #/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.FamilyRelationship
        goals:
          $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.ProposalGoals'
        none_confirmed:
          type: object
          additionalProperties:
            type: boolean
        officers:
          type: array
          items:
            $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.Officer'
        ownership:
          type: array
          items:
            $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.OwnershipLink'
        people:
          type: array
          items:
            $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.Person'
        plan_design_preferences:
          type: object
          additionalProperties: {}
        preferences:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.ProposalPreferences
        proposal_census:
          $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.ProposalCensus'
        proposal_ownership:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.ProposalOwnership
        screening:
          $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.Screening'
    sharedtypes.CensusColumnKey:
      type: string
      enum:
        - first_name
        - last_name
        - ssn
        - birth_date
        - hire_date
        - terminated
        - termination_date
        - termination_reason
        - rehire_date
        - hours_worked
        - employment_type
        - employee_category
        - gross_compensation
        - statutory_compensation
        - gross_minus_exclusions
        - hpi_compensation
        - new_compensation_group
        - prevailing_wage
        - compensation_from_entry
        - pre_tax_deferral
        - roth_deferral
        - match_contribution
        - safe_harbor_match
        - qaca_match
        - safe_harbor_non_elective
        - profit_sharing
        - division_code
        - ct_group_code
      x-enum-varnames:
        - CensusColumnFirstName
        - CensusColumnLastName
        - CensusColumnSSN
        - CensusColumnBirthDate
        - CensusColumnHireDate
        - CensusColumnTerminated
        - CensusColumnTerminationDate
        - CensusColumnTerminationReason
        - CensusColumnRehireDate
        - CensusColumnHoursWorked
        - CensusColumnEmploymentType
        - CensusColumnEmployeeCategory
        - CensusColumnGrossCompensation
        - CensusColumnStatutoryCompensation
        - CensusColumnGrossMinusExclusions
        - CensusColumnHPICompensation
        - CensusColumnNewCompensationGroup
        - CensusColumnPrevailingWage
        - CensusColumnCompensationFromEntry
        - CensusColumnPreTaxDeferral
        - CensusColumnRothDeferral
        - CensusColumnMatchContribution
        - CensusColumnSafeHarborMatch
        - CensusColumnQACAMatch
        - CensusColumnSafeHarborNonElective
        - CensusColumnProfitSharing
        - CensusColumnDivisionCode
        - CensusColumnCTGroupCode
    sharedtypes.CensusV2EmployeeDataPolicy:
      type: string
      enum:
        - any
        - payroll_or_census
        - census_only
        - census_or_w2
        - w2_only
      x-enum-varnames:
        - CensusV2EmployeeDataPolicyAny
        - CensusV2EmployeeDataPolicyPayrollOrCensus
        - CensusV2EmployeeDataPolicyCensusOnly
        - CensusV2EmployeeDataPolicyCensusOrW2
        - CensusV2EmployeeDataPolicyW2Only
    sharedtypes.CensusV2FlowPreset:
      type: string
      enum:
        - company_contacts_ownership_payroll_census
        - company_contacts_ownership
        - payroll_census_only
      x-enum-varnames:
        - CensusV2FlowPresetCompanyContactsOwnershipPayrollCensus
        - CensusV2FlowPresetCompanyContactsOwnership
        - CensusV2FlowPresetPayrollCensusOnly
    stax_ai_cx_cx-api_pkg_censusv2.FieldHistory:
      type: object
      properties:
        _id:
          type: string
        actor:
          type: string
        created_at:
          type: string
        diffs:
          type: array
          items:
            $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.FieldDiff'
        edited_fields:
          type: array
          items:
            type: string
        revision:
          type: integer
        section:
          $ref: '#/components/schemas/sharedtypes.EmployerCensusSection'
    stax_ai_cx_cx-api_pkg_censusv2.ReportFile:
      type: object
      properties:
        file:
          type: string
        generated_at:
          type: string
        revision:
          type: integer
    sharedtypes.EmployerCensusReviewStatus:
      type: string
      enum:
        - pending
        - in_review
        - changes_requested
        - approved
      x-enum-varnames:
        - EmployerCensusReviewStatusPending
        - EmployerCensusReviewStatusInReview
        - EmployerCensusReviewStatusChangesRequested
        - EmployerCensusReviewStatusApproved
    sharedtypes.EmployerCensusSectionStatus:
      type: string
      enum:
        - not_started
        - in_progress
        - completed
      x-enum-varnames:
        - EmployerCensusSectionStatusNotStarted
        - EmployerCensusSectionStatusInProgress
        - EmployerCensusSectionStatusCompleted
    sharedtypes.EmployerCensusSubmissionStatus:
      type: string
      enum:
        - draft
        - submitted
        - reopened
      x-enum-varnames:
        - EmployerCensusSubmissionStatusDraft
        - EmployerCensusSubmissionStatusSubmitted
        - EmployerCensusSubmissionStatusReopened
    stax_ai_cx_cx-api_pkg_censusv2.W2Document:
      type: object
      properties:
        _id:
          type: string
        compensation_applicable:
          type: boolean
        confidence:
          type: number
        created_at:
          type: string
        document_type:
          type: string
        employee:
          type: string
        employee_name:
          type: string
        error_code:
          type: string
        file:
          type: string
        form_status:
          type: string
        gross_income:
          type: string
        gross_receipts:
          type: string
        guaranteed_payments_services:
          type: string
        mime_type:
          type: string
        name:
          type: string
        net_profit:
          type: string
        ordinary_income:
          type: string
        parsed_at:
          type: string
        retirement_plan:
          type: boolean
        roster_person:
          description: >-
            RosterPerson is set when the document matched a W-2 roster entry
            that

            has no employee record yet (the employee is created on submit).
          type: string
        self_employment_earnings:
          type: string
        ssn_last_four:
          type: string
        status:
          $ref: '#/components/schemas/sharedtypes.W2ParseStatus'
        supplemental_only:
          type: boolean
        tax_year:
          type: integer
        total_expenses:
          type: string
        warning:
          type: string
    stax_ai_cx_cx-api_pkg_censusv2.Business:
      type: object
      properties:
        activity:
          type: string
        ein:
          type: string
        employee_count:
          type: integer
        end_date:
          type: string
        entity_type:
          type: string
        has_retirement_plan:
          type: boolean
        id:
          type: string
        name:
          type: string
        notes:
          type: string
        relationship:
          type: string
        retirement_plans:
          type: array
          items:
            $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.BusinessPlan'
        service_details:
          type: string
        service_direction:
          type: string
        service_end_date:
          type: string
        service_period:
          type: string
        service_revenue_percent:
          type: string
        service_start_date:
          type: string
        services:
          type: boolean
        shared_workers:
          type: boolean
        start_date:
          type: string
        tax_treatment:
          type: string
        workforce_details:
          type: string
    stax_ai_cx_cx-api_pkg_censusv2.CompanyFacts:
      type: object
      properties:
        activity:
          type: string
        city:
          type: string
        country:
          type: string
        current_plan_asset_balance:
          type: number
        current_recordkeeper:
          type: string
        ein:
          type: string
        employee_count:
          type: integer
        entity_type:
          type: string
        fiscal_year_end:
          type: string
        id:
          type: string
        naics_code:
          type: string
        name:
          type: string
        payroll_frequency:
          type: string
        payroll_provider_name:
          type: string
        plan_origin:
          type: string
        state:
          type: string
        street:
          type: string
        tax_treatment:
          type: string
        unit:
          type: string
        zip:
          type: string
    stax_ai_cx_cx-api_pkg_censusv2.Contact:
      type: object
      properties:
        company:
          type: string
        email:
          type: string
        id:
          type: string
        kind:
          type: string
        name:
          type: string
        person_id:
          type: string
        phone:
          type: string
        responsibilities:
          type: array
          items:
            type: string
    stax_ai_cx_cx-api_pkg_censusv2.EmployeeDataEvidence:
      type: object
      properties:
        accepted_w2_count:
          type: integer
        acknowledgements:
          type: array
          items:
            type: string
        census_rows:
          type: array
          items:
            $ref: >-
              #/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.EmployeeCensusRow
        census_uploaded:
          type: boolean
        known_employee_ids:
          description: |-
            KnownEmployees is sent by the portal with an employee-data save: the
            employees whose census rows it has shown the sponsor. Only those can
            have been removed by the sponsor (ENG-9592). Never stored.
            Hex strings, checked by KnownEmployeeIDs: ObjectID's JSON decoding
            would take any 12-byte value as an id.
          type: array
          items:
            type: string
        manual_complete:
          type: boolean
        method:
          type: string
        payroll_connected:
          type: boolean
        roster:
          type: array
          items:
            $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.Person'
        supplemental_complete:
          type: boolean
    stax_ai_cx_cx-api_pkg_censusv2.FamilyRelationship:
      type: object
      properties:
        end_date:
          type: string
        from_person_id:
          type: string
        id:
          type: string
        notes:
          type: string
        relationship:
          $ref: '#/components/schemas/sharedtypes.EmployerCensusRelationshipType'
        start_date:
          type: string
        to_person_id:
          type: string
    stax_ai_cx_cx-api_pkg_censusv2.ProposalGoals:
      type: object
      properties:
        notes:
          type: string
        owner_retirement_age:
          type: integer
        priorities:
          type: array
          items:
            type: string
        staff_budget:
          type: number
    stax_ai_cx_cx-api_pkg_censusv2.Officer:
      type: object
      properties:
        business_id:
          type: string
        end_date:
          type: string
        id:
          type: string
        person_id:
          type: string
        start_date:
          type: string
        title:
          type: string
    stax_ai_cx_cx-api_pkg_censusv2.OwnershipLink:
      type: object
      properties:
        business_id:
          type: string
        employment_status:
          $ref: '#/components/schemas/sharedtypes.EmployerCensusOwnerEmploymentStatus'
        end_date:
          type: string
        id:
          type: string
        measure:
          $ref: '#/components/schemas/sharedtypes.EmployerCensusOwnershipMeasure'
        notes:
          type: string
        organization_id:
          type: string
        owner_type:
          $ref: '#/components/schemas/sharedtypes.EmployerCensusOwnerType'
        percentage:
          type: string
        person_id:
          type: string
        second_measure:
          $ref: '#/components/schemas/sharedtypes.EmployerCensusOwnershipMeasure'
        second_percentage:
          type: string
        start_date:
          type: string
        stock_class:
          type: string
        works_for_company:
          type: boolean
    stax_ai_cx_cx-api_pkg_censusv2.Person:
      type: object
      properties:
        birth_date:
          type: string
        employee_id:
          type: string
        hire_date:
          type: string
        id:
          type: string
        name:
          type: string
        ssn:
          type: string
        ssn_last_four:
          type: string
        termination_date:
          type: string
    stax_ai_cx_cx-api_pkg_censusv2.ProposalPreferences:
      type: object
      properties:
        automatic_enrollment:
          type: string
        contribution_style:
          type: string
        notes:
          type: string
        roth:
          type: string
        selected_alternative_id:
          type: string
    stax_ai_cx_cx-api_pkg_censusv2.ProposalCensus:
      type: object
      properties:
        balance_basis:
          type: string
        balances_complete:
          type: boolean
        deferred:
          type: boolean
        determination_date:
          type: string
        example:
          type: boolean
        rows:
          type: array
          items:
            $ref: >-
              #/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.ProposalCensusRow
    stax_ai_cx_cx-api_pkg_censusv2.ProposalOwnership:
      type: object
      properties:
        family_answer:
          type: string
        family_notes:
          type: string
        owners:
          type: array
          items:
            $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.ProposalOwner'
        related_business_answer:
          type: string
        related_business_notes:
          type: string
        related_business_treat_as_no_for_proposal:
          type: boolean
        remaining_owners_under_one_percent:
          type: boolean
        shared_staff_answer:
          type: string
        shared_staff_notes:
          type: string
        shared_staff_treat_as_no_for_proposal:
          type: boolean
    stax_ai_cx_cx-api_pkg_censusv2.Screening:
      type: object
      properties:
        indirect_ownership:
          type: boolean
        other_business_ownership:
          type: boolean
        regular_business_work:
          type: boolean
    stax_ai_cx_cx-api_pkg_censusv2.FieldDiff:
      type: object
      properties:
        after: {}
        before: {}
        label:
          description: |-
            Label is the path with record ids replaced by names, as the report
            prints it. Only ReadableHistory sets it; it is never stored.
          type: string
        path:
          type: string
    sharedtypes.W2ParseStatus:
      type: string
      enum:
        - uploaded
        - processing
        - matched
        - needs_review
        - wrong_year
        - failed
      x-enum-varnames:
        - W2ParseStatusUploaded
        - W2ParseStatusProcessing
        - W2ParseStatusMatched
        - W2ParseStatusNeedsReview
        - W2ParseStatusWrongYear
        - W2ParseStatusFailed
    stax_ai_cx_cx-api_pkg_censusv2.BusinessPlan:
      type: object
      properties:
        name:
          type: string
        type:
          type: string
        year:
          type: integer
    stax_ai_cx_cx-api_pkg_censusv2.EmployeeCensusRow:
      type: object
      properties:
        birth_date:
          type: string
        compensation_from_entry:
          type: number
        ct_group_code:
          type: string
        division_code:
          type: string
        employee_category:
          type: string
        employee_id:
          type: string
        employment_type:
          type: string
        first_name:
          type: string
        gross_compensation:
          type: number
        gross_minus_exclusions:
          type: number
        hire_date:
          type: string
        hours_worked:
          type: number
        hpi_compensation:
          type: number
        id:
          type: string
        last_name:
          type: string
        match_contribution:
          type: number
        new_compensation_group:
          type: string
        pre_tax_deferral:
          type: number
        prevailing_wage:
          type: number
        profit_sharing:
          type: number
        qaca_match:
          type: number
        rehire_date:
          type: string
        roth_deferral:
          type: number
        safe_harbor_match:
          type: number
        safe_harbor_non_elective:
          type: number
        ssn:
          type: string
        statutory_compensation:
          type: number
        terminated:
          type: boolean
        termination_date:
          type: string
        termination_reason:
          type: string
    sharedtypes.EmployerCensusRelationshipType:
      type: string
      enum:
        - spouse
        - child
        - parent
        - grandchild
        - grandparent
        - sibling
        - other
      x-enum-varnames:
        - EmployerCensusRelationshipTypeSpouse
        - EmployerCensusRelationshipTypeChild
        - EmployerCensusRelationshipTypeParent
        - EmployerCensusRelationshipTypeGrandchild
        - EmployerCensusRelationshipTypeGrandparent
        - EmployerCensusRelationshipTypeSibling
        - EmployerCensusRelationshipTypeOther
    sharedtypes.EmployerCensusOwnerEmploymentStatus:
      type: string
      enum:
        - not_employee
        - employee
        - officer
      x-enum-varnames:
        - EmployerCensusOwnerEmploymentStatusNotEmployee
        - EmployerCensusOwnerEmploymentStatusEmployee
        - EmployerCensusOwnerEmploymentStatusOfficer
    sharedtypes.EmployerCensusOwnershipMeasure:
      type: string
      enum:
        - reported_ownership
        - voting_power
        - economic_value
        - capital
        - profits
      x-enum-varnames:
        - EmployerCensusOwnershipMeasureReportedOwnership
        - EmployerCensusOwnershipMeasureVotingPower
        - EmployerCensusOwnershipMeasureEconomicValue
        - EmployerCensusOwnershipMeasureCapital
        - EmployerCensusOwnershipMeasureProfits
    sharedtypes.EmployerCensusOwnerType:
      type: string
      enum:
        - person
        - organization
      x-enum-varnames:
        - EmployerCensusOwnerTypePerson
        - EmployerCensusOwnerTypeOrganization
    stax_ai_cx_cx-api_pkg_censusv2.ProposalCensusRow:
      type: object
      properties:
        annual_compensation:
          type: number
        birth_date:
          type: string
        catch_up_included:
          type: number
        classification:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.ProposalClassification
        classification_assumed_complete_for_proposal:
          type: boolean
        coverage_exclusion:
          type: string
        current_hours:
          type: number
        deferral_assumption:
          type: number
        deferral_tax_election:
          type: string
        determination_balance:
          type: number
        distribution_addbacks:
          type: number
        employed_last_day:
          type: boolean
        employee_after_tax:
          type: number
        employee_id:
          type: string
        example:
          type: boolean
        family_label:
          type: string
        family_relationship:
          type: string
        first_name:
          type: string
        forfeitures:
          type: number
        former_key:
          type: boolean
        hire_date:
          type: string
        id:
          type: string
        included:
          type: boolean
        last_name:
          type: string
        match:
          type: number
        name:
          type: string
        no_service:
          type: boolean
        nonelective:
          type: number
        officer:
          type: boolean
        opening_balance:
          type: number
        other_annual_additions:
          type: number
        other_plan_deferrals:
          type: number
        ownership_percent:
          type: number
        plan_compensation:
          type: number
        prior_compensation:
          type: number
        prior_compensation_year:
          type: integer
        prior_fica_wages:
          type: number
        prior_fica_wages_year:
          type: integer
        prior_hours:
          type: number
        prior_ownership_percent:
          type: number
        profit_sharing:
          type: number
        rehire_date:
          type: string
        rollover_exclusions:
          type: number
        roth_deferrals:
          type: number
        section_415_compensation:
          type: number
        statutory_exclusion:
          type: boolean
        termination_date:
          type: string
        test_compensation:
          type: number
        total_deferrals:
          type: number
    stax_ai_cx_cx-api_pkg_censusv2.ProposalOwner:
      type: object
      properties:
        effective_date:
          type: string
        employee_owners:
          type: array
          items:
            $ref: >-
              #/components/schemas/stax_ai_cx_cx-api_pkg_censusv2.ProposalEntityEmployeeOwner
        employee_ownership_answer:
          type: string
        id:
          type: string
        name:
          type: string
        owner_type:
          type: string
        ownership_percent:
          type: number
        role:
          type: string
    stax_ai_cx_cx-api_pkg_censusv2.ProposalClassification:
      type: object
      properties:
        hce:
          type: boolean
        input_hash:
          type: string
        key:
          type: boolean
        pending:
          type: boolean
        reasons:
          type: array
          items:
            type: string
        rule_version:
          type: string
        top_paid_group:
          type: boolean
    stax_ai_cx_cx-api_pkg_censusv2.ProposalEntityEmployeeOwner:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        ownership_percent:
          type: number
  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.