Overview
Every freight technology team eventually asks: should we build our own document parsing engine or buy one? The answer depends on your volume, technical capacity, and how critical freight documents are to your core business. This tutorial provides a structured framework for making that decision.
We will walk through three dimensions — scope, cost, and maintenance — and provide real numbers where possible. The goal is not to sell you on KabyTech (though we obviously think it is the right choice for most teams) but to give you the information you need to make an honest assessment.
If you do decide to build, this tutorial will also help you understand the full scope so you can plan and budget accurately rather than discovering hidden complexity mid-project.
Step 1 — Scope: 29 FWB Sections and 170+ Fields
An IATA FWB (Freight Waybill) message contains 29 sections, from AWB consignment detail to customs information, charge declarations, and handling instructions. Each section has multiple fields — the full specification defines over 170 individual data elements. Not all appear on every AWB, but your parser needs to handle all of them to be production-ready.
Beyond the structured FWB format, you must handle the visual layout of printed AWBs, which varies by airline. Thai Airways, Emirates, and Singapore Airlines each use different templates with fields in different positions. A template-based approach requires maintaining a layout definition for every airline you encounter — and new airlines appear in your operation without warning.
# FWB sections (partial list) # 1. AWB Consignment Detail # 2. Flight Bookings # 3. Routing # 4. Shipper Name and Address # 5. Consignee Name and Address # 6. Agent Name and Address # 7. Special Service Request # 8. Notify Party # 9. Accounting Information # 10. Charge Declarations # ... 19 more sections ... # Total fields: 170+