Luna group L.L.C-FZ · Dubai

Extract invoice and receipt data plus basic consistency checks from PDFs, images, or text with one API call.

POST a base64 file to the Invoice & Receipt Extract API and get structured data, validation checks, and meta in JSON.

How it works

1. Send a file

POST to /v1/extract with x-api-key or Authorization: Bearer YOUR_KEY.

2. Get structured JSON

Returns data such as seller, buyer, VAT IDs, line items, VAT breakdown, totals, IBAN, and dates.

3. Review checks

See passed checks and issues for line sums, VAT math, totals, IBAN checksum, VAT ID format, and dates.

curl -X POST https://fatura-api-lunafzai.pages.dev/v1/extract \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "file":"BASE64_FILE",
    "mime":"application/pdf"
  }'

Also available: GET /v1/usage for calls left, GET /v1/schema, GET /v1/demo, OpenAPI at JSON and YAML. MCP server: /mcp with tool extract_invoice, pass the key as Authorization: Bearer.

What you get

  • ✓ Extracted fields: seller, buyer, VAT IDs, lines, VAT breakdown, totals, IBAN, dates
  • ✓ Checks with passed flags and issue details
  • ✓ Validation coverage for line sums, VAT math, totals, IBAN checksum, VAT ID format, and dates
  • ✓ Files processed in memory and not stored
  • ✓ Failed calls are not charged: 4xx validation, 422, and 5xx

Pricing

Prepaid packs, one-time payment, valid for 12 months. Card payments via Stripe.

100 calls

$9

For testing and low volume.

Buy 100

1000 calls

$49

For regular automation.

Buy 1000

5000 calls

$199

For higher volume workloads.

Buy 5000

After payment, the buyer lands on a page that shows the API key once.

FAQ

How do I authenticate?

Use x-api-key: YOUR_KEY or Authorization: Bearer YOUR_KEY.

What file types are supported?

application/pdf, image/png, image/jpeg, image/webp, and text/plain.

Do you store files?

No. Files are processed in memory and not stored.

What about scanned PDFs?

If a PDF is image-only, send each page as an image for best results.

Are there limits?

Yes. Maximum file size is 8 MB per file.

Quickstart

  1. Buy a prepaid pack and save the API key shown after checkout.
  2. Base64-encode your file and send it to POST /v1/extract.
  3. Check remaining balance with GET /v1/usage.

Honest scope

AI-assisted extraction may contain errors. Review output before booking or payment. This service is not tax, legal, or accounting advice, and it is not an EN 16931 / XRechnung validation service. Support: [email protected]. Refunds: unused packs are refundable within 14 days on request to [email protected]; a refund disables the key.