Business
Business · AI-assisted
Invoice & Receipt Parser API
Invoice & receipt parser: PDF, scan or photo to JSON with VAT IDs, lines, taxes and math checks.
Base URLhttps://invoice-receipt-parser-pdf-image-to-json.p.rapidapi.com/v1/invoicesopenapi.json
- Free plan
- 2 credits a day
- Paid plans
- from $4.99 a month
- One credit
- 1 credit per page read by the AI (a photo is one page); an e-invoice XML, 1.
- Endpoints
- 2, on
/v1/invoices
Example call
curl -X POST "https://invoice-receipt-parser-pdf-image-to-json.p.rapidapi.com/v1/invoices/parse" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: invoice-receipt-parser-pdf-image-to-json.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{
"url": "https://raw.githubusercontent.com/invoice-x/invoice2data/master/tests/compare/saeco.pdf"
}'
import requests
url = "https://invoice-receipt-parser-pdf-image-to-json.p.rapidapi.com/v1/invoices/parse"
payload = {
"url": "https://raw.githubusercontent.com/invoice-x/invoice2data/master/tests/compare/saeco.pdf"
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "invoice-receipt-parser-pdf-image-to-json.p.rapidapi.com",
}
r = requests.post(url, json=payload, headers=headers)
print(r.json())
const res = await fetch("https://invoice-receipt-parser-pdf-image-to-json.p.rapidapi.com/v1/invoices/parse", {
method: "POST",
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "invoice-receipt-parser-pdf-image-to-json.p.rapidapi.com",
"Content-Type": "application/json",
},
body: JSON.stringify({
"url": "https://raw.githubusercontent.com/invoice-x/invoice2data/master/tests/compare/saeco.pdf"
}),
});
console.log(await res.json());
{
"document_type": "invoice",
"language": "nl",
"number": "VF1005193039",
"issue_date": "2022-09-08",
"due_date": "2022-09-22",
"purchase_order": "SCONL000000444",
"currency": "EUR",
"supplier": {
"name": "e-Luscious Nederland B.V. iov Saeco.com",
"vat_id": "NL8152.54.295.B01",
"tax_ids": [{ "type": "Kvk", "value": "04080176" }],
"address": "Badweg 48, 8401 BL, Gorredijk",
"country": "NL"
},
"customer": { "name": "Strategic Corp", "tax_ids": [], "country": "NL" },
"lines": [
{
"description": "Onderhoudsset CA6707/10",
"code": "E103184",
"quantity": 1.0,
"unit": "PCS",
"unit_price": 49.99,
"tax_rate": 21.0,
"total": 49.99
},
{
"description": "SX Flyer SAECO Korting KVDNL",
"code": "E103560",
"quantity": 1.0,
"unit": "PCS",
"unit_price": 0.0,
"tax_rate": 21.0,
"total": 0.0
}
],
"amounts_include_tax": true,
"totals": {
"subtotal": 41.31,
"taxes": [{ "rate": 21.0, "base": 41.31, "amount": 8.68, "label": "21 %" }],
"tax_total": 8.68,
"total": 49.99
},
"payment": { "method": "card", "iban": "NL58RABO0198723202", "bic": "RABONL2U" },
"expense_category": "shopping",
"source": "https://raw.githubusercontent.com/invoice-x/invoice2data/master/tests/compare/saeco.pdf",
"mime_type": "application/pdf",
"method": "ai",
"page_count": 1,
"pages_read": 1,
"validation": {
"consistent": true,
"checks": [
{ "name": "line_math", "status": "ok", "detail": "2 line(s) checked." },
{ "name": "lines_sum", "status": "ok", "expected": 49.99, "found": 49.99, "difference": 0.0, "detail": "Sum of the line amounts against the subtotal or total." },
{ "name": "tax_rates", "status": "ok", "detail": "1 tax rate(s) checked." },
{ "name": "tax_sum", "status": "ok", "expected": 8.68, "found": 8.68, "difference": 0.0, "detail": "Sum of the taxes by rate against the tax total." },
{ "name": "total", "status": "ok", "expected": 49.99, "found": 49.99, "difference": 0.0, "detail": "Subtotal + tax (+ charges - discount + tip) against the total." },
{ "name": "amount_due", "status": "skipped", "detail": "Total, amount paid or amount due missing." },
{ "name": "iban", "status": "ok", "detail": "IBAN checksum valid." }
]
}
}
Parse Invoice from URL: POST /v1/invoices/parse. A real call and its real response.
What the Invoice & Receipt Parser API returns
Stop retyping invoices. Send a PDF (digital or scanned), a photo of a receipt or an e-invoice XML, and get the data your books need: supplier with VAT and company IDs, invoice number, dates, currency, every line item, taxes by rate, totals, payment terms and IBAN. Then the API re-adds the figures itself and flags what does not add up, so a misread price never slips into your ledger. Any language, any currency, from about $0.01 per page.
- Supplier & customer
- Company name, VAT number, SIRET / SIREN / EIN / company register IDs, business address, country
- Line items
- Description, SKU, quantity, unit, unit price, line discount, tax rate, amount
- Totals
- Subtotal, discount, charges (shipping, service), taxes by rate, tip, cash rounding, total, paid, amount due
- Math checks
- Quantity x price, sum of lines, tax per rate, grand total, amount due and IBAN checksum, each one ok, mismatch or skipped
- Multi-page
- Up to 30 pages per call, read in parallel batches and merged in order
- E-invoices read exactly
- Factur-X, ZUGFeRD, XRechnung and UBL / Peppol XML (embedded in the PDF or sent as a file), no AI, no guess
- Bookkeeping ready
- Document type (invoice, receipt, credit note...), expense category, ISO dates, ISO currency and country codes
Endpoints
Host invoice-receipt-parser-pdf-image-to-json.p.rapidapi.com, header X-RapidAPI-Key. Parameters and examples for each one are in the API reference.
Invoice Parsing
Invoices and receipts to accounting JSON, with checks.
Use cases
- Accounts payable automation. Supplier invoices from an inbox to your ERP, with the doubtful ones flagged for review
- Expense apps. Receipt photos to amount, tax, merchant and expense category
- Bookkeeping and accounting firms. Bulk-import client invoices with VAT IDs and taxes by rate
- Procurement and audit. Match invoices to purchase orders, catch totals that do not add up
- E-invoicing projects. Read Factur-X, ZUGFeRD and UBL invoices exactly, and scanned paper ones with the same JSON
Tutorial
Business
Pricing
1 credit per page read by the AI (a photo is one page); an e-invoice XML, 1. Failed calls are never billed.
| Plan | Price | Credits included | Above the quota |
|---|---|---|---|
| BASIC | Free | 2 / day | resets every day |
| PRO | $4.99/mo | 480 / month | $0.11 per credit |
| ULTRA | $14.99/mo | 1,440 / month | $0.11 per credit |
| MEGA | $49.99/mo | 4,800 / month | $0.11 per credit |
Subscribe on RapidAPI (opens in a new tab)
No code: the Apify actor
The Invoice & Receipt Parser - PDF & Photo to JSON actor runs the same engine on a list of inputs and exports a table (JSON, CSV, Excel, Google Sheets). It is billed per result; free-plan users get 5 documents of 2 pages per run.
| Event | Charged for | Price |
|---|---|---|
invoice-page | Each page read by the AI | $0.01 |
e-invoice | Each e-invoice read from its XML | $0.003 |
Questions about the Invoice & Receipt Parser API
Which languages and currencies?
Are the amounts exact?
consistent is false and the failed check names the gap. An e-invoice XML is exact by definition.









