Skip to main content
This guide covers the ocean tracking portion only. FourKites road, rail, and LTL tracking are out of scope here; keep them in FourKites unless you are replacing them with another provider.
If you have FourKites ocean tracking in production, this page maps it onto Terminal49 field by field, so you can cut over without reverse-engineering our schema. Terminal49 is a direct-integration ocean and North American terminal API, self-serve, with holds and fees out of the box. FourKites is multi-modal, enterprise-priced, and centered on their broader visibility platform. This guide addresses only the ocean container portion. There is no compatibility shim. You will change your request code and your response parsing. For most integrations that is an afternoon.

Start in sixty seconds

You do not need to talk to anyone to try this.
1

Create an account

Create an account — the free Developer Key tracks up to 10 active containers.
2

Generate an API key

3

Run your first curl

The full API key is shown once, right after you create it. Copy it before you navigate away — after that it is masked and cannot be revealed. If you miss it, create a new key and delete the old one.
If you want to test without a live shipment, use the test tracking numbers, which simulate success, failure, and edge-case outcomes.

The architectural shift

FourKites tracks shipments across modes in a single enterprise platform. Ocean is one product among many, organized around loads and shipments with nested segments. Terminal49 splits ocean tracking in two. You register a tracking request once. We keep it updated and push changes to your webhook.

Before — FourKites

Query the FourKites platform for shipment or load state, often across ocean, road, and rail segments. Extract ocean data from the multi-modal shipment model. Polling, enterprise contract, and broad visibility scope.

After — Terminal49

POST /tracking_requests once → Terminal49 polls carriers, terminals, and rail → we POST to your endpoint as things change → write to your database. No cache layer, no dedupe logic. Ocean only, direct terminal data.
You can keep polling if you prefer — point your existing scheduler at GET /v2/shipments or GET /v2/containers. But webhooks are the reason the API is shaped this way, and terminal data (holds, fees, last free day) changes on a cadence that polling tends to miss.

Quick comparison

Authentication

Move from OAuth2 bearer tokens or API key headers to a single Authorization: Token header.
Note the Token prefix. It is not Bearer.

Request parameter mapping

FourKites organizes around shipments and loads that may contain multiple segments across modes. Terminal49 takes one ocean identifier per tracking request. Track by BOL and we return every container on that bill of lading as related container resources.

Response field mapping

Terminal49 is JSON:API compliant, so relationships between shipments, containers, ports, and terminals are explicit rather than something you reassemble from ID references. Use the include parameter to sideload related resources in one call instead of chasing IDs.

Shipment level

Container level

FourKites may return an ISO code string like 45G1. Terminal49 splits this into three normalized fields: type (dry, reefer, open top, flat rack, tank, hard top), length (20, 40, 45, 50), and height (standard, high cube). If you were parsing ISO codes yourself, you can delete that code.

Locations, facilities, and vessels

Milestone and event mapping

FourKites returns milestones within your shipment or load resource. Terminal49 exposes the same milestones as normalized transport events and pushes each one to your webhook. Where mappings exist: Terminal49 also emits milestones with no FourKites ocean equivalent:
  • Vessel berthedcontainer.transport.vessel_berthed
  • Available for pickupcontainer.transport.available and .not_available
  • Transshipment — arrived, discharged, loaded, departed
  • Feeder vessel and barge — arrived, discharged, loaded, departed
  • Rail — loaded, departed, arrived, unloaded, plus arrived_at_inland_destination
See the full event catalog.

Registering a webhook

Payloads are HMAC-signed. See webhook setup for signature verification, and List webhook IPs if your firewall restricts inbound traffic.

What you gain

This is the part worth reading even if the rest is mechanical. Terminal49 integrates with terminals directly, not only carriers, so the container object carries operational data that has no FourKites equivalent.

Holds

holds_at_pod_terminal is an array of active holds blocking pickup:
Hold names are freight, customs, USDA, VACIS, TMF, and other. Status is hold or pending. When a hold clears, the object is removed from the array — there is no released state.
Hold names are case-sensitive. USDA, VACIS, and TMF are uppercase; freight, customs, and other are lowercase. Match exactly.

Fees

fees_at_pod_terminal carries type, amount, and currency:
Fee types are demurrage, extended_dwell_time, exam, total, and other.
Some terminals report a total line item alongside individual fees. Filter it out before summing or you will double-count.

Last free day

pickup_lfd is a coalesced value that follows a fixed source priority: shipping line, then terminal, then rail. It does not pick the earliest date. The individual sources are available separately on import_deadlines:
  • pickup_lfd_line — the shipping line’s LFD (per diem deadline)
  • pickup_lfd_terminal — the terminal’s LFD (demurrage deadline)
  • pickup_lfd_rail — the rail carrier’s LFD at the inland destination
Each has its own webhook event, so you can alert on whichever source your operation cares about.

Release readiness

