Bill of Lading

Logistics

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.

curl -X POST $XBERG_ENTERPRISE_URL/v1/extract \
  -H "Authorization: Bearer $XBERG_API_KEY" \
  -F file=@your-bill_of_lading.pdf \
  -F 'preset=bill_of_lading'
Sample Bill of Lading document

Structured fields extracted by this preset

bol_numberstringrequired

Unique bill of lading number, exactly as printed on the document.

booking_numberstring

Booking reference number for the carrier.

bill_typestringrequired

Type of bill of lading (ocean/air/rail/road/multimodal/master/house/straight/order/sea_waybill).

issue_datestringrequired

Date bill of lading was issued (ISO-8601).

shipperobjectrequired
namestringrequired

Shipper company name, exactly as printed.

addressstring

Shipper full address including street, city, state, postal code, country.

contact_phonestring

Shipper contact telephone number.

tax_idstring

Shipper tax identification number (VAT/EIN/equivalent).

consigneeobjectrequired
namestringrequired

Consignee company name, exactly as printed.

addressstring

Consignee full address including street, city, state, postal code, country.

contact_phonestring

Consignee contact telephone number.

notify_partyobject
carrierobject
port_of_loadingstring

Port/airport/terminal of loading, exactly as printed.

port_of_dischargestring

Port/airport/terminal of discharge, exactly as printed.

place_of_receiptstring

Place where goods are received by carrier.

place_of_deliverystring

Final destination place of delivery.

transport_modestring

Primary transport mode (sea/air/rail/road/multimodal).

incotermsstring

Incoterms 2020 code (EXW, FCA, CPT, CIP, DAP, DPU, DDP, FAS, FOB, CFR, CIF, other).

freight_paymentstring

Freight payment method (prepaid/collect/third_party).

cargoarray<object>required

Array of cargo line items.

total_packagesinteger

Total package count (must be an integer).

total_gross_weight_kgnumber

Total gross weight in kilograms.

total_volume_cbmnumber

Total volume in cubic meters.

currencystring

ISO 4217 currency code (e.g., USD, EUR, GBP).

freight_chargesarray

Array of freight and ancillary charges.

total_freightnumber

Total freight and charges amount.

signaturesobject

Configuration

Call Mode

text_plus_vision

Citations

Enabled

Version

v1

Tags

bill_of_ladingbolshippingmaritimecargofreight
+System Prompt
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.

Open-source primitives, composed into one backend. Curated cohort of design partners. Apply to work with us.

Cookies

We value your privacy

Xberg uses cookies to improve your experience, personalize content, and analyze traffic. You can manage your preferences at any time.