Invoice PDF to JSON API
Turning invoice PDFs into usable JSON is a common integration need. A PDF might look readable to a person but still be awkward for software, especially when you need totals, VAT, seller details, buyer details, line items, or payment instructions in a predictable shape. The Invoice & Receipt Extract API provides a practical way to send a file and receive structured output for downstream systems.
The response can include total_net, total_vat, total_gross, amount_due, prepaid_amount, seller and buyer objects, line items, VAT breakdown, and payment.iban. That makes it suitable for invoice inboxes, payable automation, internal dashboards, and light validation flows where a person still reviews the result.
Compared with building and maintaining your own template rules, an API approach can simplify support for varied invoice layouts. It is also easier to test with real documents and add to existing software through a single HTTP call. Failed calls are not charged, files are not stored, and credits are available as prepaid packs with 12 months validity.
curl -X POST "https://fatura.lunafzai.com/v1/extract" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"file\": \"$(base64 -w0 invoice.pdf)\", \"mime\": \"application/pdf\"}"
If you want to evaluate cost before integrating, the current prepaid packs are 100 calls for USD 9, 1000 calls for USD 49, and 5000 calls for USD 199. See the docs for examples and the field list, or buy credits to test on your own PDFs.