vatcheckapi

Crates.iovatcheckapi
lib.rsvatcheckapi
version0.1.0
created_at2025-10-02 09:16:08.345722+00
updated_at2025-10-02 09:16:08.345722+00
descriptionRust client for vatcheckapi.com (status, validate)
homepagehttps://vatcheckapi.com/
repositoryhttps://github.com/everapihq/vatcheckapi-rs
max_upload_size
id1864078
size54,589
Clemens Ehrenreich (clmns)

documentation

README

vatcheckapi-rs

Rust client for the vatcheckapi.com API.

[dependencies]
vatcheckapi = "0.1"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
use vatcheckapi::{Client, AuthMethod};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::builder("YOUR_API_KEY")
        .with_auth_method(AuthMethod::Header)
        .build();

    let status = client.status().await?;
    println!("{:?}", status);

    let resp = client.validate(&serde_json::json!({"vat_number": "DE123456789"})).await?;
    println!("{:?}", resp);
    Ok(())
}
Commit count: 0

cargo fmt