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

Credential

Shipments

Containers

Tracking requests

Vessels

Shipping lines

Webhooks

Webhook notifications

Ports, terminals, and metro areas

Parties

Custom field definitions

Custom field options

Custom fields

Documents

Email submissions

Document schemas

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

The namespace methods in this table are also available as direct methods on the client. Other namespace methods, such as client.shippingLines.get and the client.documents, client.emailSubmissions, and client.documentSchemas methods, have no direct method.

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. Other methods return the JSON:API response unchanged.
  • 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.