{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-fraud-detector/json-schema/amazon-fraud-detector-batch-get-variable-result-schema.json",
  "title": "BatchGetVariableResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-fraud-detector-variable-api-openapi.yml#/components/schemas/BatchGetVariableResult",
  "type": "object",
  "properties": {
    "variables": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Variable"
      },
      "description": "The returned variables."
    },
    "errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchGetVariableError"
      },
      "description": "The errors from the request."
    }
  },
  "$defs": {
    "BatchGetVariableError": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The error name."
        },
        "code": {
          "type": "integer",
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        }
      }
    },
    "Variable": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the variable."
        },
        "dataType": {
          "type": "string",
          "enum": [
            "STRING",
            "INTEGER",
            "FLOAT",
            "BOOLEAN",
            "DATETIME"
          ],
          "description": "The data type of the variable. For more information see Variable types."
        },
        "dataSource": {
          "type": "string",
          "enum": [
            "EVENT",
            "MODEL_SCORE",
            "EXTERNAL_MODEL_SCORE"
          ],
          "description": "The data source of the variable."
        },
        "defaultValue": {
          "type": "string",
          "description": "The default value of the variable."
        },
        "description": {
          "type": "string",
          "description": "The description of the variable."
        },
        "variableType": {
          "type": "string",
          "description": "The variable type of the variable. Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL | CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE | PHONE_NUMBER | PRICE | PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | SHIPPING_COUNTRY | SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | SHIPPING_ZIP | USERAGENT"
        },
        "lastUpdatedTime": {
          "type": "string",
          "description": "The time when variable was last updated."
        },
        "createdTime": {
          "type": "string",
          "description": "The time when the variable was created."
        },
        "arn": {
          "type": "string",
          "description": "The ARN of the variable."
        }
      }
    }
  }
}