{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/griffnode-com/json-schema/griffnode-com-invoice-schema.json",
  "title": "Invoice",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/griffnode-com-api-openapi.yml#/components/schemas/Invoice",
  "type": "object",
  "properties": {
    "transaction_id": {
      "type": "string"
    },
    "purchase_type": {
      "type": "string"
    },
    "amount_fiat": {
      "type": "number"
    },
    "currency_fiat": {
      "$ref": "#/$defs/FiatCurrency"
    },
    "status": {
      "type": "string"
    },
    "crypto_symbol": {
      "$ref": "#/$defs/CryptoSymbol"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "confirmed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "CryptoSymbol": {
      "type": "string",
      "description": "Supported coin/token symbol. /cryptos/list is authoritative at runtime.",
      "enum": [
        "BTC",
        "LTC",
        "DOGE",
        "DASH",
        "ETH",
        "USDT",
        "USDC",
        "EURC",
        "DAI",
        "WBTC",
        "WETH",
        "SHIB",
        "PEPE",
        "LINK",
        "UNI",
        "LEO"
      ]
    },
    "FiatCurrency": {
      "type": "string",
      "enum": [
        "USD",
        "PLN",
        "EUR",
        "GBP"
      ],
      "default": "USD"
    }
  }
}