|
GET containers/om/{id}/events
Get a list of events for a container
with a given identifier.
Example HTTP Request
GET tracking/v2/containers/om/5555/events?sizeLimit=1000&offset=0
Authorization: Ejr2YotnFZFEjr1zCsicMWpAAotnFZFEjr1zCsic
X-Consumer-ID: TEST_CONSUMER_ID
X-Consumer-Custom-ID: TEST_CUSTOM_CONSUMER_ID
Host: api.expeditors.com |
Example Curl Request
$
curl 'https://api.expeditors.com/tracking/v2/containers
/om/5555/events?sizeLimit=1000&offset=0' -i -X
GET \
-H
'Authorization: Ejr2YotnFZFEjr1zCsicMWpAAotnFZFEjr1zCsic'
\
-H
'X-Consumer-ID: TEST_CONSUMER_ID' \
-H
'X-Consumer-Custom-ID: TEST_CUSTOM_CONSUMER_ID' |
Parameters
Parameter |
Purpose |
Values |
Required? |
id |
Identifier for container |
|
|
sizeLimit |
Maximum number of items
to return from matching results |
Integer, 1 to 100000 |
N (default is 1000) |
offset
|
Start
index into matching results for returned items. Increment
by sizeLimit to return the next page of results.
|
Integer, 0 to 100000 |
N (default is 0) |
Response
The response format is JSON; see Data
Types - Container Event for data types.
Example Response
200 OK
Content-Type:
application/json
Content-Length:
242
[ {
"instanceNo"
: "123",
"description"
: "Liquidated",
"time"
: "2014-11-28T20:00:00Z",
"origin"
: {
"name"
: "Seattle",
"code"
: "SAE"
},
"destination"
: {
"name"
: "Hong Kong",
"code"
: "HKG"
}
} ] |
|