> ## 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 plan provisions

> Get all provisions for a retirement plan, sorted by effective date descending



## OpenAPI

````yaml /api-reference/cx/swagger.json get /packages/retirement/plans/{plan}/_provisions
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/{plan}/_provisions:
    get:
      tags:
        - packages
      summary: Get plan provisions
      description: >-
        Get all provisions for a retirement plan, sorted by effective date
        descending
      parameters:
        - description: Plan ID
          name: plan
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: List of plan provisions
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_packages_retirement_plans_provisions.GetPlanProvisionsResponse
        '400':
          description: Bad request - invalid plan ID
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_packages_retirement_plans_provisions.GetPlanProvisionsResponse:
      type: object
      properties:
        ok:
          type: boolean
        provisions:
          type: array
          items:
            $ref: '#/components/schemas/types.Provision'
    types.Provision:
      type: object
      properties:
        _id:
          type: string
        ai_provenance:
          $ref: '#/components/schemas/types.AIPlanDocumentProvenance'
        amendment:
          description: ID for amendment document
          type: string
        client:
          type: string
        created_at:
          type: string
        deleted_at:
          type: string
        document_customer_id:
          type: string
        document_provider:
          type: string
        document_provider_id:
          type: string
        effective_on:
          type: string
        effective_until:
          type: string
        parent_provision:
          description: MEPS/PEPS
          type: string
        plan:
          type: string
        raw:
          description: Raw Provisions
          type: object
          additionalProperties: true
        specs:
          description: DC Standard (401(k), 403(b), MPP)
          type: object
          additionalProperties: true
        team:
          type: string
        type:
          description: Original, Amendment, Variation
          type: string
        variables:
          description: >-
            List of keys allowed to be changed. Only parent provisions have
            variables
          type: array
          items:
            type: string
        version:
          type: string
        year:
          description: Versioning
          type: integer
    types.AIPlanDocumentProvenance:
      type: object
      properties:
        coverage:
          $ref: '#/components/schemas/types.AIPlanDocumentCoverage'
        extraction_id:
          type: string
        issues:
          type: array
          items:
            $ref: '#/components/schemas/types.AIPlanDocumentReviewIssue'
        model_version:
          type: string
        prompt_version:
          type: string
        requires_review:
          type: boolean
        source_file_id:
          type: string
        source_sha256:
          type: string
        target_catalog_id:
          type: string
        target_catalog_version:
          type: string
        warnings:
          $ref: '#/components/schemas/types.AIPlanDocumentWarningSummary'
    types.AIPlanDocumentCoverage:
      type: object
      properties:
        all:
          $ref: '#/components/schemas/types.AIPlanDocumentCoverageCount'
        catalog_id:
          type: string
        catalog_version:
          type: string
        key:
          $ref: '#/components/schemas/types.AIPlanDocumentCoverageCount'
    types.AIPlanDocumentReviewIssue:
      type: object
      properties:
        citations:
          type: array
          items:
            $ref: '#/components/schemas/types.AIPlanDocumentCitation'
        domain:
          type: string
        field:
          type: string
        group:
          type: string
        message:
          type: string
        review:
          type: string
        status:
          type: string
    types.AIPlanDocumentWarningSummary:
      type: object
      properties:
        by_domain:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        by_field:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        by_page:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        by_status:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        items:
          type: array
          items:
            $ref: '#/components/schemas/types.AIPlanDocumentWarning'
    types.AIPlanDocumentCoverageCount:
      type: object
      properties:
        denominator:
          type: integer
        numerator:
          type: integer
        percent:
          type: integer
    types.AIPlanDocumentCitation:
      type: object
      properties:
        page:
          type: integer
    types.AIPlanDocumentWarning:
      type: object
      properties:
        domain:
          type: string
        field:
          type: string
        id:
          type: string
        message:
          type: string
        pages:
          type: array
          items:
            type: integer
        review:
          type: string
        status:
          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.