{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blindpay-com/json-schema/blindpay-com-quote-out-schema.json",
  "title": "QuoteOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blindpay-com-payouts-quotes-api-openapi.yml#/components/schemas/QuoteOut",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 15,
      "maxLength": 15
    },
    "expires_at": {
      "type": [
        "number",
        "null"
      ],
      "description": "Epoch timestamp in milliseconds after which the quote can no longer be executed, 5 minutes after creation. For SEPA payouts this may be shorter if Circle CPN returns an earlier expiry."
    },
    "commercial_quotation": {
      "type": [
        "number",
        "null"
      ],
      "description": "1 USD = 4.95 BRL"
    },
    "blindpay_quotation": {
      "type": [
        "number",
        "null"
      ],
      "description": "1 USD = 4.85 BRL (commercial quotation - (blindpay taxes))"
    },
    "receiver_amount": {
      "type": [
        "number",
        "null"
      ],
      "description": "52.40 BRL"
    },
    "sender_amount": {
      "type": [
        "number",
        "null"
      ],
      "description": "10.10 USDC needs to be sent to bank account blockchain address"
    },
    "partner_fee_amount": {
      "type": [
        "number",
        "null"
      ],
      "default": 0,
      "description": "1.5 USDC"
    },
    "flat_fee": {
      "type": [
        "number",
        "null"
      ],
      "description": "0.5 USDC"
    },
    "billing_fee_amount": {
      "type": [
        "number",
        "null"
      ],
      "description": "Billing fee in cents (charged via invoice at the end of the month)"
    },
    "contract": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "abi": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {},
            "description": "Contract abi related to the network you send in request params"
          }
        },
        "address": {
          "type": "string",
          "description": "Token address related to the network you send in request params"
        },
        "functionName": {
          "type": "string",
          "enum": [
            "approve"
          ],
          "description": "Function name from ERC20 smart contract"
        },
        "blindpayContractAddress": {
          "type": "string",
          "description": "Blindpay contract address"
        },
        "amount": {
          "type": "string",
          "description": "Amount to approve with correct decimal places"
        },
        "network": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "chainId": {
              "type": "number"
            }
          },
          "required": [
            "name",
            "chainId"
          ]
        }
      },
      "required": [
        "abi",
        "address",
        "functionName",
        "blindpayContractAddress",
        "amount",
        "network"
      ]
    },
    "customer_local_amount": {
      "type": [
        "number",
        "null"
      ],
      "description": "Estimated amount in the currency of recipient bank account"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 128
    }
  },
  "required": [
    "id",
    "expires_at",
    "commercial_quotation",
    "blindpay_quotation",
    "receiver_amount",
    "sender_amount"
  ]
}