Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Global IBAN, BIC/SWIFT & Bank Routing Validator API — Rust Client Crate

Crates.io Documentation License: MIT Stanza API

ISO 13616 MOD-97 IBAN checksum verification, ISO 9362 BIC/SWIFT validation, and national bank routing extraction across 87 countries.

Official high-performance, asynchronous Rust client library for Global IBAN, BIC/SWIFT & Bank Routing Validator API, built on the Stanza Micro-API Network. Uses pure Rustls TLS (zero C/OpenSSL dependencies) and Tokio for maximum concurrency and safety.


📦 Installation

Add to your Cargo.toml:

[dependencies]
stanzaapi-iban-validator = "1.0.0"
tokio = { version = "1.0", features = ["full"] }

Or use cargo add:

cargo add stanzaapi-iban-validator

🚀 Quickstart

use stanzaapi_iban_validator::IbanValidatorClient;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Reads STANZA_API_KEY from environment automatically
    // Public edge default: https://api.stanzaapi.com/iban-validator
    let client = IbanValidatorClient::new(None, None);

    let response = client.validate("DE89370400440532013000").await?;

    if response.success {
        println!("Verification Success: {:?}", response.data);
    } else {
        eprintln!("Validation Error: {:?}", response.error);
    }

    Ok(())
}

📄 Example Response

{
  "success": true,
  "data": {
    "valid": true,
    "iban": "DE89370400440532013000",
    "country_code": "DE",
    "bank_code": "37040044",
    "bic_candidate": "COBADEFFXXX"
  }
}

🔗 Useful Links

📄 License

MIT © Stanza — Powered by Stanza.

Releases

Packages

Contributors

Languages