{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxforagents/json-schema/faxforagents-quote-schema.json",
  "title": "Quote",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxforagents-api-openapi.json#/components/schemas/Quote",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "environment": {
      "type": "string",
      "enum": [
        "live",
        "test"
      ],
      "title": "Environment"
    },
    "document_id": {
      "type": "string",
      "title": "Document Id"
    },
    "document_sha256": {
      "type": "string",
      "title": "Document Sha256"
    },
    "to": {
      "type": "string",
      "title": "To"
    },
    "from": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "From"
    },
    "route": {
      "type": "string",
      "title": "Route"
    },
    "document_pages": {
      "type": "integer",
      "title": "Document Pages"
    },
    "cover_pages": {
      "type": "integer",
      "title": "Cover Pages"
    },
    "billable_pages": {
      "type": "integer",
      "title": "Billable Pages"
    },
    "amount_micro": {
      "type": "integer",
      "title": "Amount Micro"
    },
    "currency": {
      "type": "string",
      "title": "Currency"
    },
    "price_version": {
      "type": "string",
      "title": "Price Version"
    },
    "per_page_micro": {
      "type": "integer",
      "title": "Per Page Micro",
      "default": 0
    },
    "route_label": {
      "type": "string",
      "title": "Route Label",
      "default": ""
    },
    "cover": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cover"
    },
    "authorization_required": {
      "type": "boolean",
      "title": "Authorization Required"
    },
    "warnings": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Warnings"
    },
    "expires_at": {
      "type": "string",
      "title": "Expires At"
    },
    "expired": {
      "type": "boolean",
      "title": "Expired"
    },
    "consumed_by_job_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Consumed By Job Id"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "id",
    "environment",
    "document_id",
    "document_sha256",
    "to",
    "route",
    "document_pages",
    "cover_pages",
    "billable_pages",
    "amount_micro",
    "currency",
    "price_version",
    "cover",
    "authorization_required",
    "warnings",
    "expires_at",
    "expired",
    "consumed_by_job_id",
    "created_at"
  ]
}