| Code | Description |
|---|---|
| 404 | Not found |
| 500 | Server crashed for some reason |
curl "https://app.octopi.co/api/v1/voyages/VOYAGE_NUMBER/bill_of_ladings/BILL_OF_LADING_NUMBER/holds.json" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=YOURTOKEN"
{
"bill_of_lading":
{
"number": "TSCW12924362",
"unlifted_hold_types":[
{
"id":36,"name":"FAS",
"description":"The port handles cargo under two types of shipping terms- FAS and LINER. Liner cargo would be transshipment and vehicle carriers. This fee would be paid for the agent and as such would not require a FAS hold. All other cargo is FAS and these fees must be paid before the cargo can be delivered. ",
"actions":{
"lift":{
"method":"PUT",
"url":"http://app.octopi.co/api/v1/voyages/2018010126/bill_of_ladings/TSCW12924362/hold_types/36/lift.json"
}
}
}
],
"hold_types":[
{
"id":34,
"name":"Agent Hold",
"description":"",
"actions":{
"apply":{
"method":"PUT",
"url":"http://app.octopi.co/api/v1/voyages/2018010126/bill_of_ladings/TSCW12924362/hold_types/34/apply.json"
}
}
},
{
"id":54,
"name":"Transshipment Hold",
"description":"Calendar Days",
"actions":{
"apply":{
"method":"PUT",
"url":"http://app.octopi.co/api/v1/voyages/2018010126/bill_of_ladings/TSCW12924362/hold_types/54/apply.json"
}
}
}
],
"holds":[
{
"id":449765,
"hold_type_id":36,
"hold_type":"FAS",
"applied_at":"2018-01-29T15:02:46Z",
"applied_by":{
"id":3140,
"created_at":"2020-08-04T07:56:04.939-04:00",
"updated_at":"2022-03-28T11:11:59.496-04:00",
"organization_id":8,
"agent_id":null,
"shipping_line_id":null,
"consignee_id":null,
"email":"jane.smith@example.com",
"firstname":"Jane",
"lastname":"Smith",
"office_phone":"",
"mobile_phone":"",
"title":"Clerical Officer",
"address":"",
"roles_users_count":5,
"work_location_type":"",
"work_location_id":null,
"trucking_company_id":null,
"active":true,
"is_equipment_operator":false,
"high_contrast_ui":false,
"freight_forwarder_id":null,
"staff":false,
"beta_tester":false,
"locale":"en",
"pending_approval":false,
"broker_id":null,
"enforce_mfa":false,
"name":"Jane Smith"
},
"lifted":false,
"lifted_by":null,
"lifted_at":null,
"reference_number":null
}
]
}
}
| Param name | Description |
|---|---|
|
voyage_number required |
The voyage number of the bill of lading. Validations:
|
|
bill_of_lading_number required |
The bill of lading number. Validations:
|