{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/immortals/json-schema/immortals-ajax-product-schema.json",
  "title": "AjaxProduct",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/immortals-openapi.yml#/components/schemas/AjaxProduct",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "title": {
      "type": "string"
    },
    "handle": {
      "type": "string"
    },
    "vendor": {
      "type": "string"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Merchant-authored HTML; catalog claims do not establish clinical suitability."
    },
    "price": {
      "type": "integer",
      "description": "Shopify Ajax monetary representation in presentment currency; not a decimal major-unit string. Currency is not included in this response. Resolve currency from the same storefront session before formatting; this draft does not expose a currency operation."
    },
    "price_min": {
      "type": "integer",
      "description": "Shopify Ajax monetary representation in presentment currency; not a decimal major-unit string. Currency is not included in this response. Resolve currency from the same storefront session before formatting; this draft does not expose a currency operation."
    },
    "price_max": {
      "type": "integer",
      "description": "Shopify Ajax monetary representation in presentment currency; not a decimal major-unit string. Currency is not included in this response. Resolve currency from the same storefront session before formatting; this draft does not expose a currency operation."
    },
    "available": {
      "type": "boolean"
    },
    "compare_at_price": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Shopify Ajax monetary representation in presentment currency; not a decimal major-unit string. Currency is not included in this response. Resolve currency from the same storefront session before formatting; this draft does not expose a currency operation."
    },
    "variants": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AjaxVariant"
      }
    },
    "images": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "featured_image": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": "string"
    },
    "requires_selling_plan": {
      "type": "boolean"
    }
  },
  "additionalProperties": true,
  "required": [
    "id",
    "title",
    "handle",
    "price",
    "available",
    "variants"
  ],
  "$defs": {
    "AjaxVariant": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "title": {
          "type": "string"
        },
        "price": {
          "type": "integer",
          "description": "Shopify Ajax monetary representation in presentment currency; not a decimal major-unit string. Currency is not included in this response. Resolve currency from the same storefront session before formatting; this draft does not expose a currency operation."
        },
        "compare_at_price": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Shopify Ajax monetary representation in presentment currency; not a decimal major-unit string. Currency is not included in this response. Resolve currency from the same storefront session before formatting; this draft does not expose a currency operation."
        },
        "available": {
          "type": "boolean"
        },
        "sku": {
          "type": [
            "string",
            "null"
          ]
        },
        "options": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "requires_selling_plan": {
          "type": "boolean"
        }
      },
      "additionalProperties": true,
      "required": [
        "id",
        "title",
        "price",
        "available"
      ]
    }
  }
}