The voyages API endpoint allows querying for voyages. You can optionally pass in a page and/or per parameter
| Code | Description |
|---|---|
| 400 | Bad Request. |
| 404 | Voyage Not Found |
| 422 | Unprocessable Entity. |
| 500 | Internal Server Error. |
curl "https://app.octopi.co/api/v1/voyages.json" -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=ADD TOKEN HERE"
{
"actions": {
"index": {
"method": "GET",
"url": "https://app.octopi.co/api/v1/voyages.json"
},
"next": {
"method": "GET",
"url": "https://app.octopi.co/api/v1/voyages.json?page=2"
},
"previous": {
"method": "GET",
"url": "https://app.octopi.co/api/v1/voyages.json?page=1"
},
"last": {
"method": "GET",
"url": "https://app.octopi.co/api/v1/voyages.json?page=6"
}
},
"voyages": [
{
"id": 1204,
"number": "346",
"status": "departed",
"agent": {
"name": "AGEMAR"
},
"stevedoring_company": {
"name": "Cargo Handlers B'dos Ltd"
},
"stevedoring_supervisors": [
{
"name": "Kirk Worrell"
}
],
"last_port_of_call": {
"name": "Kingston",
"locode": "JMKIN"
},
"next_port_of_call": {
"name": "Port Everglades",
"locode": "USPEF"
},
"captain": {
"name": "John Doe"
},
"tax_date": "2017-12-12",
"number_of_tug_boats": 4,
"arrival_number_of_tug_boats": 2,
"departure_number_of_tug_boats": 2,
"estimated_time_of_anchorage": "2017-04-07T02:00:00.000Z",
"actual_time_of_anchorage": "2017-04-07T07:42:00.000Z",
"actual_time_of_pilot_boarded": "2017-04-07T09:06:00.000Z",
"actual_time_of_berth": "2017-04-07T10:00:00.000Z",
"actual_time_of_customs_clearance": "2017-04-07T12:10:00.000Z",
"actual_time_of_departure": "2017-04-07T18:00:00.000Z",
"closing_comments": null,
"display_name": "CFS Pafilia 346",
"actual_time_of_departure_pilot_boarded": null,
"estimated_time_of_departure": null,
"receiving_cut_off_time": "2017-04-06T12:00:00.000Z",
"created_at": "2017-04-05T18:26:52.331Z",
"updated_at": "2017-06-05T00:02:40.577Z",
"vessel": {
"name": "CFS Pafilia",
"imo": "9322853",
"call_sign": "6YRE8",
"vessel_type": "Container",
"loa": 100,
"flag": "GA",
"gross_tonnage": 100,
"net_tonnage": 90
},
"assigned_berth_area": {
"name": "NORTH PIER B1"
},
"assigned_yard_area": {
"name": "SHED 2"
},
"discharge_terminal": {
"name": "CPS Yard"
},
"arrival_pilot": {
"name": null
},
"departure_pilot": {
"name": null
},
"actions": {
"show": {
"method": "GET",
"url": nil
}
},
"flex_fields": [
{
"label": "Name",
"value": "Octopi"
}
]
}
]
}
| Param name | Description |
|---|---|
|
arrival_end optional |
Filters out voyages that arrived after this date. Date must be in ISO 8601 format (eg. ‘2024-06-09T09:30:00Z’). Validations:
|
|
arrival_start optional |
Filters out voyages that arrived before this date. Date must be in ISO 8601 format (eg. ‘2024-06-09T09:30:00Z’) Validations:
|
|
departure_end optional |
Filters out voyages that departed after this date. Date must be in ISO 8601 format (eg. ‘2024-06-09T09:30:00Z’) Validations:
|
|
departure_start optional |
Filters out voyages that departed before this date. Date must be in ISO 8601 format (eg. ‘2024-06-09T09:30:00Z’) Validations:
|
|
number optional |
Filter based on voyage number. Validations:
|
|
page optional |
The page number to be fetched. This value defaults to 0 Validations:
|
|
per optional |
The number of items to be displayed. This value defaults to 10 and accepts a maximum of 100. Validations:
|
|
updated_at optional |
Filters out voyages that where updated after this date. Date must be in ISO 8601 format (eg. ‘2024-06-09T09:30:00Z’) Validations:
|
|
vessel_name optional |
Filter based on vessel name Validations:
|