Invoice Data Extractor: Bulgarian & EU (PDF, Scans) avatar

Invoice Data Extractor: Bulgarian & EU (PDF, Scans)

Pricing

from $8.00 / 1,000 invoice extracteds

Go to Apify Store
Invoice Data Extractor: Bulgarian & EU (PDF, Scans)

Invoice Data Extractor: Bulgarian & EU (PDF, Scans)

Invoice parser: extract invoice number, dates, seller/buyer, IBAN, VAT, totals and line items from PDF, scanned or photographed invoices in Bulgarian, English, German, French, Italian, Spanish and Romanian. Validates VAT, IBAN and totals. No external AI.

Pricing

from $8.00 / 1,000 invoice extracteds

Rating

0.0

(0)

Developer

Maine Wayne

Maine Wayne

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

Invoice Data Extractor for Bulgarian & EU Invoices (PDF, Scan, Photo)

An invoice parser that turns invoices into structured data (JSON, CSV, Excel): invoice number, dates, seller and buyer, IBAN, VAT numbers, net, VAT and total amounts, and the line items. Works with PDF invoices, scanned invoices and phone photos (OCR runs inside the Actor) in Bulgarian, English, German, French, Italian, Spanish and Romanian. No external AI or OCR service and no API key.

The Actor is rule-based and validates what it finds, so you can see which values to trust:

  • EIK (BULSTAT) and VAT numbers: check digit validated; EU VAT formats checked per country.
  • IBAN: only IBANs with a valid checksum are returned.
  • Totals: net + VAT must equal the total; the VAT rate must be plausible.
  • Line items: a row is returned only when quantity x unit price equals the amount printed on it, and the rows are summed against the total.
  • Layouts: seller and buyer side by side in two columns (the usual Bulgarian layout), one under the other, or an issuer named only in the header (as on many English invoices).
  • Photos: pictures are straightened and turned upright before reading, so a tilted or sideways phone photo still works.
  • BGN and EUR: since 2026 Bulgarian invoices show both currencies. The two totals are cross-checked against the official rate (1 EUR = 1.95583 BGN).

Input

FieldDescription
urlsPublic links to invoices: PDF, DOCX, PNG, JPEG, TIFF, WebP (up to 100). robots.txt is respected. HEIC photos are not supported: export them as JPEG.
inlineDocumentsSmall files as base64 [{"filename": "inv.pdf", "contentBase64": "..."}].
ocrauto (default): scans and images are read with OCR; off: text-layer documents only.
ocrLanguagesUp to 3 languages of scanned invoices (default bul + eng). Choose only the languages that are really on the invoice: every extra language makes reading slower and a little less exact.
includeRawTextReturn the recognised text for checking.
maxPagesPerDocumentPages read per document (default 10).

Example input

{ "urls": ["https://example.com/invoices/0000012345.pdf"], "ocrLanguages": ["bul", "eng"] }

Output (one item per document)

{
"status": "ok",
"documentType": "invoice",
"invoiceNumber": "0000012345",
"issueDate": "2026-03-12",
"taxEventDate": "2026-03-10",
"dueDate": "2026-03-26",
"currency": "BGN",
"seller": { "name": "Примерна Фирма ЕООД", "eik": "203456783", "eikValid": true, "vatId": "BG203456783", "vatIdValid": true },
"buyer": { "name": "Тест Клиент АД", "eik": "102345672", "eikValid": true, "vatId": null, "vatIdValid": null },
"ibans": [{ "iban": "BG80BNBG96611020345678", "valid": true }],
"totals": { "net": 100, "vat": 20, "gross": 120, "vatRatePercent": 20 },
"totalInOtherCurrency": { "currency": "EUR", "gross": 61.36 },
"lineItems": [{ "description": "Уеб дизайн услуга", "quantity": 1, "unit": null, "unitPrice": 100, "amount": 100 }],
"checks": { "totalsConsistent": true, "vatRatePlausible": true, "dualCurrencyConsistent": true, "lineItemsMatchTotal": true },
"confidence": "high",
"warnings": []
}

status is ok, no-invoice-data (the document has no invoice number or total) or error. Only ok results are billed.

Ready-made examples

Saved examples you can open, run and copy:

Pricing

Pay per event: a fee per invoice extracted (invoice-extracted) and a fee per page or image read with OCR (ocr-page-processed). PDFs with a text layer need no OCR. Documents without invoice data and failed downloads are free. Set Max cost per run to cap spending; the Actor never processes or charges more than your limit allows. See the pricing panel for current prices.

Honest limits

  • Rule-based, not a trained model. It reads labelled fields ("Фактура №", "Дата на издаване", "ЕИК", "ИН по ЗДДС", "Данъчна основа", "ДДС", "Сума за плащане", "Invoice No.", "Total due", "Rechnungsnummer", "Total TTC", "Imponibile", "Base imponible", "Total de plată" and their variants). Unusual layouts, other languages and handwritten invoices can be missed. Check confidence, checks and warnings.
  • Line items are best effort. Only rows where quantity x unit price = amount are returned, so rows with a discount or without a quantity are left out; checks.lineItemsMatchTotal tells you whether the rows found add up to the total. On scans the OCR often loses the number columns of a bordered table: expect line items mainly from PDFs with a text layer.
  • OCR is statistical. Pictures are straightened and turned upright automatically, but blurred, very small or shadowed scans still reduce accuracy. Always verify important amounts.
  • Seller and buyer are found through labels such as "Доставчик/Получател", "Seller/Bill to", "Verkäufer/Rechnung an", "Vendeur/Client", "Furnizor/Cumpărător". Without a seller label the issuer is taken from the document header and the result says so (confidence is then at most "medium").
  • The eik field is the Bulgarian company number; for other countries the company is identified by vatId.
  • The name of a contact person (for example "МОЛ") is not extracted.
  • Not tax or legal advice.

FAQ

Does it send my invoices to an AI service? No. Everything runs inside the Actor.

Which countries are supported? The label dictionary covers Bulgarian, English, German, French, Italian, Spanish and Romanian; VAT numbers of all EU countries and IBANs of 80+ countries are validated. The deepest checks (EIK checksum, BGN/EUR cross-check) are for Bulgarian invoices.

Why is confidence "medium" or "low"? Fewer than three of invoice number, date, total and seller were found, or the numbers do not add up. The warnings say what is missing.

Can an AI agent call it? Yes, through the Apify API or MCP server; use inlineDocuments for single invoices.

  • Image OCR: text from images and photos.
  • PDF & DOCX to Markdown: PDF, DOCX and HTML to Markdown, with OCR for scanned pages.
  • PII Redactor: mask personal data and secrets before sharing a text or sending it to an LLM.