Should You Build, Buy or Extend a Bill of Lading Parser?

A column of bill of lading cards, each with a different layout, flows along dotted paths into one parser card and out into a clean table, with one unfamiliar tilted layout highlighted in orange

Buy a parser if your bills of lading come from many carriers and forwarders, because the real cost of a parser is keeping up with layouts you don't control, not writing the first version. Build one only when the layouts are few and yours, when reading documents is the product you sell, or when files can't leave your network. Extend when part of the job is specific to you, such as your own fields, your own checks or your own system at the end, and write only that part.

The rest of this post is the checklist behind that answer, so you can run it against your own documents instead of taking it on trust.

What do build, buy and extend actually mean here?

The three options blur together easily, so here is what each one means for a bill of lading (BOL) parser.

  • Build. Your developers write the whole thing: reading scans, finding the fields on each layout, pulling the cargo table, checking the results, a screen for fixing mistakes, and the code that loads data into your TMS or ERP. You own every piece, and every fix.
  • Buy. You use a ready-made extraction service with a bill of lading field list, as it comes. Documents go in, structured data comes out, and someone else keeps the reading working when layouts change.
  • Extend. You start from something that already reads BOLs and add what's specific to you. That usually means editing the field list, adding checks against your own data, and writing the integration into your systems. It can also mean keeping an in-house parser you already have and adding a fallback for the documents it can't handle.

In practice, the real choice is usually between building and extending. Almost nobody uses a parser with zero changes, and almost nobody needs to write character recognition from scratch.

Why is the first version the cheap part?

Because the first version only has to work on the documents you tested it with.

A developer can get a convincing demo running quickly: run OCR (optical character recognition) on sample BOLs from your biggest carriers, write rules that find the shipper, the consignee and the BOL number, and print the results. It works. Everyone is impressed. The trouble starts after launch.

Chart: on the left, the first version, built on your top carriers' samples. On the right, the work that comes every month after: new layouts, scans and photos, silent errors, and export to your system. Silent errors is highlighted

Here's what keeps arriving once the parser is live:

  • New layouts. A new carrier, a forwarder issuing house bills, a carrier that redesigns its form. Each one needs new rules. Ocean bills, house bills, sea waybills, air waybills and CMR consignment notes carry similar information in different places.
  • Bad copies. Faxed BOLs, phone photos from the dock, scans at an angle, stamps over the consignee block, handwritten notes from the driver.
  • Cargo tables that don't fit. Consolidated shipments push cargo lines onto a rider page, descriptions wrap over several lines, and totals sit somewhere different on every layout.
  • Silent errors. This is the expensive one. A rules-based parser that reads the wrong part of a changed form doesn't crash. It returns a plausible value, like the notify party's name in the consignee field, and nobody notices until a delivery goes wrong or an invoice doesn't match.
  • The rest of the pipeline. Someone needs a screen to fix bad reads, a way to re-run a document, logging, and the export into your system. None of that was in the demo.

That's why "how long will it take to build?" is the wrong question. The useful one is "who keeps it working, and how many hours a month will that take?" If you can't name the person, you don't have a parser yet. You have a demo with a maintenance bill attached.

We went deeper into why layout rules break in why document extraction tools ask you to build templates.

Which questions decide it?

Pull last month's bills of lading before you answer these. Your own documents settle this faster than any vendor page, this one included.

  1. How many distinct layouts did you receive, and who designs them? Count the issuers: carriers, forwarders, NVOCCs, your own warehouse. A handful of layouts printed by your own system is a very different job from a long list of layouts other companies control.
  2. How often does a new one show up? Look back over a few months. If new issuers appear regularly, a rules-based parser is never finished.
  3. What do the files look like? Clean digital PDFs are the easy case. Scans, faxes, photos and handwriting push you toward something built to read them.
  4. What does a wrong value cost? A wrong BOL number, weight or consignee can mean a quick correction or a lost shipment. The higher the cost, the more you need a confidence score on every field and a review step, whichever option you pick.
  5. Where does the data go? A spreadsheet, a TMS, an ERP, a freight audit tool. The integration is often the most custom part of the project, and it's the part most worth writing yourself.
  6. Who owns it in a year? Name the person. If the answer is "whoever built it, when they have time", treat maintenance as unfunded.
  7. Can the documents leave your network? Some contracts or internal policies require files to stay on your own servers. If so, a cloud service is off the table, and building (or an on-premises product) is the only route.
  8. Is reading documents your product? If you sell a freight platform and extraction quality is what customers pay you for, owning it can be worth the cost. If it's back-office plumbing, it probably isn't.

