{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blindpay-com/json-schema/blindpay-com-create-payin-quote-in-schema.json",
  "title": "CreatePayinQuoteIn",
  "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/CreatePayinQuoteIn",
  "type": "object",
  "properties": {
    "blockchain_wallet_id": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 15,
      "maxLength": 15
    },
    "wallet_id": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 15,
      "maxLength": 15
    },
    "currency_type": {
      "type": "string",
      "enum": [
        "sender",
        "receiver"
      ],
      "description": ""
    },
    "cover_fees": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "If true, the sender will cover the fees. If false, the customer will cover the fees."
    },
    "request_amount": {
      "type": "integer",
      "minimum": 500,
      "description": "1000 represents 10.00, 2050 represents 20.50"
    },
    "payment_method": {
      "type": "string",
      "enum": [
        "ach",
        "ach_pull",
        "wire",
        "pix",
        "card",
        "ted",
        "spei",
        "transfers",
        "pse",
        "international_swift",
        "rtp"
      ]
    },
    "token": {
      "type": "string",
      "enum": [
        "USDC",
        "USDT",
        "USDB"
      ]
    },
    "partner_fee_id": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 15,
      "maxLength": 15
    },
    "payer_rules": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "pix_allowed_tax_ids": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "transfers_allowed_tax_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "pse_allowed_tax_ids": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "pse_full_name": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 50
        },
        "pse_document_type": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "CC",
            "NIT"
          ]
        },
        "pse_document_number": {
          "type": [
            "string",
            "null"
          ]
        },
        "pse_email": {
          "type": [
            "string",
            "null"
          ],
          "format": "email"
        },
        "pse_phone": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^\\+573\\d{9}$"
        },
        "pse_bank_code": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "is_otc": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "If true, the payin quote is for an OTC (Over the Counter) transaction"
    },
    "funding_bank_account_id": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 15,
      "maxLength": 15,
      "description": "Plaid-connected bank account that funds the payin by ach pull. Required when payment_method is ach_pull, not accepted otherwise."
    }
  },
  "required": [
    "currency_type",
    "request_amount",
    "payment_method",
    "token"
  ]
}