Skip to main content
The SDK exposes a Terminal49Client with methods grouped by resource type. Each method corresponds to an API endpoint.

Shipments

Containers

Tracking requests

Shipping lines

Trade intelligence

Trade intelligence covers US import bill-of-lading records (US Customs manifests) from January 2022 onward, refreshed daily. These methods return the API’s plain JSON body (not JSON:API), so format does not apply. Accounts without the feature get FeatureNotEnabledError; contact sales@terminal49.com to enable it.
Volume is physical containers, each counted once. Estimated values are modelled USD estimates, not declared customs values. trends and breakdown include the current, partial month by default. Company names are split by state and large importers use several names, so treat a company’s figures as a floor. See the Trade Intelligence API reference for every field and caveat.

Helpers and aliases

Direct method equivalents

All namespace methods are also available as direct methods on the client:

Common options

Most methods accept an options object with format:
Supported formats:
  • raw (default) returns the JSON:API response
  • mapped returns simplified objects for methods that support mapping
  • both returns { raw, mapped }
You can set a default format when initializing the client:
List methods also accept pagination options:
See Filtering & Pagination for details.