{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/send21-io/json-schema/send21-io-demo-draft-response-schema.json",
  "title": "DemoDraftResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/send21-io-openapi.json#/components/schemas/DemoDraftResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "network": {
      "$ref": "#/$defs/PaymentNetwork"
    },
    "currency": {
      "$ref": "#/$defs/PaymentCurrency"
    },
    "receiverAddress": {
      "type": [
        "string",
        "null"
      ]
    },
    "amountBaseUnits": {
      "type": "integer",
      "format": "int64"
    },
    "amountFormatted": {
      "type": [
        "string",
        "null"
      ]
    },
    "tokenAddress": {
      "type": [
        "string",
        "null"
      ]
    },
    "paymentUri": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "$ref": "#/$defs/DraftStatus"
    },
    "paidTxId": {
      "type": [
        "string",
        "null"
      ]
    },
    "confirmations": {
      "type": "integer",
      "format": "int32"
    },
    "requiredConfirmations": {
      "type": "integer",
      "format": "int32"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "DraftStatus": {
      "enum": [
        "AwaitingPayment",
        "Seen",
        "Confirmed",
        "Expired",
        "Cancelled"
      ],
      "type": "string"
    },
    "PaymentCurrency": {
      "enum": [
        "Btc",
        "Usdc",
        "Usdt",
        "Eurc",
        "Sol",
        "Eth"
      ],
      "type": "string"
    },
    "PaymentNetwork": {
      "enum": [
        "Mainnet",
        "Testnet4",
        "Signet",
        "Regtest",
        "Solana",
        "SolanaDevnet",
        "Ethereum",
        "EthereumSepolia",
        "Base",
        "BaseSepolia",
        "Arbitrum",
        "ArbitrumSepolia",
        "Polygon",
        "PolygonAmoy"
      ],
      "type": "string"
    }
  }
}