This API endpoint will return a bill of lading.
Code | Description |
---|---|
400 | Bad Request. |
404 | Not Found. |
500 | Internal Server Error. |
curl "https://app.octopi.co/api/v1/voyages/VOYAGE_NUMBER/bill_of_ladings/BILL_OF_LADING_NUMBER.json" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=ADD TOKEN HERE"
{ "bill_of_lading": { "manifest":{ "client_identifier":null }, "number":"COSU6156797970", "quantity":1, "remarks":null, "weight":22048.0, "volume_in_cubic_meters":"0.00", "goods_description":"13 PALLETS 1,194 PCSAUTOMOTIVE BATTERIESCONTRACT NO. : 2P17100001", "destination_code": "S4B4", "usage": "import", "manifested_count": 2, "cargo_at_terminal_destination_count":2, "cargo_at_terminal_count":2, "cargo_delivered_count":1, "packing_list_items_at_terminal_destination_count":2, "packing_list_items_at_terminal_count":2, "packing_list_items_delivered_count":0, "port_of_loading":{ "locode":"JMKST" }, "port_of_discharge":{ "locode":"HTPAP" }, "consignee":{ "id": 444, "name":"P.R.ENTREPRISE S.A.", "address": "10 Wall St" }, "consignee_address": "10 Wall St", "exporter":{ "id": 1231, "name":"ATLASBX CO., LTD", "address": "123 Main St" }, "exporter_address": "123 Main St", "shipping_marks":"M", "package_type":{ "code":"1D", "description": "Drum" }, "has_packing_list_items":false, "cargo":[{ "number": "12345RACK", "size": "20GT", "is_reefer": true, "reefer_plugged_in_time_in_hours": 8 "reefer_plugged_in_time_in_minutes": 60 "reefer_plug_movements" [{ "plug_action": "plugged_in", "plug_action_at": "2018-02-22T01:12:14Z" }] "cargo_type": "container", "container_status": "full", "weight": 34556, ... }], "packing_list_items":[ { "id":200214, "reference_number":"", "bill_of_lading":{"number":"number:one"}, "container":{"number":"BMLU5000813"}, "consignee":{"name":"CABBAGE PALM INVESTMENTS INC"}, "quantity":100, "weight":0.0, "volume":0.0, "package_type": { "code":"1D", "description":"drum" }, "description":"100 drums", "consignee_address":"", "shipping_marks":"", "dock_receipt_number":"", "has_been_stripped":false, "has_been_delivered":false, "stripped_quantity":0 }, { "id":200213, "reference_number":"", "bill_of_lading":{ "number":"number:one" }, "container":{ "number":"BMLU5000813" }, "consignee":{ "name":"ACCENT & DECOR INC" }, "quantity":100, "weight":0.0, "volume":0.0, "package_type":{ "code":"2C", "description":"barrel" }, "description":"2c Barrels", "consignee_address":"", "shipping_marks":"", "dock_receipt_number":"", "has_been_stripped":false, "has_been_delivered":false, "stripped_quantity":75 } ], "actions":{ "show":{ "method":"GET", "url":"http://app.octopi.co/api/v1/voyages/VOYAGE_NUMBER/bill_of_ladings/COSU6156797970.json" } } } }
Param name | Description |
---|---|
voyage_number required |
The bill of lading number. Validations:
|
bill_of_lading_number required |
The bill of lading number. Validations:
|