Generate Factur-X Invoices with Rust

Learn how to easily integrate GoFX into your Rust stack.

Dealing with complex XML generation in Rust can be extremely tedious. GoFX abstracts all the EN16931 complexity away. Send a simple JSON payload and get a perfectly compliant hybrid PDF back in milliseconds.

Ecosystem Focus

Integrating Factur-X / EN16931 within the Rust ecosystem is now seamless. Avoid building complex XML DOMs manually and let GoFX handle the heavy lifting. Generate hybrid PDF/A-3 invoices directly via our REST API.

Prerequisites

Ensure you have Rust 1.50+ configured in your environment to make outbound HTTP POST requests to the GoFX API.

> Code Example
let client = reqwest::Client::new();
let res = client.post("https://api.gofx.app/v1/invoice/generate")
    .json(&payload)
    .send()
    .await?;
let bytes = res.bytes().await?;
std::fs::write("facture.pdf", bytes)?;