{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-canada-routing-number-openapi-branch-info-schema.json",
  "title": "CanadaRoutingNumberOpenapi_BranchInfo",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-canada-routing-number-api-openapi.yml#/components/schemas/CanadaRoutingNumberOpenapi_BranchInfo",
  "type": "object",
  "properties": {
    "bank_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "The name of the bank. Premium only."
    },
    "routing_number": {
      "type": "string",
      "description": "The 9-digit Canadian routing number in EFT format."
    },
    "transit_number": {
      "type": "string",
      "description": "The 5-digit branch transit number."
    },
    "institution_number": {
      "type": "string",
      "description": "The 3-digit financial institution number."
    },
    "branch_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "The name of the branch. Premium only."
    },
    "street_address": {
      "type": [
        "string",
        "null"
      ],
      "description": "The street address of the branch. Premium only."
    },
    "city": {
      "type": "string",
      "description": "The city of the branch."
    },
    "province": {
      "type": "string",
      "description": "The two-letter province or territory code (e.g. ON, QC, BC)."
    },
    "postal_code": {
      "type": "string",
      "description": "The postal code of the branch."
    },
    "country": {
      "type": "string",
      "description": "Always CA."
    },
    "swift_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "The SWIFT/BIC code of the bank, useful for international wire transfers. Premium only."
    },
    "checksum_valid": {
      "type": "boolean",
      "description": "Whether the routing number passes structural validation. Canada does not use a checksum algorithm, so this confirms the format is valid (9 digits, leading zero, recognized institution number)."
    }
  }
}