{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blindpay-com/json-schema/blindpay-com-virtual-account-out-schema.json",
  "title": "VirtualAccountOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blindpay-com-virtual-accounts-api-openapi.yml#/components/schemas/VirtualAccountOut",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 15,
      "maxLength": 15
    },
    "banking_partner": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "jpmorgan",
        "citi",
        "hsbc",
        "cfsb",
        "portage",
        "bre_b",
        "spei",
        "portage_g"
      ]
    },
    "kyc_status": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "verifying",
        "approved",
        "rejected",
        "deprecated",
        "pending_review",
        "awaiting_contract",
        "compliance_request",
        "approved_rfi"
      ]
    },
    "us": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "ach": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "routing_number": {
              "type": "string"
            },
            "account_number": {
              "type": "string"
            }
          },
          "required": [
            "routing_number",
            "account_number"
          ]
        },
        "wire": {
          "type": "object",
          "properties": {
            "routing_number": {
              "type": "string"
            },
            "account_number": {
              "type": "string"
            }
          },
          "required": [
            "routing_number",
            "account_number"
          ]
        },
        "rtp": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "routing_number": {
              "type": "string"
            },
            "account_number": {
              "type": "string"
            }
          },
          "required": [
            "routing_number",
            "account_number"
          ]
        },
        "swift_bic_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "swift_account_number": {
          "type": [
            "string",
            "null"
          ]
        },
        "account_type": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "Personal checking",
            "Business checking"
          ],
          "default": "Business checking"
        },
        "beneficiary": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "address_line_1": {
              "type": "string"
            },
            "address_line_2": {
              "type": "string"
            }
          },
          "required": [
            "name",
            "address_line_1",
            "address_line_2"
          ]
        },
        "receiving_bank": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "address_line_1": {
              "type": "string"
            },
            "address_line_2": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "name",
            "address_line_1"
          ]
        },
        "swift_receiving_bank": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "name": {
              "type": [
                "string",
                "null"
              ]
            },
            "address_line_1": {
              "type": [
                "string",
                "null"
              ]
            },
            "address_line_2": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "swift_intermediary_bank": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "name": {
              "type": [
                "string",
                "null"
              ]
            },
            "swift_code_bic": {
              "type": [
                "string",
                "null"
              ]
            },
            "routing_number": {
              "type": [
                "string",
                "null"
              ]
            },
            "address_line_1": {
              "type": [
                "string",
                "null"
              ]
            },
            "address_line_2": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        }
      },
      "required": [
        "wire"
      ]
    },
    "co": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "bre_b": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string"
            }
          },
          "required": [
            "key"
          ]
        },
        "beneficiary": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "name": {
              "type": "string"
            }
          },
          "required": [
            "name"
          ]
        }
      },
      "required": [
        "bre_b"
      ]
    },
    "mx": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "spei": {
          "type": "object",
          "properties": {
            "clabe": {
              "type": "string",
              "minLength": 18,
              "maxLength": 18
            }
          },
          "required": [
            "clabe"
          ]
        },
        "beneficiary": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "name": {
              "type": "string"
            }
          },
          "required": [
            "name"
          ]
        }
      },
      "required": [
        "spei"
      ]
    },
    "token": {
      "type": "string",
      "enum": [
        "USDC",
        "USDT",
        "USDB"
      ]
    },
    "blockchain_wallet_id": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 15,
      "maxLength": 15
    },
    "blockchain_wallet": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "network": {
          "type": "string",
          "enum": [
            "base",
            "sepolia",
            "arbitrum_sepolia",
            "base_sepolia",
            "arbitrum",
            "polygon",
            "polygon_amoy",
            "ethereum",
            "stellar",
            "stellar_testnet",
            "tron",
            "solana",
            "solana_devnet",
            "tempo",
            "tempo_testnet",
            "arc",
            "arc_testnet"
          ]
        },
        "address": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "network"
      ]
    },
    "partner_fee_id": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 15,
      "maxLength": 15
    },
    "customer_id": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 15,
      "maxLength": 15
    }
  },
  "required": [
    "id",
    "banking_partner",
    "kyc_status",
    "token"
  ]
}