{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/currencycloud/main/json-schema/currencycloud-settlement-account-schema.json",
  "title": "SettlementAccount",
  "description": "Settlement accounts.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/currencycloud-reference-api-openapi.yml#/components/schemas/SettlementAccount",
  "type": "object",
  "properties": {
    "bank_account_holder_name": {
      "type": "string",
      "description": "The bank account holder's name."
    },
    "beneficiary_address": {
      "type": "array",
      "description": "The beneficiary's address.",
      "items": {
        "type": "string",
        "description": "Line of address."
      }
    },
    "beneficiary_country": {
      "description": "Beneficiary's country.",
      "type": "string"
    },
    "bank_name": {
      "description": "The name of the bank.",
      "type": "string"
    },
    "bank_address": {
      "description": "The bank's address.",
      "type": "array",
      "items": {
        "type": "string",
        "description": "Line of address"
      }
    },
    "bank_country": {
      "type": "string",
      "description": "Two-letter ISO country code for the bank's country."
    },
    "currency": {
      "description": "Payment currency",
      "type": "string"
    },
    "bic_swift": {
      "description": "BIC / Swift code",
      "type": "string"
    },
    "iban": {
      "description": "IBAN number",
      "type": "string"
    },
    "account_number": {
      "description": "Account number",
      "type": "string"
    },
    "routing_code_type_1": {
      "description": "Routing system for regular (local) payments.",
      "type": "string",
      "enum": [
        "aba",
        "bank_code",
        "branch_code",
        "bsb_code",
        "clabe",
        "cnaps",
        "ifsc",
        "institution_no",
        "sort_code"
      ]
    },
    "routing_code_value_1": {
      "type": "string",
      "description": "Value for routing system 'routing_code_type_1'."
    },
    "routing_code_type_2": {
      "type": "string",
      "enum": [
        "aba",
        "bank_code",
        "branch_code",
        "bsb_code",
        "clabe",
        "cnaps",
        "ifsc",
        "institution_no",
        "sort_code"
      ],
      "description": "Local payment routing system."
    },
    "routing_code_value_2": {
      "type": "string",
      "description": "Value for routing system 'routing_code_type_2'."
    }
  }
}