Two fields answer “can I pick this up?” — available_for_pickup and the holds array:
Full detail in Holds, Fees, and Release Readiness.
Holds, fees, LFD, and availability come back on the container object wherever the terminal is a supported source. They are not a paid add-on and they do not require a sales conversation. See Entitlements for the features that do require account enablement — rail LFD and the embeddable widget are the main ones.

Gotchas that will bite you

FourKites is an enterprise platform. Terminal49 is self-serve with a Developer Key that tracks up to 10 containers free. If you need volume pricing, it exists, but you do not need a contract to start.
FourKites shipments may contain road, rail, and ocean segments in one object. Terminal49 is ocean only. Map only the ocean leg. Keep road and rail in FourKites or replace them separately.
FourKites event names and codes are specific to their platform. You will need a mapping table to translate them onto Terminal49’s normalized events such as container.transport.vessel_discharged. Where exact mappings do not exist, handle the Terminal49 events directly.
POST /tracking_requests returns immediately with a pending status. The shipment appears once the carrier responds. Subscribe to tracking_request.succeeded and tracking_request.failed rather than expecting shipment data in the creation response. A request may also land in awaiting_manifest if the carrier has not manifested the shipment yet — we retry automatically. See Tracking Request Lifecycle.
FourKites may return local time or timestamps with offset. Terminal49 stores event timestamps in UTC and returns the matching IANA timezone alongside. Convert for display rather than assuming local time. See Event Timestamps.
holds_at_pod_terminal: [] and fees_at_pod_terminal: [] mean no active holds or fees. This is the common case. Do not treat it as missing data.
Terminal changes (fees, holds, LFD, appointment, availability) arrive on container.updated with a changeset showing old value first, new value second. Use it instead of diffing state yourself.

Error handling

FourKites returns errors within the response body of their platform API. Terminal49 uses standard HTTP status codes. Replace body checks and message-string matching with status-code checks. Rough equivalence for the FourKites errors you are handling today: The TypeScript SDK maps these to typed errors (AuthenticationError, ValidationError, RateLimitError, UpstreamError, FeatureNotEnabledError, AuthorizationError, NotFoundError) and retries rate-limit and server errors automatically with exponential backoff.

Where we are narrower than FourKites

Worth knowing before you commit. Carrier count. Terminal49 integrates directly with 36 ocean carriers, plus 2 more enabled on request — as of 14 August 2026. Check your carrier mix against the ocean carrier list before cutover, and read the known issues section there — we publish the per-carrier field gaps. Terminal data is North America. Holds, fees, LFD, and availability come from direct terminal integrations concentrated in the US and Canada, with European ports expanding. Ocean milestones work globally; terminal-level operational data does not yet. No road, rail, or LTL tracking. FourKites is multi-modal. Terminal49 is ocean and North American terminals only. This migration handles only the ocean portion. No freight rates or sailing schedules. We do not offer a rate calculator, rate index, or schedule search. Some fields are source-dependent. Seal number, container weight, and departure or arrival events vary by carrier. The field availability reference says which fields are always present and which depend on the carrier, terminal, or journey.

Migration checklist

Everyone does the base path. Then pick a branch.

Base path

1

Get a key

Self-serve at app.terminal49.com/developers/api-keys. Copy it immediately — it is shown once.
2

Switch authentication

Move from OAuth2 bearer or API key to Authorization: Token. Note the Token prefix.
3

Check your carrier mix

Compare your FourKites carrier values against the carrier list. Flag anything missing before you cut over.
4

Extract ocean segments

Identify the ocean leg of each FourKites shipment. Discard road, rail, and LTL for this migration.
5

Create tracking requests

One POST /tracking_requests per BOL, booking, or container, replacing the per-request lookup.
6

Handle the async lifecycle

Tracking requests start pending. Handle succeeded, failed, and awaiting_manifest rather than expecting data on creation.
7

Update response parsing

JSON:API structure, split equipment fields, UTC timestamps with a separate timezone.
8

Update error handling

Replace body checks with HTTP status codes.
9

Backfill active shipments

Submit tracking requests for everything currently in transit. Send us the list if it is large and we will load it.
10

Add the terminal fields

Holds, fees, and LFD are the reason to do this properly rather than porting like for like.

Then pick one

  1. Expose an HTTPS endpoint that accepts our POST payloads.
  2. Register a webhook and subscribe only to events you act on.
  3. Verify HMAC signatures.
  4. Whitelist our IPs if your firewall restricts inbound traffic.
  5. Trigger a test delivery before going live.
  6. Retire your polling job and your dedupe layer.
See webhook best practices for retries and idempotency.

Migrate with an AI coding agent

Terminal49 migration agent prompt

Getting help

Send us your list of active container and bill of lading numbers and we will load them rather than making you script the backfill. If something in this mapping is wrong or incomplete, tell us. We would rather fix the page than have you work around it.

API reference

Every endpoint, with request and response schemas

TypeScript SDK

Typed client with retries and pagination built in

Coverage

Carriers, terminals, rail, and field availability

Test numbers

Simulate success, failure, and edge cases