Decision map titled

For a quick tally, here's how the answers map to a direction:

What you found Leans toward
A few layouts, all printed by your own system Build, or skip parsing (see below)
Many layouts from carriers and forwarders you don't control Buy
New issuers arriving regularly Buy
Lots of scans, faxes and phone photos Buy
Your own fields and checks, and a system that needs the data Buy and extend
Files must stay on your own servers Build, or an on-premises product
Extraction is the product you sell Build

When does building in-house actually make sense?

Sometimes it does, and it's worth being honest about when.

The layouts are yours. If your own warehouse prints the BOLs from your own system, the layout never changes unless you change it, and a simple parser is cheap to keep. Better still, ask why you're reading a PDF at all. The data already exists in the system that printed it, and an export or EDI feed from that system beats any parser, because nothing has to be read back in.

Reading documents is your product. If extraction quality is your edge, owning the pipeline lets you tune it for your customers and your margins. Budget for it as a product with a team, not a side project.

Files can't leave your network. A hard on-premises requirement rules out cloud services, full stop. Check that it's a real requirement and not an assumption, though. Often the actual rule is about where data is stored and processed and whether it's used to train models, which is a question any service should be able to answer in writing.

You have an owner with time. A parser with a named engineer, a test set of real documents and a regular maintenance slot can work for years. A parser written between other projects tends to lose the team's trust once its author moves on, and then it quietly gets replaced by people retyping.

If none of these fit, building usually means spending developer time on a problem that's already solved, instead of on the part that's actually yours.

What does "extend" look like in practice?

Extending means you buy the reading and write only what's specific to you. There are two versions.

Extending a bought service. You start from a ready BOL field list and shape it: add your own fields, such as a booking reference or PO number, remove the ones you don't use, and mark the ones that must always be there. Then your developers write the thin layer that's truly yours, like matching the BOL number against open shipments in your TMS, comparing weights with the booking, or mapping fields into your ERP's import format. Reading, layout variety and the review screen stay with the service.

Extending a parser you already have. If an in-house parser handles your top carriers well, you don't have to throw it away. Keep it for the layouts it knows, and send everything it can't read confidently to a service. The catch is that you now run two systems and need a reliable rule for which document goes where. If that rule depends on recognizing the carrier, an unknown carrier must default to the service, never to a guess.

Here's who owns what under each option:

Part of the job Build Buy Extend
Reading scans, photos and faxes You Service Service
Keeping up with new layouts You Service Service
Field list You Service default You edit it
Screen for fixing bad reads You Service Service
Checks against your own data You Often missing You
Loading data into your systems You Manual export You, via API or webhooks

The last two rows are where your developers' time pays off. Everything above them is maintenance that every company receiving BOLs would otherwise repeat on its own.

For the fields themselves, our guide to automating bill of lading data extraction covers what to capture and why BOL layouts won't be standardized any time soon.

How do you test a parser before you commit?

