Bill of Lading
The Ruby Client Library supports the Bill of Lading API.
Product Specifications
Endpoint Name
bill_of_lading
Recommended Version
v1.1
Supports Polling/Webhooks
✔️ Yes
Support Synchronous HTTP Calls
❌ No
Geography
🌐 Global
Quick-Start
Using the sample below, we are going to illustrate how to extract the data that we want using the SDK.

Sample Code
Sample Output (rST)
Standard Fields
These fields are generic and used in several products.
Basic Field
Each prediction object contains a set of fields that inherit from the generic Field class. A typical Field object will have the following attributes:
value (
String,Float,Integer,bool): corresponds to the field value. Can benilif no value was extracted.confidence (Float, nil): the confidence score of the field prediction.
bounding_box (
Mindee::Geometry::Quadrilateral,nil): contains exactly 4 relative vertices (points) coordinates of a right rectangle containing the field in the document.polygon (
Mindee::Geometry::Polygon,nil): contains the relative vertices coordinates (Point) of a polygon containing the field in the image.page_id (
Integer,nil): the ID of the page, alwaysnilwhen at document-level.reconstructed (
bool): indicates whether an object was reconstructed (not extracted as the API gave it).
Aside from the previous attributes, all basic fields have access to a to_s method that can be used to print their value as a string.
Date Field
Aside from the basic Field attributes, the date field DateField also implements the following:
date_object (
Date): an accessible representation of the value as a JavaScript object.
String Field
The text field StringField only has one constraint: it's value is a String (or nil).
Specific Fields
Fields which are specific to this product; they are not used in any other product.
Shipper Field
The party responsible for shipping the goods.
A BillOfLadingV1Shipper implements the following attributes:
address(String): The address of the shipper.email(String): The email of the shipper.name(String): The name of the shipper.phone(String): The phone number of the shipper. Fields which are specific to this product; they are not used in any other product.
Consignee Field
The party to whom the goods are being shipped.
A BillOfLadingV1Consignee implements the following attributes:
address(String): The address of the consignee.email(String): The email of the shipper.name(String): The name of the consignee.phone(String): The phone number of the consignee. Fields which are specific to this product; they are not used in any other product.
Notify Party Field
The party to be notified of the arrival of the goods.
A BillOfLadingV1NotifyParty implements the following attributes:
address(String): The address of the notify party.email(String): The email of the shipper.name(String): The name of the notify party.phone(String): The phone number of the notify party. Fields which are specific to this product; they are not used in any other product.
Carrier Field
The shipping company responsible for transporting the goods.
A BillOfLadingV1Carrier implements the following attributes:
name(String): The name of the carrier.professional_number(String): The professional number of the carrier.scac(String): The Standard Carrier Alpha Code (SCAC) of the carrier. Fields which are specific to this product; they are not used in any other product.
Items Field
The goods being shipped.
A BillOfLadingV1CarrierItem implements the following attributes:
description(String): A description of the item.gross_weight(Float): The gross weight of the item.measurement(Float): The measurement of the item.measurement_unit(String): The unit of measurement for the measurement.quantity(Float): The quantity of the item being shipped.weight_unit(String): The unit of measurement for weights.
Attributes
The following fields are extracted for Bill of Lading V1:
Bill of Lading Number
bill_of_lading_number (StringField): A unique identifier assigned to a Bill of Lading document.
Carrier
carrier (BillOfLadingV1Carrier): The shipping company responsible for transporting the goods.
Items
carrier_items (Array<BillOfLadingV1CarrierItem>): The goods being shipped.
Consignee
consignee (BillOfLadingV1Consignee): The party to whom the goods are being shipped.
Date of issue
date_of_issue (DateField): The date when the bill of lading is issued.
Departure Date
departure_date (DateField): The date when the vessel departs from the port of loading.
Notify Party
notify_party (BillOfLadingV1NotifyParty): The party to be notified of the arrival of the goods.
Place of Delivery
place_of_delivery (StringField): The place where the goods are to be delivered.
Port of Discharge
port_of_discharge (StringField): The port where the goods are unloaded from the vessel.
Port of Loading
port_of_loading (StringField): The port where the goods are loaded onto the vessel.
Shipper
shipper (BillOfLadingV1Shipper): The party responsible for shipping the goods.
Last updated
Was this helpful?

