{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://artifacts.apis.io/breezecash/json-schema/breezecash-get-invoice-response-schema.json",
  "title": "GetInvoiceResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/breezecash-invoices-api-openapi.yml#/components/schemas/GetInvoiceResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "PENDING",
        "PAID",
        "EXPIRED",
        "GRACE_PERIOD",
        "CANCELED"
      ]
    },
    "subscriptionId": {
      "type": "string"
    },
    "paymentPageId": {
      "type": "string"
    },
    "amount": {
      "type": "number"
    },
    "currency": {
      "type": "string",
      "enum": [
        "USD",
        "AUD",
        "CAD",
        "CHF",
        "DKK",
        "EUR",
        "GBP",
        "HKD",
        "JPY",
        "NOK",
        "NZD",
        "PLN",
        "SEK",
        "SGD",
        "TWD",
        "KRW",
        "SOL",
        "USDC",
        "USDT",
        "HONEY",
        "EURC"
      ]
    },
    "billingPeriod": {
      "type": "object",
      "properties": {
        "start": {
          "type": "number"
        },
        "end": {
          "type": "number"
        }
      },
      "required": [
        "start",
        "end"
      ]
    },
    "customerId": {
      "type": "string"
    },
    "dueAt": {
      "type": "number"
    },
    "expiredAt": {
      "type": "number"
    },
    "previousInvoiceId": {
      "type": "string"
    },
    "livemode": {
      "type": "boolean"
    },
    "merchantId": {
      "type": "string"
    },
    "statusUpdatedAt": {
      "type": "number"
    },
    "canceledAt": {
      "type": "number"
    }
  },
  "required": [
    "id",
    "status",
    "amount",
    "currency",
    "customerId",
    "dueAt",
    "expiredAt",
    "livemode",
    "merchantId"
  ],
  "definitions": {}
}