Commercial Invoice Parser

Commercial invoices drive customs entries, letters of credit and payment — and a single mistyped amount or HS code can hold a shipment at the border. GainingDocx extracts every line item, amount and party from your invoice as structured data you can trust.

Once parsed, the invoice can be cross-checked against the Bill of Lading and packing list from the same shipment: mismatched buyers, differing incoterms or totals that don't add up surface as red and amber discrepancies.

No sign-up for your first document · 15–30 seconds per page

What gets extracted

  • Invoice number, date and PO number
  • Seller and buyer with addresses and tax IDs
  • Line items with description, HS code, quantity, unit price and amount
  • Currency, subtotal, freight, insurance and total amount
  • Incoterm, payment terms, L/C number and country of origin
  • Bank details

Deterministic checks

Computed in code — the AI never does the math.

  • Gross ≥ net weight on every line that carries both
  • Invoice date sanity (flagged when in the future)
  • Cross-document: invoice totals vs packing list, incoterm vs B/L
  • Duplicate invoice number detection across your documents

How it works

  1. 1Upload or photograph the document — pages are compressed on your device.
  2. 2Review the extracted fields; deterministic checks flag anything suspicious.
  3. 3Export to Excel, CSV or JSON, or generate the counterpart document.

Frequently asked questions

Does the parser calculate totals itself?

No — and that's deliberate. Values are copied exactly as printed. Deterministic rules then verify whether the printed lines add up to the printed total and flag the difference if they don't.

Can it read invoices in other languages?

The parser handles common trade-document layouts in English and mixed-language documents. Values are copied exactly as printed, so foreign party names survive untouched.

Can I generate a packing list from the invoice?

Yes. One click creates a packing list draft with every line mapped from the invoice — you edit, then download the PDF.

How long does parsing take?

Typically 15–30 seconds per page, streamed live so you see fields appear as they are read.

Try it on your own document — free, no sign-up

Start parsing