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

# Get reference data

> Returns the reference data the other routes take ids from: `clubs` and `countries`. Read it once and cache it rather than resolving an id per request.



## OpenAPI

````yaml /openapi/kintra-app.json get /system/masterdata
openapi: 3.0.0
info:
  description: >-
    Tenant portal API for the Kintra loyalty platform. Requests are
    authenticated with an Auth0 bearer token and address a tenant by id in the
    path.
  title: Kintra Portal API
  version: 1.0.0
servers:
  - description: Production environment
    url: https://api.kintra.io/api/v1
security: []
paths:
  /system/masterdata:
    get:
      tags:
        - Reference data
      summary: Get reference data
      description: >-
        Returns the reference data the other routes take ids from: `clubs` and
        `countries`. Read it once and cache it rather than resolving an id per
        request.
      operationId: System_GetMasterdata
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_IMasterdataResponse_'
          description: Ok
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Internal server error
      security: []
components:
  schemas:
    ApiResponse_IMasterdataResponse_:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/IMasterdataResponse'
        errors:
          items:
            properties:
              message:
                type: string
              path:
                type: string
            required:
              - path
              - message
            type: object
          type: array
        message:
          type: string
        success:
          type: boolean
      required:
        - success
      type: object
    ApiResponse_null_:
      additionalProperties: false
      properties:
        data:
          enum:
            - null
          nullable: true
          type: number
        errors:
          items:
            properties:
              message:
                type: string
              path:
                type: string
            required:
              - path
              - message
            type: object
          type: array
        message:
          type: string
        success:
          type: boolean
      required:
        - success
      type: object
    IMasterdataResponse:
      additionalProperties: false
      properties:
        clubs:
          items:
            $ref: '#/components/schemas/IClubResponse'
          type: array
        countries:
          items:
            $ref: '#/components/schemas/ICountryResponse'
          type: array
      required:
        - clubs
        - countries
      type: object
    IClubResponse:
      additionalProperties: false
      description: JSON response for a row in `core.clubs`.
      properties:
        country_id:
          nullable: true
          type: string
        icon_url:
          nullable: true
          type: string
        id:
          type: string
        name:
          type: string
        slug:
          type: string
        sport_id:
          nullable: true
          type: string
        status:
          anyOf:
            - $ref: '#/components/schemas/ClubStatus'
            - type: string
      required:
        - id
        - name
        - slug
        - sport_id
        - country_id
        - icon_url
        - status
      type: object
    ICountryResponse:
      additionalProperties: false
      description: JSON response for a row in `core.countries`.
      properties:
        code:
          nullable: true
          type: string
        icon_url:
          nullable: true
          type: string
        id:
          type: string
        name:
          type: string
        status:
          anyOf:
            - $ref: '#/components/schemas/CountryStatus'
            - type: string
      required:
        - id
        - name
        - code
        - icon_url
        - status
      type: object
    ClubStatus:
      description: Lifecycle status for reference rows in `core.clubs`.
      enum:
        - active
        - inactive
      type: string
    CountryStatus:
      description: Lifecycle status for reference rows in `core.countries`.
      enum:
        - active
        - inactive
      type: string

````