Turn invoice PDFs into structured JSON — vendor, invoice number, dates, line items, totals — in one API call. No templates, no manual field mapping.
Returned as clean JSON, with a confidence score, in one API call.
Who issued the invoice.
The invoice’s own reference number.
When it was issued and when payment is due.
The amount due, with currency.
Tax and pre-tax subtotal, when stated.
Array of {description, quantity, unit_price, amount} for every line on the invoice.
No SDK required — plain REST, works from any language.
# 1. Register to get your free API key
curl -X POST https://ai2json.com/api/v1/auth/register \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]","password":"YourPass123"}'
# 2. Parse an invoice PDF
curl -X POST https://ai2json.com/api/v1/parse/document \
-H "Authorization: Bearer $TOKEN" \
-F "[email protected]"
# 3. Get structured JSON back
# {"doc_type":"invoice","confidence":0.98,"fields":{
# "vendor_name":"Acme Supplies","invoice_number":"INV-2041",
# "invoice_date":"2026-09-02","due_date":"2026-10-02",
# "total_amount":1240.50,"currency":"USD",
# "line_items":[{"description":"Widgets","quantity":40,"unit_price":28,"amount":1120}],
# "tax":120.50,"subtotal":1120}}Start free. Upgrade when you need more.
Get your API key and parse your first document in under a minute.
Get Free API Key →