{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/realask-net/json-schema/realask-net-quote-response-schema.json",
  "title": "QuoteResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/realask-net-openapi.json#/components/schemas/QuoteResponse",
  "type": "object",
  "properties": {
    "quote_id": {
      "type": "string"
    },
    "request_id": {
      "type": "string"
    },
    "price": {
      "type": "object",
      "properties": {
        "amount_minor": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "currency": {
          "default": "USD",
          "type": "string",
          "minLength": 3,
          "maxLength": 3
        }
      },
      "required": [
        "amount_minor",
        "currency"
      ],
      "additionalProperties": false
    },
    "scope": {
      "type": "object",
      "properties": {
        "job_type": {
          "type": "string",
          "enum": [
            "single_business",
            "find_any",
            "compare",
            "capability",
            "policy",
            "status",
            "book",
            "hold",
            "request_quote",
            "cancel"
          ]
        },
        "max_businesses": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "max_call_attempts": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "deadline_seconds": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "verification_mode": {
          "type": "string",
          "enum": [
            "digital_fast",
            "live_verified",
            "auto"
          ]
        }
      },
      "required": [
        "job_type",
        "max_businesses",
        "max_call_attempts",
        "deadline_seconds",
        "verification_mode"
      ],
      "additionalProperties": false
    },
    "deliverable": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "expected_completion_seconds": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "max_completion_seconds": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "cached_answer": {
      "type": "object",
      "properties": {
        "available": {
          "type": "boolean"
        },
        "price": {
          "type": "object",
          "properties": {
            "amount_minor": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "currency": {
              "default": "USD",
              "type": "string",
              "minLength": 3,
              "maxLength": 3
            }
          },
          "required": [
            "amount_minor",
            "currency"
          ],
          "additionalProperties": false
        },
        "age_seconds": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "available"
      ],
      "additionalProperties": false
    },
    "expires_at": {
      "type": "string"
    },
    "created_at": {
      "type": "string"
    }
  },
  "required": [
    "quote_id",
    "request_id",
    "price",
    "scope",
    "deliverable",
    "expected_completion_seconds",
    "max_completion_seconds",
    "expires_at",
    "created_at"
  ],
  "additionalProperties": false
}