Generate Factur-X Invoices with Dart
Learn how to easily integrate GoFX into your Dart stack.
Dealing with complex XML generation in Dart 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 Dart 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 Dart 2.12+ configured in your environment to make outbound HTTP POST requests to the GoFX API.
> Code Example
var url = Uri.parse("https://api.gofx.app/v1/invoice/generate");
var response = await http.post(url,
headers: {"Content-Type": "application/json"},
body: jsonEncode(payload));
File("facture.pdf").writeAsBytesSync(response.bodyBytes);