{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/send21-io/json-schema/send21-io-checkout-info-response-schema.json",
  "title": "CheckoutInfoResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/send21-io-checkout-api-openapi.yml#/components/schemas/CheckoutInfoResponse",
  "type": "object",
  "properties": {
    "token": {
      "type": [
        "string",
        "null"
      ]
    },
    "fiatCurrency": {
      "type": [
        "string",
        "null"
      ]
    },
    "fiatAmount": {
      "type": "number",
      "format": "double"
    },
    "memo": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "$ref": "#/$defs/PaymentRequestStatus"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "options": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/CheckoutOptionInfo"
      }
    },
    "payment": {
      "$ref": "#/$defs/CheckoutPaymentInfo"
    },
    "declineNote": {
      "type": [
        "string",
        "null"
      ]
    },
    "changeSignals": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "changeNotes": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "receiver": {
      "$ref": "#/$defs/ReceiverHistory"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "CheckoutOptionInfo": {
      "type": "object",
      "properties": {
        "currency": {
          "$ref": "#/$defs/PaymentCurrency"
        },
        "network": {
          "$ref": "#/$defs/PaymentNetwork"
        },
        "method": {
          "$ref": "#/$defs/PaymentMethod"
        },
        "changeSignals": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "changeNotes": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "CheckoutPaymentInfo": {
      "type": "object",
      "properties": {
        "currency": {
          "$ref": "#/$defs/PaymentCurrency"
        },
        "network": {
          "$ref": "#/$defs/PaymentNetwork"
        },
        "address": {
          "type": [
            "string",
            "null"
          ]
        },
        "amountBaseUnits": {
          "type": "integer",
          "format": "int64"
        },
        "amountFormatted": {
          "type": [
            "string",
            "null"
          ]
        },
        "uri": {
          "type": [
            "string",
            "null"
          ]
        },
        "tokenAddress": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "$ref": "#/$defs/DraftStatus"
        },
        "rate": {
          "type": "number",
          "format": "double"
        },
        "rateSource": {
          "type": [
            "string",
            "null"
          ]
        },
        "rateLockedUntil": {
          "type": "string",
          "format": "date-time"
        },
        "paidTxId": {
          "type": [
            "string",
            "null"
          ]
        },
        "receivedAmountFormatted": {
          "type": [
            "string",
            "null"
          ]
        },
        "method": {
          "$ref": "#/$defs/PaymentMethod"
        },
        "lightningConfirmable": {
          "type": "boolean"
        },
        "quoteId": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "draftId": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "reviewState": {
          "type": [
            "string",
            "null"
          ]
        },
        "reviewReason": {
          "type": [
            "string",
            "null"
          ]
        },
        "coreSha256": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "DraftStatus": {
      "enum": [
        "AwaitingPayment",
        "Seen",
        "Confirmed",
        "Expired",
        "Cancelled"
      ],
      "type": "string"
    },
    "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"
    },
    "PaymentRequestStatus": {
      "enum": [
        "Open",
        "Completed",
        "Cancelled",
        "Expired"
      ],
      "type": "string"
    },
    "ReceiverHistory": {
      "type": "object",
      "properties": {
        "joinedMonth": {
          "type": [
            "string",
            "null"
          ]
        },
        "completedPayments": {
          "type": [
            "string",
            "null"
          ]
        },
        "isNew": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  }
}