This endpoint returns a list of container movements for containers that were discharged on this voyage.

Supported Formats

json

Errors

Code Description
400 Bad Request.
404 Not Found.
500 Internal Server Error.

Examples

curl "https://app.octopi.co/api/v1/voyages/ADD NUMBER HERE/movements.json?container_number=NUMBER" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=YOURTOKEN"
{
   "movements" : [
      {
         "new_container_seals" : [],
         "moved_at" : "2017-12-28T23:14:50Z",
         "truck" : {
            "license_plate" : null,
            "trucking_company" : {
               "name" : null
            },
            "number" : null
         },
         "container" : {
            "number" : "AMFU8809295",
            "container_type": {
              "code": "45RF",
              "description": "REEFER 45",
              "iso_type_code": "45U6"
            },
            "size": "45",
            "is_high_cube": false,
            "is_reefer": true,
            "arrival_voyage" : {
              "number": "2345",
              "vessel": {
                "name": "Vega Luna",
                "estimated_time_of_anchorage": "2017-04-07T02:00:00.000Z"
              }
         },
         "source_type" : "Voyage",
         "destination_type" : "Terminal",
         "user" : {
            "name" : "Luc Castera",
            "email" : "luc@cetuslabs.com"
         },
         "status" : "full",
         "movement_type" : "unloading",
         "source" : {
            "name" : "Voyage: JACOB UT750A"
         },
         "destination" : {
            "name" : "CPS Yard"
         },
         "original_container_seals" : [],
         "stuffed_container_seals" : []
      }
   ]
}

Params

Param name Description
number
required

Validations:

  • Must be a String

container_number
optional

Validations:

  • Must be a String