{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blindpay-com/json-schema/blindpay-com-create-payin-quote-out-schema.json",
  "title": "CreatePayinQuoteOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blindpay-com-payin-quotes-api-openapi.yml#/components/schemas/CreatePayinQuoteOut",
  "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 used to create a payin: 5 minutes after creation, or 10 seconds for OTC quotes."
    },
    "commercial_quotation": {
      "type": [
        "number",
        "null"
      ],
      "description": "1 USD = 4.95 BRL"
    },
    "blindpay_quotation": {
      "type": [
        "number",
        "null"
      ],
      "description": "1 USD = 5.05 BRL (commercial quotation + (blindpay taxes))"
    },
    "receiver_amount": {
      "type": [
        "number",
        "null"
      ],
      "description": "10.10 USDC"
    },
    "sender_amount": {
      "type": [
        "number",
        "null"
      ],
      "description": "52.40 BRL needs to be sent in a pix transfer"
    },
    "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": "BlindPay fee in cents accrued to your billing cycle (charged at the end of the month). Virtual account deposits below $100.00 always accrue here, so small deposits are delivered in full."
    },
    "is_otc": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "If true, the payin quote is for an OTC (Over the Counter) transaction"
    }
  },
  "required": [
    "id",
    "expires_at",
    "commercial_quotation",
    "blindpay_quotation",
    "receiver_amount",
    "sender_amount",
    "flat_fee"
  ]
}