Skip to content

pain001-sdk-rust

A typed, blocking Rust client for the pain001 REST API, which generates and validates ISO 20022 pain.001 and pain.008 payment files. The engine is the Python server, pain001 serve; this crate is a thin client for it, proven against the suite's conformance kit in CI.

[dependencies]
pain001-sdk = "0.0.88"
use pain001_sdk::{Client, Error, MessageType};

fn main() -> Result<(), Error> {
    let client = Client::new("http://127.0.0.1:8000");
    let csv = std::fs::read_to_string("payments.csv").expect("read the CSV");
    let generated = client.generate(&csv, "payments.csv", MessageType::Pain00100109, None)?;
    let report = client.check(generated.xml.as_deref().unwrap_or_default(), None, None)?;
    println!("{} passed={}", report.message_type, report.passed);
    Ok(())
}

Where to go

You want to Read
Install it and make a first call the README
Look up a type or method the API reference on docs.rs, or this site's copy built from main
See every method run the examples
Understand how a call works Architecture and the decision records
Compare it with the other SDKs Ecosystem comparison
Know what it costs Benchmarks
Package it Packaging and policies
Work on it Development and Contributing