Generate Factur-X Invoices with WooCommerce

Learn how to easily integrate GoFX into your WooCommerce stack.

Dealing with complex XML generation in WooCommerce 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 WooCommerce 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 WooCommerce 5.0+ configured in your environment to make outbound HTTP POST requests to the GoFX API.

> Code Example
<?php
$ch = curl_init("https://api.gofx.app/v1/invoice/generate");
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type:application/json"]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
file_put_contents("facture.pdf", $result);
?>