|
GET containers/{id}/events
Get a list of events for a container
with a given identifier.
Example HTTP Request
GET tracking/v2/containers/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
/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
{
"instanceNo"
: "123",
"code":
"COB",
"description"
: "Confirmed on Board",
"time"
: "2024-08-19T16:55:00Z",
"origin"
: {
"name"
: "YANTIAN",
"code"
: "YAN"
},
"destination"
: {
"name"
: "LONG BEACH, CA",
"code"
: "LGB"
}
}, |
|