{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/verifly-email/json-schema/verifly-email-simple-crypto-result-schema.json",
  "title": "SimpleCryptoResult",
  "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/SimpleCryptoResult",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "checkout_url": {
      "type": "string",
      "format": "uri"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Backwards-compat alias of checkout_url."
    },
    "invoice_id": {
      "type": "string"
    },
    "address": {
      "type": "string"
    },
    "amount": {
      "type": "string"
    },
    "currency": {
      "type": "string",
      "enum": [
        "BTC",
        "ETH",
        "LTC",
        "USDT",
        "USDC"
      ]
    },
    "qr_code": {
      "type": "string"
    },
    "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"
        }
      }
    }
  }
}