{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lynx/json-schema/lynx-get-tags-response-doc-schema.json",
  "title": "GetTagsResponseDoc",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-tags-api-openapi.yml#/components/schemas/GetTagsResponseDoc",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/GetTagsResponse"
    },
    "exceptions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResponseException"
      }
    }
  },
  "$defs": {
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "GetTagsResponse": {
      "type": "object",
      "properties": {
        "clientOrg": {
          "$ref": "#/$defs/ClientOrgDto"
        },
        "resourceType": {
          "type": "string",
          "description": "Indicates the type of resource for which to retrieve the tags. Possible values are:  MEMBER, CLIENT_ORG, MEMBER_TRANSACTION"
        },
        "resourceId": {
          "type": "string",
          "description": "Indicates the key based on the type of resource.  For a member, this will be client member ID.  For a transaction, this will be transaction reference ID.  For a client org, this will be client org name."
        },
        "tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TagDto"
          }
        }
      },
      "required": [
        "resourceId",
        "resourceType"
      ]
    },
    "ResponseException": {
      "type": "object",
      "properties": {
        "errorCode": {
          "type": "string",
          "description": "The GBL error code that is populated when the exceptionSource is SYSTEM"
        },
        "exceptionSource": {
          "type": "string",
          "description": "Characterizes the type of exception (JSON, SYSTEM, PARAMETER)"
        },
        "exceptionMessage": {
          "type": "string",
          "description": "Additional information about the exception"
        }
      }
    },
    "TagDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Constant used to define the metadata within a key-value pair"
        },
        "value": {
          "type": "string",
          "description": "Variable belonging to the metadata within a key-value pair"
        },
        "type": {
          "type": "string",
          "description": "Additional client-defined qualifier that may be used to further classify the key-value pair"
        }
      },
      "required": [
        "name",
        "value"
      ]
    }
  }
}