|
GET containers/{id}/lines
Get a list of items in a container
with a given identifier.
Example HTTP Request
GET tracking/v2/containers/5555/lines?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/lines?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 - Line for data types.
Example Response
200 OK
Content-Type:
application/json
Content-Length:
419
[ {
"instanceNo"
: "123",
"shipmentNumber"
: "55555555",
"billOfLadingNumber"
: "456",
"loadSequence"
: "0",
"position"
: "H8-I9",
"quantity"
: {
"value"
: "30.00",
"units"
: "PCS"
},
"packages"
: {
"value"
: "914",
"units"
: "PKGS"
},
"weight"
: {
"value"
: "8445.0",
"units"
: "K"
},
"volume"
: {
"value"
: "75.440",
"units"
: "M3"
}
} ] |
|