Developer APIs

Ocean Container Tracking API

Use one REST API to bring ocean container milestones into your TMS, ERP or customer portal. Send a container number, bill of lading or booking reference supported by the carrier and receive normalized JSON.

Example request · cURL
curl -X POST \
  "https://api.panvaya.com/api/v1/track/ocean" \
  -H "X-API-Key: $PANVAYA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "container": "MEDU8611713",
  "shipping_line_scac": "MSCU"
}'

Use your server-side key. See the endpoint reference or Markdown guide for the full JSON response.

Update a shipment record

  1. Start from the customer's shipment reference. Pass the shipping line's SCAC when known and check the carrier's support for document references.
  2. Map every returned container to its own record. Use actual arrival or discharge events to trigger operational follow-up and keep planned milestones as estimates.
  3. Request route data when your interface needs a map. Use the scheduled Ocean webhook guide when you want supported updates delivered to your backend.

Response fields to map

data.containers[]
Each returned equipment unit, with its own status and milestone history. A bill of lading can cover several containers.
data.journey
Journey summary, including load and discharge ports and estimated and actual dates where available.
data.containers[].events[]
Carrier milestones mapped to DCSA event codes. Retain the actual flag, timestamp and location for each event.

API pricing

The public default is 2 credits for each successful api response, including cache hits. The first successful API lookup of a new reference in the billing cycle uses a shared shipment slot. Subsequent successful calls for that enrolled reference use credits and keep the same slot. Ocean and Air share the shipment allowance across Web and API.

Compare plans and usage examples · Check workspace rates and access

Frequently asked questions

Can I track a shipment by bill of lading or booking number?

Yes, where the carrier supports the reference type. An unscoped bill of lading or booking can return multiple containers. Read each equipment unit and its milestones separately.

Can I show a ship on the container's route map?

Set include_route_data to true to request route geometry and available vessel position. Use carrier milestones for the container's shipment status and keep the ship's reported location separate.