An API built for integrators
One request is enough to get a DGI normalised invoice.
REST and JSON
OpenAPI 3.1 documented in French and English, standard errors (problem+json).
Idempotency
Idempotency-Key header: the same sale is never invoiced twice.
Test then live
Separate fh_test_ and fh_live_ keys, same calls.
Signed webhooks
invoice.normalized, report.z.created… signed with HMAC-SHA256.
POST /v1/invoices
curl https://api.facnohub.com/v1/invoices \
-H "Authorization: Bearer fh_live_••••" \
-H "Idempotency-Key: vente-2026-0428" \
-d '{
"items": [{ "name": "Ciment 50 kg", "type": "BIE",
"price": 17500, "quantity": 40, "tax_group": "B" }],
"operator": { "name": "Sarah" }
}'
→ 201 Normalised invoice
"def_dgi_code": "3TKD-NOUI-N6HL-I7LZ-6I5Y-XVWZ",
"pdf_url": "https://api.facnohub.com/v1/invoices/…/pdf"