Bill of Lading OCR
Mindee’s Bill Of Lading API uses deep learning to automatically, accurately, and instantaneously parse your documents details. In a few seconds, the API extracts a set of data from your PDFs or photos of Bill of Lading, including:
Bill of Lading Number
Shipper
Consignee
Notify Party
Carrier
Items
Port of Loading
Port of Discharge
Place of Delivery
Date of Issue
Departure Date
Set up the API
You'll need a Bill Of Lading. You can use one of the sample documents provided below.

Access your Bill of Lading API by clicking on the corresponding product card in the Document Catalog

From the left navigation, go to documentation > API Reference, you'll find sample code in popular languages and command line.
[
Replace my-api-key-here with your new API key, or use the select an API key feature and it will be filled automatically.
Copy and paste the sample code of your desired choice in your application, code environment, terminal etc.
Replace
/path/to/the/file.extwith the path to your input document.
Remember to replace with your V1 API key.
Run your code. You will receive a JSON response with the Bill of Lading details.
API Response
Here is the full JSON response you get when you call the API:
You can find the prediction within the prediction key found in document > inference > prediction for document-level predictions: it contains the different fields extracted at the document level, meaning that for multi-pages PDFs, we reconstruct a single object using all the pages.
Detailed Field Information
Using the above Bill of Lading example the following are the basic fields that can be extracted.
Bill of Lading Number
bill_of_lading_number: Unique identifier assigned to a Bill of Lading.
Shipper
Shipper: The party responsible for shipping the goods.
name: The name of the shipper.
address: The address of the shipper.
phone: the phone number of the shipper.
email: the email address of the shipper.
Consignee
consignee: The party to whom the goods are being shipped.
name: The name of the consignee.
address: The address of the consignee.
phone: the phone number of the consignee.
email: the email address of the consignee.
Notify Party
notify_party: The party to be notified of the arrivals of the goods.
name: The name of the notify party.
address: The address of the notify party.
phone: the phone number of the notify party.
email: the email address of the notify party.
Carrier
carrier: The shipping company responsible for the transport of the good.
name: The name of the carrier.
professional_number: The professional number of the carrier.
scac: The Standard Carrier Alpha Code (SCAC) of the carrier.
Items
carrier_items: The goods being shipped.
description: A description of the item.
quantity: The quantity of the item being shipped.
gross_weight: The gross weight of the item.
weight_unit: The unit of measurement for weights.
measurement: The measurement of the item.
measurement_unit: The unit of measurement for the measurement.
Port of loading
port_of_loading: The port where the goods are loaded on the vessel.
Port of Discharge
port_of_discharge: The port where the goods are unloaded on the vessel.
Place of Delivery
place_of_delivery: The place where the goods are to be delivered.
Date of Issue
date_of_issue: The date when the bill lading is issued.
Departure Date
departure_date: The date when the vessel departs from the port of loading.
Last updated
Was this helpful?

