Skip to main content
POST
Look up a container's import record

Authorizations

Authorization
string
header
required

Use a Terminal49 API key in the Authorization header with the Token prefix.

Authorization: Token YOUR_API_KEY

Body

application/json
container_number
string
required

ISO 6346 container number. Spaces and hyphens are removed and letters uppercased before matching.

Required string length: 1 - 20
Example:

"MSCU1234567"

Response

OK

container_number
string
required

The normalized container number that was looked up.

Example:

"MSCU1234567"

found
boolean
required

false when no US import of this container is on record, or the number is malformed.

error
string

Only when found is false because the number is malformed.

Example:

"expected ISO 6346 format, e.g. MSCU1234567"

latest_import
object

Summary of the container's most recent US import (import date, carrier, vessel, ports, and destination), present when found is true.

bills_of_lading
object[]

Bills of lading the container travelled under on that import.

commodities
object[]

Commodity lines on those bills, grouped by bill with the highest estimated value first within each bill. At most 200 lines are returned; the cap keeps the first 200 in that order, not the 200 highest-value lines overall.

commodities_truncated
boolean

true when more than 200 commodity lines exist and only the first 200 are returned.

note
string

Coverage caveat for this response.

Example:

"only the most recent US import of this container is on record; earlier imports are not included"