> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowpayroll.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get ordersconstantsavailable years



## OpenAPI

````yaml /api-reference/specs/court-orders.json get /orders/constants/available-years
openapi: 3.0.1
info:
  title: CourtOrders Service
  description: CourtOrders API for FlowPayroll
  contact:
    name: FlowPayroll
    email: support@flowpayroll.com
  version: v1
servers:
  - url: https://api.sandbox.flowpayroll.ai/v1/court-orders
security:
  - X-Auth-Token: []
    X-Org-Id: []
tags:
  - name: Court orders
    description: >-
      Create, retrieve, update, and delete court orders, list them for an
      employee, and reconcile against a pay run.
  - name: Attachments
    description: Upload and remove supporting documents for a court order.
  - name: Reference data
    description: Available tax years and per-year court order constants.
  - name: Payees
paths:
  /orders/constants/available-years:
    get:
      tags:
        - Reference data
      operationId: GetCourtOrderConstantsAvailableYears
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ResponseBody_CourtOrderAvailableTaxYearsResponse
components:
  schemas:
    ResponseBody_CourtOrderAvailableTaxYearsResponse:
      type: object
      properties:
        message:
          $ref: '#/components/schemas/MessageWithTokenResponse'
        content:
          $ref: >-
            #/components/schemas/ContentResponse_CourtOrderAvailableTaxYearsResponse
        validationIssues:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssue'
          nullable: true
      additionalProperties: false
    MessageWithTokenResponse:
      type: object
      properties:
        text:
          type: string
        token:
          type: string
        tokenArguments:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssueArgument'
          nullable: true
      additionalProperties: false
    ContentResponse_CourtOrderAvailableTaxYearsResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/CourtOrderAvailableTaxYearsResponse'
        metadata:
          $ref: '#/components/schemas/ContentMetadataResponse'
      additionalProperties: false
    ValidationIssue:
      type: object
      properties:
        field:
          type: string
        reason:
          type: string
        reasonToken:
          type: string
        reasonTokenArguments:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssueArgument'
          nullable: true
      additionalProperties: false
    ValidationIssueArgument:
      type: object
      properties:
        name:
          type: string
        value:
          nullable: true
      additionalProperties: false
    CourtOrderAvailableTaxYearsResponse:
      type: object
      properties:
        taxYears:
          type: array
          items:
            type: integer
            format: int32
      additionalProperties: false
    ContentMetadataResponse:
      type: object
      properties:
        dateFormat:
          type: string
        dateTimeFormat:
          type: string
        paginationToken:
          type: string
          nullable: true
      additionalProperties: false
  securitySchemes:
    X-Auth-Token:
      type: apiKey
      description: Authentication token for API access
      name: X-Auth-Token
      in: header
    X-Org-Id:
      type: apiKey
      description: >-
        Organisation to scope the request to. Required when the principal can
        access more than one organisation; optional for single-organisation
        principals (the authorizer resolves it automatically).
      name: X-Org-Id
      in: header

````