{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/verifly-email/json-schema/verifly-email-crypto-checkout-result-schema.json",
  "title": "CryptoCheckoutResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/verifly-email-billing-api-openapi.yml#/components/schemas/CryptoCheckoutResult",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "method": {
      "type": "string",
      "const": "crypto"
    },
    "checkout_url": {
      "type": "string",
      "format": "uri",
      "description": "Plisio invoice page."
    },
    "invoice_id": {
      "type": "string"
    },
    "address": {
      "type": "string",
      "description": "Raw wallet address (present when a currency was supplied)."
    },
    "amount": {
      "type": "string",
      "description": "Crypto amount to send."
    },
    "currency": {
      "type": "string",
      "enum": [
        "BTC",
        "ETH",
        "LTC",
        "USDT",
        "USDC"
      ]
    },
    "qr_code": {
      "type": "string",
      "description": "QR code (data URL or URL) for the payment address."
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "package": {
      "$ref": "#/$defs/PackageRef"
    }
  },
  "required": [
    "success",
    "checkout_url",
    "invoice_id"
  ],
  "$defs": {
    "PackageRef": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "credits": {
          "type": "integer"
        },
        "price_usd": {
          "type": "string"
        }
      }
    }
  }
}