> ## 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 record keeper data

> Retrieves and parses record keeper transaction data from files in the client's shared folder. Supports John Hancock, Empower, and T Rowe record keepers. Files are downloaded from cloud storage and parsed to extract transaction data.



## OpenAPI

````yaml /api-reference/cx/swagger.json get /compliance/{client}/{plan}/{year}/_rk_data
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:
  /compliance/{client}/{plan}/{year}/_rk_data:
    get:
      tags:
        - compliance
      summary: Get record keeper data
      description: >-
        Retrieves and parses record keeper transaction data from files in the
        client's shared folder. Supports John Hancock, Empower, and T Rowe
        record keepers. Files are downloaded from cloud storage and parsed to
        extract transaction data.
      parameters:
        - description: Client ID
          name: client
          in: path
          required: true
          schema:
            type: string
        - description: Plan ID
          name: plan
          in: path
          required: true
          schema:
            type: string
        - description: Plan year
          name: year
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Record keeper transaction data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg_routes_compliance.GetRKDataResponse'
        '400':
          description: Bad request - invalid client ID, plan ID, or year
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '404':
          description: >-
            Client not found, no access, no shared folder, plan not found, RK
            folder not found, no files found, or unknown record keeper
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: >-
            Internal server error - failed to get files, download files, or
            parse record keeper files
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_compliance.GetRKDataResponse:
      type: object
      properties:
        beginning_balance:
          type: number
        deposits:
          type: number
        ending_balance:
          type: number
        expenses_fees:
          type: number
        gain_loss:
          type: number
        income:
          type: number
        withdrawals:
          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.