Generate Factur-X Invoices with Go
Learn how to easily integrate GoFX into your Go stack.
Dealing with complex XML generation in Go 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 Go 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 Go 1.16+ configured in your environment to make outbound HTTP POST requests to the GoFX API.
> Code Example
resp, err := http.Post("https://api.gofx.app/v1/invoice/generate", "application/json", bytes.NewBuffer(jsonPayload))
if err != nil { panic(err) }
defer resp.Body.Close()
out, _ := os.Create("facture.pdf")
defer out.Close()
io.Copy(out, resp.Body)