{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxforagents/json-schema/faxforagents-invoice-schema.json",
  "title": "Invoice",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxforagents-billing-api-openapi.yml#/components/schemas/Invoice",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "number": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Number"
    },
    "status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Status"
    },
    "currency": {
      "type": "string",
      "title": "Currency"
    },
    "amount_due_micro": {
      "type": "integer",
      "title": "Amount Due Micro"
    },
    "amount_paid_micro": {
      "type": "integer",
      "title": "Amount Paid Micro"
    },
    "subscription_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subscription Id"
    },
    "hosted_invoice_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Hosted Invoice Url"
    },
    "invoice_pdf": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Invoice Pdf"
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created At"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "id",
    "number",
    "status",
    "currency",
    "amount_due_micro",
    "amount_paid_micro",
    "subscription_id",
    "hosted_invoice_url",
    "invoice_pdf",
    "created_at"
  ]
}