{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/send21-io/json-schema/send21-io-create-draft-request-schema.json",
  "title": "CreateDraftRequest",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/send21-io-openapi.json#/components/schemas/CreateDraftRequest",
  "type": "object",
  "properties": {
    "receiverAddress": {
      "type": [
        "string",
        "null"
      ]
    },
    "network": {
      "$ref": "#/$defs/PaymentNetwork"
    },
    "paymentMethod": {
      "$ref": "#/$defs/PaymentMethod"
    },
    "amountSats": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "fiatCurrency": {
      "type": [
        "string",
        "null"
      ]
    },
    "fiatAmount": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "senderAddress": {
      "type": [
        "string",
        "null"
      ]
    },
    "bolt11": {
      "type": [
        "string",
        "null"
      ]
    },
    "memo": {
      "type": [
        "string",
        "null"
      ]
    },
    "expiryHours": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "requiredConfirmations": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "currency": {
      "$ref": "#/$defs/PaymentCurrency"
    },
    "singleOutput": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "shortfallPolicy": {
      "$ref": "#/$defs/ShortfallPolicyDto"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "PaymentCurrency": {
      "enum": [
        "Btc",
        "Usdc",
        "Usdt",
        "Eurc",
        "Sol",
        "Eth"
      ],
      "type": "string"
    },
    "PaymentMethod": {
      "enum": [
        "MultiOutput",
        "Lightning"
      ],
      "type": "string"
    },
    "PaymentNetwork": {
      "enum": [
        "Mainnet",
        "Testnet4",
        "Signet",
        "Regtest",
        "Solana",
        "SolanaDevnet",
        "Ethereum",
        "EthereumSepolia",
        "Base",
        "BaseSepolia",
        "Arbitrum",
        "ArbitrumSepolia",
        "Polygon",
        "PolygonAmoy"
      ],
      "type": "string"
    },
    "ShortfallPolicyDto": {
      "type": "object",
      "properties": {
        "absorbUpToPercent": {
          "type": "number",
          "format": "double"
        },
        "absorbedBy": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}