{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxforagents/json-schema/faxforagents-fax-job-schema.json",
  "title": "FaxJob",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxforagents-api-openapi.json#/components/schemas/FaxJob",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "environment": {
      "type": "string",
      "enum": [
        "live",
        "test"
      ],
      "title": "Environment"
    },
    "direction": {
      "type": "string",
      "title": "Direction"
    },
    "state": {
      "type": "string",
      "enum": [
        "queued",
        "active",
        "partial",
        "failed",
        "unknown",
        "delivered"
      ],
      "title": "State"
    },
    "failure_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Failure Code"
    },
    "to": {
      "type": "string",
      "title": "To"
    },
    "from": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "From"
    },
    "route": {
      "type": "string",
      "title": "Route"
    },
    "document_id": {
      "type": "string",
      "title": "Document Id"
    },
    "document_sha256": {
      "type": "string",
      "title": "Document Sha256"
    },
    "transmitted_sha256": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Transmitted Sha256"
    },
    "quote_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Quote Id"
    },
    "billable_pages": {
      "type": "integer",
      "title": "Billable Pages"
    },
    "cover_pages": {
      "type": "integer",
      "title": "Cover Pages"
    },
    "pages_sent": {
      "type": "integer",
      "title": "Pages Sent"
    },
    "amount_micro": {
      "type": "integer",
      "title": "Amount Micro"
    },
    "captured_micro": {
      "type": "integer",
      "title": "Captured Micro"
    },
    "currency": {
      "type": "string",
      "title": "Currency"
    },
    "provider": {
      "type": "string",
      "title": "Provider"
    },
    "provider_ref": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provider Ref"
    },
    "client_reference": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Reference"
    },
    "attempt_count": {
      "type": "integer",
      "title": "Attempt Count"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "title": "Updated At"
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completed At"
    },
    "cancel_requested_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cancel Requested At"
    },
    "evidence": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Evidence",
      "description": "The carrier's evidence once delivered or partial; null before."
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "id",
    "environment",
    "direction",
    "state",
    "failure_code",
    "to",
    "route",
    "document_id",
    "document_sha256",
    "transmitted_sha256",
    "quote_id",
    "billable_pages",
    "cover_pages",
    "pages_sent",
    "amount_micro",
    "captured_micro",
    "currency",
    "provider",
    "provider_ref",
    "client_reference",
    "attempt_count",
    "created_at",
    "updated_at",
    "completed_at",
    "cancel_requested_at"
  ]
}