Whichever way you're leaning, test it on your own documents before you sign anything or write anything. A short pilot answers most of the checklist above.

  1. Pull a sample from last month. Include the ugly ones on purpose: the fax, the phone photo, the multi-page consolidation, the forwarder you've only seen once.
  2. List the fields you actually use. Only the ones that go somewhere downstream. Extra fields add review time without adding value.
  3. Key the right answers yourself, once. This is your answer sheet. It's tedious, and it's the only way to measure anything.
  4. Run the sample through each option. Your prototype, the service you're trialing, or both.
  5. Count the silent errors separately. A wrong value flagged with low confidence costs a quick look in review. A wrong value that looks confident costs you later, so it matters far more than the overall hit rate.
  6. Time the review. Measure how long a person spends fixing one document, then multiply by your own monthly volume.
  7. Test the export end to end. Load the results into your real system, not just a spreadsheet, and see what breaks.

If the service passes and your prototype doesn't, you have your answer. If both pass, compare the hours someone would spend maintaining your version with the subscription cost, using your own hourly rates.

Where does Foxello fit?

Foxello is the buy-and-extend route, delivered as a service: nothing to install, and your own team checks the data in the Review Hub.

  • A Bill of Lading model. It's a Mastery model with fields filled in for the document type you pick: straight BOL, VICS standard BOL, order BOL, ocean (master) bill, house bill, sea waybill, multimodal bill, air waybill or CMR consignment note. You can add, edit or remove any field, table or column, so the field list ends up yours.
  • Confidence on every field. By default, fields at 90% confidence and above are confirmed automatically, and the rest go to your team in the Review Hub, with the document and the extracted values side by side.
  • Intake that fits how BOLs arrive. Web upload on every plan, plus email import, Google Drive, FTP and the API on Growth and up.
  • Data where you need it. JSON and CSV on every plan, plus Excel, webhooks and the API on Growth and up, so your developers spend their time on your checks and your integration instead of on layouts.
  • EU hosting, with plans from €14.99 a month and a 30-day trial that includes 100 model tokens, so you can run the pilot above on your own BOLs before paying anything.

The bill of lading parser page shows the fields it captures and how the output looks.

FAQ

What is a bill of lading parser?

It's a tool that reads a bill of lading, whether it's a PDF, a scan or a photo, and turns it into structured data: BOL number, shipper, consignee, ports, dates and cargo lines. The data then goes into a spreadsheet, a TMS or an ERP instead of being retyped.

Can I build a BOL parser with OCR and a few rules?

Yes, for a small number of fixed layouts. It gets fragile as new carriers, redesigned forms and poor scans arrive, and a rules-based parser tends to return a wrong value without any warning when a layout changes.

Do ocean bills, house bills and air waybills need separate parsers?

Not usually. They carry largely the same information, so one field list covers most of it, with a few fields that only apply to one type. What differs is where each issuer puts things on the page, which is exactly what makes rules-based parsing hard.

How do I compare the cost of building with buying?

Use your own numbers. Estimate the build time, then the hours a month someone will spend on new layouts, fixes and support, and multiply by that person's loaded hourly cost. Compare the yearly total with a subscription plus the review time that remains under either option.

What if I already have a parser that mostly works?

Keep it for the layouts it reads well and send the rest to a service. Make sure unknown or low-confidence documents always go to the service or to review, never straight into your systems.

Keep reading

Technology

How Do You Set Confidence Thresholds So Your Team Reviews Less?

Start around 90%, test it on a normal week of your own documents, and lower it only while skipped files stay clean. Too much in review? Fix the cause upstream.

24 November 2026 · Foxello

Read article →

Technology

Why Generic AI Extraction Tools Guess - And Why That's Dangerous for Accounting Data

Most AI document processing flattens the page to plain text, so the model guesses when a field is missing. Here's why that's risky for finance teams and how to spot it.

4 October 2026 · Foxello

Read article →

Technology

OCR, Templates, or AI? A Practical Guide to Picking the Right Extraction Approach for Your Team

Not sure whether you need OCR, templates, or AI extraction? Five questions that tell you which fits your documents, your team, and your budget.

25 September 2026 · Foxello

Read article →

Ready to automate your documents?

Start processing your first documents in minutes. No setup required.

Start free - no card