Bills of lading and shipping documents to JSON

Freight paperwork arrives as scans, carrier PDFs and spreadsheets, and the same data gets typed into a TMS again and again. Parsefox reads bills of lading, air waybills, packing lists, delivery notes and customs declarations and returns the parties, routing, goods and weights in your schema.

nblu4471209-bl.pdfPage 1
BILL OF LADING
B/L No.
Shipper
Consignee
Vessel / voyage
Port of loading
Port of discharge
MarksDescription of goodsGross wt.
KTX/RTM 1-120
Verified/bill_number

Source: NBLU4471209 · page 1

What you get

The Bill of lading template

A ready-made JSON Schema to start from. Add, rename or remove fields, describe where to find them, and save it as your own versioned schema.

bill_number
The B/L number exactly as printed.
shipper, consignee, carrier
The parties named on the bill.
vessel
Vessel name and voyage if given.
port_of_loading, port_of_discharge
Routing as printed.
goods
Description of goods, keeping qualifiers such as “said to contain”.
gross_weight
Weight with its unit.

Air waybills, packing lists, delivery notes and customs declarations have their own templates.

Two calls with a free test key

shell · curl + jq
export PARSEFOX_BASE_URL="https://parsefox.dev"
export PARSEFOX_API_KEY="pf_test_..."   # from the console

DOC=$(curl -s "$PARSEFOX_BASE_URL/v1/documents" \
  -H "Authorization: Bearer $PARSEFOX_API_KEY" \
  -F file=@nblu4471209-bl.pdf | jq -r .document_id)

curl -s "$PARSEFOX_BASE_URL/v1/extractions?wait=60" \
  -H "Authorization: Bearer $PARSEFOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"document_id\": \"$DOC\", \"template_id\": \"bill-of-lading\"}"

Python and TypeScript versions are in the quickstart. Coding agents can follow /llms.txt.

The hard parts

Where plain OCR and quick prompts fall short

Each value is checked against the document. What cannot be confirmed is flagged, not filled in.

  • Carrier-specific layouts

    Every line formats its bills differently. The schema stays the same; Parsefox finds the boxes wherever they are.

  • Legal qualifiers

    Wording like “said to contain” or “shipper's load and count” is kept, because it changes what the document proves.

  • “To order” consignees

    When the consignee is not a named party, the value is kept as printed and flagged, so the notify party gets checked.

  • Scans and faxes

    Low-quality scans are read page by page from the image, and unclear values are flagged instead of guessed.

Test mode is free. Live runs are paid from prepaid credit by actual usage, typically a few cents per document, with an estimate before every run. See pricing and how we measure accuracy.

Questions

Logistics documents: what teams ask

Anything else? Write to support@parsefox.dev.

Which logistics documents have templates?
Bill of lading, air waybill, packing list, delivery note and customs declaration. Any other document works with your own schema.
Can it handle container lists and HS codes?
Yes. Add a list field for containers, or use the customs declaration template, which keeps commodity codes as text so leading zeros survive.
We receive hundreds a day. Is there a limit?
Jobs run asynchronously and report back by signed webhook. For steady volume, talk to us during the free pilot about throughput.

Other documents

Free pilot

We set it up on your documents

We are taking ten companies into a free pilot. Send a few sample documents and what you need from them; we tune the schema, run them and show you the results, accuracy and cost per document.

Apply for the pilot