Bill of Lading
Structured extraction preset for ocean, air, rail, and multimodal bills of lading. Captures shipper/consignee details, cargo manifest, transport routing, and freight charges with full FOB/CIF/INCOTERM support.
The fields this preset extracts.
bol_numberstringUnique bill of lading number, exactly as printed on the document.
booking_numberstringBooking reference number for the carrier.
bill_typestringType of bill of lading (ocean/air/rail/road/multimodal/master/house/straight/order/sea_waybill).
issue_datestringDate bill of lading was issued (ISO-8601).
shipperobjectnamestringShipper company name, exactly as printed.
addressstringShipper full address including street, city, state, postal code, country.
contact_phonestringShipper contact telephone number.
tax_idstringShipper tax identification number (VAT/EIN/equivalent).
consigneeobjectnamestringConsignee company name, exactly as printed.
addressstringConsignee full address including street, city, state, postal code, country.
contact_phonestringConsignee contact telephone number.
notify_partyobjectcarrierobjectport_of_loadingstringPort/airport/terminal of loading, exactly as printed.
port_of_dischargestringPort/airport/terminal of discharge, exactly as printed.
place_of_receiptstringPlace where goods are received by carrier.
place_of_deliverystringFinal destination place of delivery.
transport_modestringPrimary transport mode (sea/air/rail/road/multimodal).
incotermsstringIncoterms 2020 code (EXW, FCA, CPT, CIP, DAP, DPU, DDP, FAS, FOB, CFR, CIF, other).
freight_paymentstringFreight payment method (prepaid/collect/third_party).
cargoarray<object>Array of cargo line items.
total_packagesintegerTotal package count (must be an integer).
total_gross_weight_kgnumberTotal gross weight in kilograms.
total_volume_cbmnumberTotal volume in cubic meters.
currencystringISO 4217 currency code (e.g., USD, EUR, GBP).
freight_chargesarrayArray of freight and ancillary charges.
total_freightnumberTotal freight and charges amount.
signaturesobjectcurl -X POST 'https://app.staging.xberg.io/v1/extract' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-F 'file=@your-document.pdf' \
--form-string 'options={"preset":"bill_of_lading"}'- Call mode
- Text and vision
- Citations
- Enabled
- Version
- v1
The instructions Xberg gives the AI model when it extracts this document type.
Extract bill of lading details from the provided document. Record ports, locations, and addresses exactly as printed. Convert all package counts, weights, and dimensions to integers where specified. For cargo line items, capture marks and numbers verbatim, package counts as integers, and weights/volumes as numbers. Ensure shipper and consignee names are transcribed precisely. Include carrier details (vessel name, voyage, flight, or container numbers) if present. Capture freight charges and payment terms. Do not infer or supply missing data—only extract what is explicitly shown. If the document does not match this preset, return {}. Extract only values supported by the document. Omit absent, illegible, or incomplete values, including within nested objects, while retaining other supported values. Do not infer, guess, supply defaults, or calculate missing values. Omit dates whose complete year, month, and day are not explicit. Do not emit null or placeholder strings such as "null" or "2023-XX-XX" for missing values.