{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/send21-io/json-schema/send21-io-fee-breakdown-response-schema.json",
  "title": "FeeBreakdownResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/send21-io-openapi.json#/components/schemas/FeeBreakdownResponse",
  "type": "object",
  "properties": {
    "receiverAmountSats": {
      "type": "integer",
      "format": "int64"
    },
    "platformFeePercent": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "platformFeeUsd": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "platformFeeSats": {
      "type": "integer",
      "format": "int64"
    },
    "platformFeeWaived": {
      "type": "boolean"
    },
    "platformFeeAddress": {
      "type": [
        "string",
        "null"
      ]
    },
    "networkFee": {
      "$ref": "#/$defs/NetworkFeeEstimateInfo"
    },
    "totalOutputsSats": {
      "type": "integer",
      "format": "int64"
    },
    "estimatedTotalLeavingWalletSats": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "fiat": {
      "$ref": "#/$defs/FiatEquivalents"
    },
    "feeOutputs": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/FeeOutputInfo"
      }
    },
    "tax": {
      "$ref": "#/$defs/FeeTaxInfo"
    },
    "note": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "FeeOutputInfo": {
      "type": "object",
      "properties": {
        "recipient": {
          "type": [
            "string",
            "null"
          ]
        },
        "address": {
          "type": [
            "string",
            "null"
          ]
        },
        "sats": {
          "type": "integer",
          "format": "int64"
        },
        "sharePercent": {
          "type": "number",
          "format": "double"
        }
      },
      "additionalProperties": false
    },
    "FeeTaxInfo": {
      "type": "object",
      "properties": {
        "vatCharged": {
          "type": "boolean"
        },
        "vatRatePercent": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "vatSek": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "feeSek": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "feeExVatSek": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "FiatEquivalents": {
      "type": "object",
      "properties": {
        "currency": {
          "type": [
            "string",
            "null"
          ]
        },
        "ratePerBtc": {
          "type": "number",
          "format": "double"
        },
        "rateSource": {
          "type": [
            "string",
            "null"
          ]
        },
        "receiverAmount": {
          "type": "number",
          "format": "double"
        },
        "platformFee": {
          "type": "number",
          "format": "double"
        },
        "networkFeeEstimate": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "totalOutputs": {
          "type": "number",
          "format": "double"
        },
        "estimatedTotalLeavingWallet": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        }
      },
      "additionalProperties": false
    },
    "NetworkFeeEstimateInfo": {
      "type": "object",
      "properties": {
        "satPerVb": {
          "type": "number",
          "format": "double"
        },
        "estimatedVsize": {
          "type": "integer",
          "format": "int32"
        },
        "estimatedSats": {
          "type": "integer",
          "format": "int64"
        },
        "basis": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}