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

# Generate plan activity report

> Generate an Excel report of plan activity with filtering and date range



## OpenAPI

````yaml /api-reference/cx/swagger.json post /packages/retirement/plans/_activity_report
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/plans/_activity_report:
    post:
      tags:
        - packages
      summary: Generate plan activity report
      description: Generate an Excel report of plan activity with filtering and date range
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/pkg_routes_packages_retirement_plans.PlanActivityReportRequest
        description: Activity report request
        required: true
      responses:
        '200':
          description: Excel file with activity report
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
        '400':
          description: Bad request - invalid request body
          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_plans.PlanActivityReportRequest:
      type: object
      properties:
        after:
          type: string
        before:
          type: string
        filters:
          $ref: >-
            #/components/schemas/pkg_routes_packages_retirement_plans.ListPlansFilters
    pkg_routes_packages_retirement_plans.ListPlansFilters:
      type: object
      properties:
        admin_status:
          description: MUST have both this, and PlanYear to filter by admin status...
          type: array
          items:
            type: string
        assignee:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        client:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        compliance_status:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        data:
          type: array
          items:
            $ref: '#/components/schemas/types.ListFilterData'
        fee_schedule:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        ids:
          type: array
          items:
            type: string
        include_joinders:
          type: boolean
        milestone_stage:
          description: >-
            MilestoneStage keeps plans at these stages of MilestoneWorkflow:
            milestone

            data_field_keys, or "not_started".
          type: array
          items:
            type: string
        parent_plan:
          type: string
        plan_structure:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        plan_tags:
          description: >-
            PlanTags is an alias for Tags so the cx-ui milestones rail can post
            a

            `plan_tags` chip on /packages/retirement/plans/_list without
            renaming

            its store keys. Anything here is merged into Tags before query
            application.
          allOf:
            - $ref: >-
                #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        plan_year:
          type: array
          items:
            type: integer
        provisions:
          type: object
          additionalProperties:
            type: string
        pye: {}
        record_keeper:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
        role_assignee:
          description: >-
            RoleAssignee: plans whose company's assignee in a role is (or isn't)
            a given user (ENG-9370).
          type: array
          items:
            $ref: >-
              #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.RoleAssigneeCondition
        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
        type:
          $ref: >-
            #/components/schemas/stax_ai_cx_cx-api_pkg_routes_filters.IncludeExcludeFilter
    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: {}
    stax_ai_cx_cx-api_pkg_routes_filters.RoleAssigneeCondition:
      type: object
      properties:
        op:
          type: string
        role:
          type: string
        user:
          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.