SHARED

AI extraction

AI Data Extraction for Shipping and Freight Documents

Extract structured fields and line items from Bills of Lading, invoices, packing lists, air waybills and related logistics documents. Review every result before exporting it to Excel, CSV, JSON or a downstream system.

GainingDocx turns Bills of Lading, commercial invoices, packing lists and related shipment records into structured fields. It is designed for logistics documents rather than generic page text, so tables, cargo lines and maritime references stay connected to their meaning.

The review screen keeps the source and extracted values together. Teams can correct uncertain fields before exporting them to Excel, CSV, JSON or a downstream workflow.

Short answer

How extraction works

Upload or forward a shipping document and it is classified by type, then read against a field model built for that type. Values come back as named fields and structured rows — not page text — with the source page shown alongside so every value can be confirmed. Deterministic code then checks the arithmetic, references and relationships before anything is exported.

  • Document-specific field models, not one generic reader
  • Line items and container rows preserved as rows
  • Source and extracted value shown together
  • Checks in code, not model confidence

How Shipping Document OCR Works

  1. 01

    Upload a PDF or page image.

  2. 02

    Review fields as they are extracted.

  3. 03

    Resolve warnings and export clean data.

The problem with retyping shipping data

A single container shipment generates a Bill of Lading, a commercial invoice, a packing list, a booking confirmation, an arrival notice and a freight invoice at minimum. The same twenty facts — parties, references, quantities, weights, ports — appear on all of them, and in most operations those facts are typed into a system between two and five times by different people.

The cost is not only the typing. Each re-entry is an opportunity to introduce a difference, and a difference between documents is what generates customs queries, letter-of-credit discrepancies, payment holds and misdelivery. The value of extraction is less about speed and more about the same fact arriving in every system from one reading rather than five.

What happens to a document

  1. 1The document is classified by type, because a packing list and a freight invoice need different field models and routing one to the other produces phantom and missing fields.
  2. 2Pages are read against the model for that type, mapping values to meaning rather than returning text — this block is the notify party, this table column is gross weight.
  3. 3Line items, container rows and charge lines are reconstructed as structured rows, including tables that run across page breaks.
  4. 4Deterministic checks run in code: check digits, port codes, arithmetic, weight relationships, date ordering.
  5. 5Findings are separated into contradictions and warnings, and ordered by what actually blocks a shipment rather than by page position.
  6. 6The reviewer confirms or corrects fields with the source page alongside, and the corrected record is what exports.

Classification before extraction is not a detail

A generic model asked to 'extract the fields' from an arrival notice will find something for every field it knows about, including fields the document does not contain. Choosing the field model first is what keeps a missing value reported as missing rather than filled in with the nearest plausible text on the page.

Document types supported

The document set covered
ModeDocuments
Ocean transportBill of Lading, sea waybill, booking confirmation, arrival notice
Air transportMaster and house air waybill, shipper's letter of instruction, air cargo manifest, dangerous goods declaration, cargo security declaration
CommercialCommercial invoice, pro forma invoice, packing list, purchase order
FinancialFreight invoice, charge and rate documents
ReceivingGoods receipt, delivery note, proof of delivery

What extraction does not do

Being specific about the boundary is what makes the tool usable in a regulated workflow. Extraction reads and checks; it does not decide, certify or issue.

  • It does not authenticate a document or confirm that a carrier issued it
  • It does not classify goods for customs, or issue a binding tariff opinion
  • It does not certify dangerous goods compliance or replace acceptance review
  • It does not issue transport documents — only a carrier or authorised agent can
  • It does not file or transmit anything to a customs authority or carrier system
  • It does not assess whether a commercial price or a charge was fair or agreed

Where the output goes

Extraction is only worth doing if the result leaves the tool. Reviewed records export as Excel workbooks with line items and container rows on their own sheets, as CSV for flat feeds, as structured JSON where array detail must survive, and as PDF review reports for a file or a customer.

For teams pushing data onward, connector payloads carry the reviewed record into a downstream system, and the same data can be reused to generate a counterpart document draft rather than being typed again into a blank form.

Shipping Document OCR FAQ

What teams ask before relying on shipping document data extraction in a live operation.

Which shipping documents can be extracted?

Bills of lading, sea waybills, booking confirmations and arrival notices for ocean; master and house air waybills, shipper's letters of instruction, cargo manifests, dangerous goods declarations and security declarations for air; and commercial invoices, pro forma invoices, packing lists, purchase orders, freight invoices and goods receipts across both modes.

How is this different from a generic OCR tool?

Generic OCR returns the text on the page. It does not know which address block is the consignee, which of four place fields it is looking at, or which weight belongs to which container. Extraction here classifies the document first, applies a field model built for that type, reconstructs line items as rows, and then validates the result with deterministic code rather than reporting a confidence score.

Can the result be corrected before export?

Yes, and it is designed to be. Extracted values stay next to the source page so a reviewer can confirm or correct anything. Exports are generated from the corrected record, not from the raw reading — so a correction made once is reflected in every format and every downstream handoff.

Does it preserve line items?

Yes. Invoice lines, cargo lines, container rows and charge lines are returned as structured rows, including tables that run across page breaks and continuation sheets. This matters because everything downstream is line-level: customs classifies per line, three-way matching compares per line, duty is calculated per line.

How accurate is it?

Accuracy varies with document quality, and no honest answer is a single percentage. What the design guarantees instead is that uncertainty is visible: deterministic checks flag anything the arithmetic cannot support, the source page sits beside every value, and warnings are distinguished from contradictions so review effort goes where it matters.

What file formats can I submit?

Native PDFs, scans and photographs including phone images, in PDF, JPG, PNG and WebP. Multi-page documents are processed page by page. Native files give better results than a scan of a printout, but terminal photographs and faxed copies are normal inputs rather than edge cases.

Does it work with documents in other languages?

Yes, for the languages the extraction layer supports, and field labels in those languages map to the same structured model. Values, party names and goods descriptions are preserved as written rather than translated, so the record matches the document a customs officer or carrier will be holding.

How long does extraction take?

Typically well under a minute per page, with fields appearing progressively rather than all at the end. Long documents — multi-page packing lists, consolidation manifests, invoices with hundreds of lines — take proportionally longer because every page is read.

Can I process documents in bulk?

Yes, through batch upload or by forwarding a whole shipment email to your private intake address. Documents arriving together are grouped into a shipment record, which is what enables the cross-document comparison rather than treating each file in isolation.

Is my data used to train models?

Your documents are processed to produce your result and stored privately in your workspace under your control. They are not shared between accounts, and you can export or delete them at any time — deletion removes the document together with its extracted data.

Can extracted data be pushed into my TMS or ERP?

Yes. Reviewed records export as structured JSON preserving the row arrays, and connector payloads carry the record into a downstream system so it does not have to be re-keyed. Excel and CSV remain available where a system takes a file rather than a feed.

Do I need to configure templates for each carrier?

No. The field models are built per document type rather than per carrier layout, which is what allows a Bill of Lading from an unfamiliar NVOCC to extract without setup. There is no template library to maintain and no rules to write when a supplier changes their invoice design.

Related tools, templates and guides