{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/smartwebchat-eu/json-schema/smartwebchat-eu-quote-schema.json",
  "title": "Quote",
  "description": "Monthly net quote in EUR from the product-truth layer, each line with its source fact id; white label is 'custom'. No checkout link.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/smartwebchat-eu-api-openapi.json#/components/schemas/Quote",
  "type": "object",
  "required": [
    "schema_version",
    "kind",
    "plan",
    "currency",
    "tax",
    "checkout_note",
    "provenance"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "enum": [
        "1.0"
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "priced",
        "custom"
      ]
    },
    "plan": {
      "type": "string",
      "enum": [
        "business",
        "agency",
        "white_label"
      ]
    },
    "currency": {
      "type": "string",
      "enum": [
        "EUR"
      ]
    },
    "tax": {
      "type": "string",
      "enum": [
        "net"
      ]
    },
    "billing": {
      "type": "string",
      "enum": [
        "monthly"
      ]
    },
    "included": {
      "type": "object"
    },
    "line_items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "unit": {
            "type": "string"
          },
          "unit_net_eur": {
            "type": "number"
          },
          "total_net_eur": {
            "type": "number"
          },
          "source_fact_id": {
            "type": "string"
          }
        }
      }
    },
    "total_monthly_net_eur": {
      "type": "number"
    },
    "price": {
      "type": "string",
      "enum": [
        "custom"
      ]
    },
    "self_service": {
      "type": "boolean"
    },
    "assumptions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "checkout_note": {
      "type": "string"
    },
    "provenance": {
      "type": "object"
    }
  }
}