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

# Export owners and officers

> Export an Excel report of all owners, officers, and family members for a client and plan year. Replaces the former client-side export, which only included participants loaded in the browser (broken since list pagination).



## OpenAPI

````yaml /api-reference/cx/swagger.json post /packages/retirement/participants/{py}/{client}/_export_owners_officers
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/participants/{py}/{client}/_export_owners_officers:
    post:
      tags:
        - packages
      summary: Export owners and officers
      description: >-
        Export an Excel report of all owners, officers, and family members for a
        client and plan year. Replaces the former client-side export, which only
        included participants loaded in the browser (broken since list
        pagination).
      parameters:
        - description: Plan year
          name: py
          in: path
          required: true
          schema:
            type: integer
        - description: Client ID
          name: client
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/pkg_routes_packages_retirement_participants.ExportOwnersOfficersRequest
        description: Optional plan ID for the report header and MEP/PEP joinder scoping
      responses:
        '200':
          description: Excel file with owners and officers
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
        '400':
          description: Bad request - invalid client ID or plan year
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal server error
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_packages_retirement_participants.ExportOwnersOfficersRequest:
      type: object
      properties:
        plan:
          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.