IMPORTANT: This SDK is under heavy development and subject to breaking changes.
The Rust SDK for the SumUp API.
Rust 1.82.0 or higher. We follow Firefox MSRV policy.
Install with:
cargo add sumupuse sumup::Client;
#[tokio::main]
async fn main() {
// Initialize the client (reads SUMUP_API_KEY from environment)
let client = Client::default();
// List existing checkouts
let checkouts = client
.checkouts()
.list(Default::default())
.await
.expect("list checkouts");
println!("retrieved {} checkouts", checkouts.len());
}You can find all examples under examples/. To run an example, use:
cargo run --example checkout_card_reader