v1.0 REST APIOpenAPI 3.1 Ready

Panvaya Logistics API Reference

A unified REST API for ocean container and air cargo tracking, multi-carrier sailing schedules, latest stored vessel AIS positions, freight carbon and CBAM estimates, maritime ETS comparisons, port congestion, and sea distance & transit time.

Download Markdown docsGet API KeyOpen OpenAPI Spec
Sandbox and live API keys available. Free includes 100 API credits per month.

Simple Auth

Pass key in X-API-Key header. Instant sandbox test keys.

Real-Time Tracking

Milestone events, vessel legs, and live AIS coordinates.

Supported Ocean Carriers

Maersk, MSC, CMA CGM, COSCO, Hapag-Lloyd, ONE, etc.

Success-Only Billing

100 free credits every month. 404s and errors are never billed.

Overview

The Panvaya REST API delivers normalized supply chain intelligence across global shipping lines. All endpoints return standard JSON payloads and are served under a single base URL.

Connecting a TMS, ERP or logistics application? Explore our integration workflow and shipment field mappings, or download the Excel mapping sheet, Postman collection and receiver example.

Base URL
https://api.panvaya.com/api/v1

Choose an API for your workflow

Track shipments in a TMS, ERP or forwarding platform
Use the Ocean container tracking API for containers, bills of lading or bookings where supported, and the Air cargo tracking API for a full AWB. The integration explorer shows how their different response models map to your records.
Plan a route before booking
Compare carrier-published options with the sailing schedule API. Use sea distance and transit estimates and freight carbon estimates for planning. A modelled transit time is distinct from a carrier’s published arrival date.
Keep a customer portal informed
Choose scheduled Ocean webhooks for delivery to your backend, or embedded Ocean tracking for a hosted interface. Review access, scheduling, receiver authentication and configured credit costs before enabling a workflow.

Quickstart

Set up your API key, check your allowance and try a tracking request.

1

Get Your API Key

Sign in to your API Dashboard and generate a sandbox (pv_test_) or live (pv_live_) key.

2

Check API access and limits

Call GET /api/v1/usage to verify your key and check your available products and credits without a charge.

3

Try an ocean tracking request

Use a known shipment reference in the examples below. Successful tracking requests can use credits with either type of key.

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

Open Maritime Standards & Data Hygiene

Panvaya is built strictly on open maritime, freight, and data exchange standards. Our API eliminates proprietary carrier payload fragmentation so your engineering team never writes carrier-specific parsers:

DCSA Track & Trace 2.2 / 3.0

Ocean carrier milestones are transformed into canonical Digital Container Shipping Association (DCSA) event types (LOAD, DISC, DEPA, ARRI, GTIN, GTOT, STRP).

ISO 6346 & BIC Validation

Every container query is verified against ISO 6346 and Bureau International des Containers (BIC) specifications (4-letter owner prefix + 6-digit serial + modulo-11 check digit) before routing to prevent invalid upstream queries.

UN/CEFACT & UN/LOCODE Locations

All maritime origin, transshipment, and destination ports are mapped to authoritative 5-character United Nations LOCODEs (SGSIN, NLRTM, CNSHA) with validated coordinates.

Freight carbon estimates

Freight carbon APIs return planning estimates using the documented factors and routing assumptions. They do not measure actual shipment emissions. Review the calculation guide before using an estimate in your reporting.

API keys and authentication

In the API Dashboard, select Create API keyand choose Sandbox (test) or Live. Store the key on your server and send it in the X-API-Key header on every call.

Authentication Header
X-API-Key: pv_live_your_key_here
  • • Live keys start with pv_live_ and are used in production environments.
  • • Sandbox keys start with pv_test_ and identify test requests using the same API response contracts. Real provider calls and usage charges can still apply.
  • • You can also supply the token as standard Bearer: Authorization: Bearer <key>.

Container tracking API pricing and quotas

Panvaya utilizes transparent, success-only metering. API calls that return an error or 404 NOT_FOUND are never charged.

Plans at a glance

Public default rates in USD. Your workspace’s configured rates appear in the plan selector. Ocean and Air shipments share one allowance across Web and API; Web refreshes use no API credits.

Public default prices and included shipment and credit allowances
PlanPriceShared shipmentsAPI credits
Free$0 / month5 / month100 / month
TrackingFrom $10 / 30 days20 at $101,200 at $10
Schedule & API credit top-upFrom $50, one-timeNo additional shipments6,000 at $50
Public default tracking and schedule API costs
ProductCreditsBilling unit
Ocean tracking2Each successful API response, including cache hits
Air cargo tracking5Each successful API response, including cache hits
Sailing schedules5Each carrier returning usable sailings, not each sailing
Vessel position5Each successful position lookup

Web and API share the Ocean/Air shipment allowance. Web refreshes use no API credits; successful API cache hits remain billable. Schedule carriers with no usable sailings cost zero; usable partial results can be charged. Your configured costs and product access take precedence over these public defaults.

Worked example: 100 ocean containers checked twice daily

100 containers × 2 checks/day × 30 days × 2 credits = 12,000 credits

At public defaults, 6,000 successful checks use all 12,000 credits in a $100 Tracking allocation. The 100 distinct references use 100 of its 200 shared shipment slots during one billing cycle.

Compare more API pricing examples

Check your remaining credit balance anytime via GET /api/v1/usage or in your API Dashboard.

Rate limits

All API keys in an organization share one request limit per UTC minute: 5 on Free and 15 on Enterpriseby default. An enabled product also has its own per-organization limit: 20 requests per minute for D&D Tariffs, 5 for Sailing Schedules, and 10 for other products. Organization and product limits can be customized.

Example headers for an Enterprise Ocean tracking response (organization limit 15, product limit 10):

X-Request-Id: req_01928374abcd

X-RateLimit-Limit: 15

X-RateLimit-Remaining: 14

X-Product-RateLimit-Limit: 10

X-Product-RateLimit-Remaining: 9

Sending X-Request-Id with a request is optional. Panvaya generates one if omitted and returns it for support and log correlation.

If throttled, the API responds with HTTP 429 RATE_LIMIT_EXCEEDED and includes a Retry-After: <seconds> header. Product throttling uses PRODUCT_RATE_LIMIT_EXCEEDED.

Higher rate limits are available for enterprise accounts on request. Submit a request to unlock higher limits.

Embedded Tracking UI

Publish a Panvaya-hosted ocean tracker on your website using an iframe. Organization administrators configure widgets in Integrations → Web embedding, then copy the installation code. No secret API key is included.

Embedded Ocean Tracking is enabled by default. Its default price is 5 credits per successful search, including cache hits. API, webhook and embedded ocean tracking share the same distinct tracking-reference allowance. Failed searches and page views are unbilled.

Widgets default to an approved-reference allowlist. Open search lets visitors track any supported reference using your balance. Set exact allowed website origins and a daily credit budget. The hosted public page is enabled separately. An allowlist restricts searchable references; it does not authenticate individual visitors. The iframe URL is public and copyable. Website restrictions block unapproved browser frames, but do not authenticate custom HTTP clients.

HTML
<iframe src="https://panvaya.com/embed/YOUR_WIDGET_ID" title="Shipment tracking" style="width:100%;height:720px;border:0" loading="lazy" referrerpolicy="strict-origin"></iframe>

For private customer access, enable Require private access and have your backend request a one-time, reference-scoped launch using an existing organization-admin API key. Approved references can also be added or removed through the API. Neither operation consumes tracking credits.

Automated Webhook Delivery

Push AutomationZero-Cost Retries

Eliminate polling loops with scheduled push deliveries.

Subscribe containers, Bills of Lading, or Bookings to recurring tracking runs from 5 minutes up to 30 days. Panvaya handles ocean carrier anti-bot bypasses, normalizes events to DCSA standards, and pushes HTTPS payloads to your receiver.

⚡ 5m – 30d Intervals⚓ Canonical DCSA 2.2 / 3.0🔒 AES-256-GCM Receiver Auth

Sea Tracking

POST/track/ocean

Look up ocean container status, milestone timeline, port pairs, vessel details, and live AIS coordinates. Supply either an ISO container number, Bill of Lading (BOL), or Booking reference.

FieldTypeRequiredDescription
containerstringConditionalISO 6346 container number (e.g. MEDU8611713). May be combined with bol or bk.
bolstringConditionalBill of Lading reference. Cannot be combined with bk.
bkstringConditionalBooking reference. Cannot be combined with bol.
shipping_line_scacstringOptionalCarrier SCAC (e.g. MAEU, MSCU). Optional, bypasses auto-discovery.
include_route_databooleanOptionalDefaults to false when omitted. Set true to include one full path per route segment, segment status, aligned stops, current position, and AIS telemetry.
ℹ

Understanding the Normalized Tracking Schema

To keep payloads compact and avoid duplicating lengthy port coordinates and vessel specifications across dozens of events, Panvaya returns ports and vessels in top-level arrays. Events link to them by ID:

event.location_id âž” data.locations[]

Lookup by ID gives Port Name, Country, UN/LOCODE, Lat/Lng, and Timezone.

event.transport_id âž” data.transports[]

Lookup by ID gives Vessel Name, IMO, MMSI, Call Sign, and Voyage number.

Event Resolver Snippet (JavaScript / TypeScript)
// Fast lookup maps
const locationMap = new Map(data.locations.map(loc => [loc.id, loc]));
const transportMap = new Map(data.transports.map(t => [t.id, t]));

// Enrich milestones with port and vessel details
const enrichedMilestones = container.events.map(event => ({
  code: event.event_code,
  milestone: event.event_name,
  timestamp: event.event_time,
  isActual: event.actual,
  portName: locationMap.get(event.location_id)?.name,
  unlocode: locationMap.get(event.location_id)?.locode,
  vesselName: transportMap.get(event.transport_id)?.name,
  voyage: transportMap.get(event.transport_id)?.voyage,
}));
curl -X POST "https://api.panvaya.com/api/v1/track/ocean" \
  -H "X-API-Key: pv_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"container": "MEDU8611713", "shipping_line_scac": "MSCU", "include_route_data": false}'
Bill of Lading cURL
curl -X POST "https://api.panvaya.com/api/v1/track/ocean" \
  -H "X-API-Key: pv_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"bol": "MAEU123456789"}'
Booking cURL
curl -X POST "https://api.panvaya.com/api/v1/track/ocean" \
  -H "X-API-Key: pv_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"bk": "MAEU123456789"}'

Plot the route and vessel position

Set include_route_data to true. Draw each segments[].path using its GeoJSON longitude, latitude pairs. Preserve the supplied longitudes, including values outside ±180°, to keep antimeridian crossings continuous. Use stops for ports and terminals. For the vessel marker, live_ais identifies an AIS position and route_progress identifies an estimate along the route.

Draw the route, stops, and vessel position (Leaflet)
// Request include_route_data: true. Pass the response JSON to an initialized Leaflet map.
const route = response.data?.route_data;
const layers = L.featureGroup().addTo(map);

for (const { path, status } of route?.segments ?? []) {
  if (!path || path.length < 2) continue;
  const points = path.map(([longitude, latitude]) => [latitude, longitude]);
  L.polyline(points, { dashArray: status === "completed" ? undefined : "6 8" }).addTo(layers);
}

for (const stop of route?.stops ?? []) {
  if (stop.latitude != null && stop.longitude != null) {
    L.circleMarker([stop.latitude, stop.longitude], { radius: 4 }).addTo(layers);
  }
}

const position = route?.current_position;
const longitude = position?.plot_longitude ?? position?.longitude;
const atSea = position?.source === "live_ais" || position?.source === "route_progress";
if (atSea && position.latitude != null && longitude != null) {
  L.marker([position.latitude, longitude]).addTo(layers);
}

const bounds = layers.getBounds();
if (bounds.isValid()) map.fitBounds(bounds, { maxZoom: 9 });

The example draws completed legs solid and other legs dotted. To show progress within an active leg, match current_position.active_segment_sequence to the sequence of an in_progress segment. Use plot_longitude to project the position onto the nearest edge of its path. If 1 → 2 is complete and 2 → 3 is active, draw 1 → 2 and 2 → the projected point solid, then draw the rest of the path to 3 dotted.

Use estimated and observed_at to label the position. Read speed, course, heading, and remaining distance from ais. Telemetry fields may be null.

200 OKExpanded response (include_route_data: true)(361 lines)
{ "data": { "reference": { …Click to expand

List carriers

GET/carriers

Returns all active ocean shipping lines and their Standard Carrier Alpha Codes (SCAC). Pass the carrier SCAC code in shipping_line_scac during tracking to bypass automatic carrier discovery.

cURL
curl "https://api.panvaya.com/api/v1/carriers" \
  -H "X-API-Key: pv_live_your_key_here"
200 OKResponse example(45 lines)
{ "mode": "ocean", "carriers": [ …Click to expand

Air Cargo Tracking

POST/track/air

Track a full air waybill (AWB). Compact and formatted inputs resolve to the same canonical AWB. Air shares your API credit pool and distinct tracking allowance with Ocean. Each successful response uses the configured Air credit cost; repeated requests for an enrolled AWB do not use another distinct tracking unit in the same cycle. Failed requests are not billed.

FieldTypeRequiredDescription
awbstringRequiredFull 11-digit AWB, for example 044-45428036. Compact input is also accepted.
curl -X POST "https://api.panvaya.com/api/v1/track/air" \
  -H "X-API-Key: pv_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"awb": "044-45428036"}'

The response contains canonical AWB and airline identity, origin and destination airports, planned and actual dates, pieces, weight, shipment status, flight legs, milestones, map route points and waypoints. Missing carrier values remain null. Airport-local dates are preserved.

Success returns the Air object directly, with camelCase field names and airport IATA codes. It does not use the Ocean containers, vessel or shipping-line schema. Errors use the shared errors envelope: 400 for invalid input or unsupported airlines, 404 for no tracking data, 402 for insufficient quota, and 502 UPSTREAM_UNAVAILABLE for airline outages.

200 OKIllustrative Air response(122 lines)
{ "awbNumber": "044-45428036", "airlineId": 52, …Click to expand

Cargo Airlines API

GET/airlines

Returns supported, available cargo airlines with their names and 3-digit Air Waybill (AWB) prefixes. Send the full AWB to /track/air; its prefix identifies the airline automatically. No separate airline code is needed. This directory requires an API key and is free to call, subject to rate limits.

cURL
curl "https://api.panvaya.com/api/v1/airlines" \
  -H "X-API-Key: pv_live_your_key_here"
200 OKResponse example(53 lines)
{ "mode": "air", "airlines": [ …Click to expand
Planning & Schedules APIs

Sailing Schedules

Search point-to-point departure and arrival schedules between any two UN/LOCODE ports across major ocean carriers with transit times, transshipments, and per-carrier execution statuses. Try sailing schedules

POST/schedules/search

Search upcoming departures and arrivals between two UN/LOCODE ports. Returns normalized sailings alongside per-carrier execution statuses (FOUND, NO_SAILINGS, FILTERED, PARTIAL, TIMEOUT, FAILED) for transparent observability.

FieldTypeRequiredDescription
originstringRequiredOrigin UN/LOCODE, e.g. CNSHA (Shanghai).
destinationstringRequiredDestination UN/LOCODE, e.g. NLRTM (Rotterdam).
datestringOptionalEarliest departure date in YYYY-MM-DD format. Defaults to today.
weeksnumberOptionalForward search horizon in weeks (1 to 12). Defaults to 4.
carriersarrayOptionalOptional carrier filter by name or SCAC (e.g. ["MAEU"]). Omit to search all.
cURL
curl -X POST "https://api.panvaya.com/api/v1/schedules/search" \
  -H "X-API-Key: pv_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"origin":"CNSHA","destination":"NLRTM","date":"2025-09-01","weeks":8,"carriers":["MAEU"]}'
200 OKResponse example(135 lines)
{ "origin": { "name": "Shanghai", …Click to expand

Reading this response

  • Default price: 5 credits per carrier returning usable sailings, not per sailing. Multiple sailings from one carrier count as one unit. Carriers without usable sailings cost zero; partial or fallback results are billable when they contain usable sailings. Organization-specific credit rates remain authoritative.
  • All carrier failures return HTTP 200 with per-carrier FAILED, TIMEOUT or PARTIAL evidence, even when sailings is empty. Inspect error, resultCode, failureCategory and acquisitionComplete for location, network, proxy, CAPTCHA or parsing failures. Carriers returning usable sailings are billed even when partial; carriers returning no usable sailings cost zero credits and do not establish no service. Healthy confirmed empty searches retain HTTP 404.
  • Final ETA: arrival is the final destination ETA. If it is null, finalEtaStatus is NOT_PUBLISHED; an intermediate leg arrival is never substituted.
  • Freshness: servedAt is this API response time. Each sailing's retrievedAt is Panvaya's carrier capture time and cached tells you whether that sailing came from cache. Each carrier status with usable data includes cacheExpiresAt, the original acquisition time plus the 12-hour freshness window. The top-level cached flag is true only when every successful carrier came from cache.
  • Carrier timestamps: sourceUpdatedAt is currently null because no adapter has a verified schedule update time. sourceResultTimestamp is MSC's raw result-generation text, not a schedule update time.

Demurrage & Detention Tariffs

Return published free time and the complete staircase rate ladder for one carrier, port, direction, charge type, and equipment selection. Explore D&D tariffs

POST/dnd-tariffs/calculate

Return only the requested carrier's matching tariff, included free days, and complete chargeable rate tiers.

FieldTypeRequiredDescription
portstringRequiredPort UN/LOCODE, e.g. USLAX.
carrierstringRequiredCarrier name or SCAC, e.g. Maersk or MAEU.
tradeDirectionstringRequired"IMPORT" or "EXPORT".
chargeTypestringRequired"DEMURRAGE" or "DETENTION".
equipmentTypestringRequiredEquipment code such as 20GP, 40GP, 40HC, 20RF, or 40RF.
cURL
curl -X POST "https://api.panvaya.com/api/v1/dnd-tariffs/calculate" \
  -H "X-API-Key: pv_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"port":"USLAX","carrier":"MAEU","tradeDirection":"IMPORT","chargeType":"DEMURRAGE","equipmentType":"40HC"}'
200 OKResponse example(34 lines)
{ "carrierName": "Maersk", "scacCode": "MAEU", …Click to expand

Reading this response

  • Enabled by default. A successful direct match costs 5 API credits by default; validation failures and requests without a direct tariff are not charged.
  • The default product rate limit is 20 requests per minute per organization. Superadmins can override enablement, credit cost, and rate limit.
  • The response contains only the requested carrier's complete free-time and chargeable rate ladder. It is a published tariff reference, not a guarantee of a final carrier invoice.

CO2 Calculator

Calculate freight carbon emissions (GLEC Framework) between two ports or airports. Returns CO2e in kg and tonnes, car-km equivalents, and trees needed to offset. Try the carbon calculator

POST/carbon/calculate

Estimate carbon emissions by origin, destination, cargo weight, and transport mode. Estimates are not certified emissions reports.

FieldTypeRequiredDescription
originstringRequiredOrigin location as UN/LOCODE, e.g. NLRTM (Rotterdam), CNSHA (Shanghai).
destinationstringRequiredDestination location as UN/LOCODE, e.g. SGSIN (Singapore), USNYC (New York).
weightKgnumberRequiredTotal cargo weight in kilograms.
modestringRequiredTransport mode: "ocean" or "air".
cURL
curl -X POST "https://api.panvaya.com/api/v1/carbon/calculate" \
  -H "X-API-Key: pv_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"origin": "NLRTM", "destination": "SGSIN", "weightKg": 18000, "mode": "ocean"}'
200 OKResponse example(23 lines)
{ "origin": { "name": "Shanghai", …Click to expand

CBAM & Maritime ETS Calculator API

Estimate embedded product emissions and maritime ETS costs. Uses CARBON_CALCULATOR credits on success. Standalone calculations are read-only; reference factors are planning values, not certified defaults or tax calculations. Responses contain no internal database IDs; API report URLs are null. Downloads use authenticated web endpoints. Try the public CBAM calculator

POST/carbon/cbam

Returns product emissions, nullable freight emissions and a separate EUR maritime ETS comparison. Unknown commodities, ambiguous HS codes, invalid ports and non-EUR invoices return 400. Unknown or foreign shipment references return 404; multiple matches require a public UUID. Missing route data stays null. The illustrative allowance price is EUR 70/t; estimates do not verify carrier invoices.

FieldTypeRequiredDescription
cnCodestringRequired8-digit CN code; hsCode alias accepted. A 6-digit HS code must identify one commodity. Spaces allowed.
netWeightKgnumberRequiredNet cargo weight: 0.01 to 100,000,000 kg, subject to the emissions storage limit. weightKg alias accepted.
originCountrystringOptionalManufacturing country as ISO alpha-2, such as CN or IN. DEFAULT uses general reference factors.
originstringOptionalOrigin port UN/LOCODE, e.g. CNSHA. Add both ports for freight and ETS estimates.
destinationstringOptionalDestination port UN/LOCODE, e.g. NLRTM. Missing ports or coordinates leave route estimates null.
invoicedEtsSurchargenumberOptionalOptional nonnegative carrier surcharge in EUR, up to 99,999,999.99.
invoicedCurrencystringOptionalEUR only. Convert other currencies before comparing.
shipmentIdentifierstringOptionalOptional public shipment UUID or organization-owned container/B/L reference. Omit for standalone calculations. Never writes a saved calculation.
cURL
curl -X POST "https://api.panvaya.com/api/v1/carbon/cbam" \
  -H "X-API-Key: pv_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"cnCode":"72083900","netWeightKg":20000,"originCountry":"DEFAULT"}'
200 OKResponse example(37 lines)
{ "shipmentIdentifier": null, "carrierName": null, …Click to expand

Sea Distance & Transit Time

Calculate sea distance and estimated transit time between any two ports. Routes through real ocean channels including Suez, Panama, Gibraltar, and Malacca strait. Supports danger-zone avoidance to reroute via the Cape of Good Hope. Try the distance calculator

POST/distance-time/calculate

Calculate routed sea distance in km and nautical miles, plus estimated transit time between two ports.

FieldTypeRequiredDescription
originstringOptionalOrigin port as UN/LOCODE, e.g. NLRTM (Rotterdam), CNSHA (Shanghai). Required if waypoints not provided.
destinationstringOptionalDestination port as UN/LOCODE, e.g. SGSIN (Singapore), USNYC (New York). Required if waypoints not provided.
waypointsarrayOptionalOptional multi-stop array of port waypoints (up to 6 stops), e.g. [{"locode": "CNSHA"}, {"locode": "NLRTM"}].
avoidDangerZonesbooleanOptionalWhen true, routes around the Red Sea and Suez Canal via the Cape of Good Hope. Default: false.
cURL
curl -X POST "https://api.panvaya.com/api/v1/distance-time/calculate" \
  -H "X-API-Key: pv_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"origin": "NLRTM", "destination": "SGSIN", "avoidDangerZones": false}'
200 OKResponse example(52 lines)
{ "safe": false, "totalNm": 8305.2, …Click to expand

Batch Sailing Schedules

Submit one route and collect carrier results asynchronously when enabled for the deployment. Up to 2 active batch requests per organization are supported by default. For higher limits, contact support.

POST/schedules/requests

Returns 202 with a request UUID, statusUrl, resultUrl and deadline. One port-to-port route per batch; omit carriers to select all enabled providers. Idempotency-Key is optional and must be reused only with the same request parameters.

cURL
curl -X POST "https://api.panvaya.com/api/v1/schedules/requests" \
  -H "X-API-Key: pv_live_your_key_here" \
  -H "Idempotency-Key: customer-search-123" \
  -H "Content-Type: application/json" \
  -d '{"origin":"CNSHA","destination":"NLRTM","weeks":4,"carriers":["MAEU","ONEY","HLCU"]}'
GET/schedules/requests/{requestId}

Returns 200 with progress, totalCarriers, terminalCarriers and each carrier's state, attempts and outcome. Terminal carriers include completed, partial, failed and timed-out carriers; this is not the billable-carrier count.

cURL
curl "https://api.panvaya.com/api/v1/schedules/requests/<requestId>" \
  -H "X-API-Key: pv_live_your_key_here"
GET/schedules/requests/{requestId}/result

Returns 202 progress while pending, then 200 with requestId, status, creditsCharged, metadata and result. The normalized result contains sailings and carrierStatuses; metadata includes chargedCarrierCodes and requestId. Partial results retain completed carrier data.

cURL
curl "https://api.panvaya.com/api/v1/schedules/requests/<requestId>/result" \
  -H "X-API-Key: pv_live_your_key_here"
POST/schedules/requests/{requestId}/retry-billing

After resolving a BILLING_FAILED issue, returns 202 and retries settlement using the collected results. It does not repeat carrier acquisition. Result access returns 409 until billing succeeds.

cURL
curl -X POST "https://api.panvaya.com/api/v1/schedules/requests/<requestId>/retry-billing" \
  -H "X-API-Key: pv_live_your_key_here"
202 Accepted · Response example
{
  "requestId": "a5b80a55-62a2-4935-92fd-ef3089cd90a6",
  "status": "CREATED",
  "createdAt": "2026-10-25T10:00:00Z",
  "deadlineAt": "2026-10-25T10:05:00Z",
  "statusUrl": "/api/v1/schedules/requests/a5b80a55-62a2-4935-92fd-ef3089cd90a6",
  "resultUrl": "/api/v1/schedules/requests/a5b80a55-62a2-4935-92fd-ef3089cd90a6/result"
}
  • Up to 2 active batch requests per organization by default. Contact support for higher limits.
  • Exceeding the active-request limit returns 429 ASYNC_SCHEDULE_CAPACITY_EXCEEDED. Wait for an active request to finish before submitting another batch.
  • The five-minute budget includes queue wait, preparation and retries. Acquisition stops at 295 seconds to allow settlement. Consumer or database outages can delay final visibility; later carrier results cannot change a closed request.
  • The default outer limit is 2 total execution attempts for retryable failures, including the first attempt. PARTIAL / PARTIAL_UPSTREAM responses are final and are not retried by the async worker. Individual carrier adapters retain their own internal retry policies.
  • Poll no faster than Retry-After (15 seconds by default). Status and result reads share a separate 30 requests/minute organization allowance and do not charge credits.
  • Uses SAILING_SCHEDULES pricing. No credits are reserved. Nonempty complete and partial carrier responses are charged, including partial stale-cache fallback. Empty responses and failures without usable sailings are unbilled. Partial flags remain visible; a charge does not certify complete route coverage. Existing fixed-price agreements remain supported until retired.
  • Fresh exact windows are reused first; subsets of fresh wider windows keep the original acquisition time. Historical result reads remain stable after later cache refreshes.
  • Request IDs, collected results and idempotency records have no automatic expiry. Retrieve an existing request using an authorized API key for its organization and live/sandbox environment. Use a new idempotency key for a new search.
  • States: CREATED, PREPARING, RUNNING, FINALIZING, COMPLETED, PARTIAL, FAILED, BILLING_FAILED. Healthy empty results return COMPLETED with zero sailings and zero credits.
  • API keys stay in request headers. Responses and queue messages contain no API key. Access is scoped to the organization and live/sandbox environment; responses are private, no-store.
Maritime Intelligence & Vessels

Vessel Details

Search stored vessel master specifications by IMO, MMSI, or vessel name. Every result includes its achieved similarity score.

GET/vessels

Returns an array of vessel master records by 7-digit IMO, 9-digit MMSI, or vessel name. Exactly one identifier is required.

FieldTypeRequiredDescription
imostringOptionalChecksum-valid seven-digit IMO number, e.g. 9525338. Provide exactly one of imo, mmsi, or name.
mmsistringOptionalNine-digit Maritime Mobile Service Identity, e.g. 566093000. Provide exactly one of imo, mmsi, or name.
namestringOptionalVessel name (2-120 characters). Provide exactly one of imo, mmsi, or name.
similaritynumberOptionalOptional minimum name similarity from 0 to 1. It applies only to name searches and defaults to 1.0 (exact normalized-name match). Lower values return broader matches, up to 50 results.
cURL
curl "https://api.panvaya.com/api/v1/vessels?name=MAERSK%20CHENNAI&similarity=0.7" \
  -H "X-API-Key: pv_live_your_key_here"
200 OKResponse example(17 lines)
[ { "imo": 9525338, …Click to expand

Latest Stored Vessel Position

Read the latest stored AIS position by IMO or MMSI, with available speed, course, ports, ATD and ETA. The response does not include an AIS observation timestamp. Vessel position API integration guide

GET/vessels/position

Returns the latest stored position and available navigation and voyage data.

FieldTypeRequiredDescription
imostringOptionalChecksum-valid seven-digit IMO number, e.g. 9525338. Provide either imo or mmsi.
mmsistringOptionalNine-digit Maritime Mobile Service Identity, e.g. 566093000. Provide either imo or mmsi.
cURL
curl "https://api.panvaya.com/api/v1/vessels/position?imo=9525338" \
  -H "X-API-Key: pv_live_your_key_here"
200 OKResponse example(20 lines)
{ "imo": 9525338, "mmsi": 566093000, …Click to expand

Incoterms Reference

Look up one of the 11 Incoterms 2020 trade terms by code. The response includes the full name, applicable transport mode, risk and cost transfer points, and a 12-stage responsibility breakdown. View the Incoterms guide

GET/incoterms/{code}

Returns detailed Incoterm data including risk and cost transfer points and per-stage seller/buyer responsibilities.

FieldTypeRequiredDescription
codestringRequiredThree-letter Incoterm code: EXW, FCA, FAS, FOB, CFR, CIF, CPT, CIP, DAP, DPU, or DDP.
cURL
curl "https://api.panvaya.com/api/v1/incoterms/FOB" \
  -H "X-API-Key: pv_live_your_key_here"
200 OKResponse example(34 lines)
{ "code": "FOB", "name": "Free On Board", …Click to expand

Port Congestion

Monitor real-time global port congestion covering the top 300+ ocean container ports. Returns anchor wait times, berthing durations, approaching vessel queues, and TEU throughput by UN/LOCODE or country code. View the congestion map

GET/port-congestion

Returns real-time congestion metrics for ports filtered by UN/LOCODE or country code. At least one of locode or country is required. Both may be supplied to narrow the result. Missing or blank filters return 400 INVALID_REQUEST without charging credits.

FieldTypeRequiredDescription
locodestringConditionalRequired unless country is provided. Case-insensitive port UN/LOCODE (e.g. SGSIN, NLRTM, CNNBO, USLAX). Monitors top 300+ ocean container ports. Air cargo airport hubs (e.g. USJFK, GBLHR) and inland depots return 404 NOT_FOUND.
countrystringConditionalRequired unless locode is provided. Case-insensitive ISO alpha-2 country code to get all monitored ports in a country, e.g. SG, NL, CN.
cURL
curl "https://api.panvaya.com/api/v1/port-congestion?locode=SGSIN" \
  -H "X-API-Key: pv_live_your_key_here"
200 OKResponse example(40 lines)
{ "count": 1, "ports": [ …Click to expand
Account & Usage APIs

Credit usage

GET/usage

Returns credit and shipment allowances, remaining balances, billing cycle dates and enabled products with their configured credit costs. This account endpoint is unbilled.

cURL
curl "https://api.panvaya.com/api/v1/usage" \
  -H "X-API-Key: pv_live_your_key_here"
200 OKResponse example(37 lines)
{ "creditLimit": 12000, "creditsUsed": 1280, …Click to expand

Download usage report

GET/usage/report

Downloads your organization's success-only billing ledger as a CSV file. Filters by product and date range are optional. This administrative endpoint is unbilled. The CSV includes the correlation request_id returned in the X-Request-Id header. The metadata column contains a JSON object with chargedCarrierCodes for new sailing schedule requests. Historical requests and other products have an empty metadata cell. Fixed-rate accounts keep their per-search price.

FieldTypeRequiredDescription
productCodestringOptionalFilter by product code, e.g. SEA_TRACKING, AIR_TRACKING, SAILING_SCHEDULES.
fromdateOptionalInclusive start date in YYYY-MM-DD format.
todateOptionalInclusive end date in YYYY-MM-DD format.
cURL
curl "https://api.panvaya.com/api/v1/usage/report?productCode=SAILING_SCHEDULES&from=2026-10-23&to=2026-10-23" \
  -H "X-API-Key: pv_live_your_key_here" \
  -o panvaya-api-usage.csv
200 OKCSV File Download Sample(5 lines)
timestamp,api_product,environment,request_reference,request_id,credits_charged,metadata 2026-10-23T09:15:00,SEA_TRACKING,prod,MSKU8094830,req_9a2f7c10b4d83e21,2,"" 2026-10-23T09:16:00,SAILING_SCHEDULES,prod,CNSHA-NLRTM:NEXT:ALL:W8,c4b69324-4f46-4cb7-a720-dd5eb6bbdb59,10,"{""chargedCarrierCodes"":[""MAEU"",""ONEY""]}" …Click to expand

Health check

GET/health

Public unmetered probe for automated uptime monitors, load balancers, and orchestration health checks. Bypasses API key authentication.

cURL
curl "https://api.panvaya.com/api/v1/health"
{
  "status": "operational",
  "service": "panvaya-tracking-api",
  "version": "v1",
  "timestamp": "2026-10-12T07:55:00Z",
  "database": "operational"
}

Errors

Errors use a standard JSON envelope with a machine-readable code string. Branch your application logic on the error code, not the error message text.

400 Bad Request
{
  "errors": [{
    "code": "INVALID_REQUEST",
    "title": "Invalid request",
    "detail": "One of container, bol, or bk is required."
  }]
}
StatusCodeMeaning
400INVALID_REQUESTA required parameter is missing, invalid, or mutually exclusive.
400CARRIER_NOT_SUPPORTEDThe requested or detected shipping line or airline is unavailable or unsupported.
401MISSING_API_KEYNo API key was provided in the X-API-Key or Authorization header.
401INVALID_API_KEYThe provided API key is invalid or unrecognized.
401KEY_REVOKED / KEY_EXPIREDThe API key has been revoked or has reached expiration.
402QUOTA_EXCEEDEDYour account API credit balance is exhausted for this billing period.
403API_PRODUCT_NOT_ENABLEDThis API product is not enabled for your organization.
404NOT_FOUNDNo tracking data or vessel records were found for the reference.
429RATE_LIMIT_EXCEEDEDShared organization rate limit exceeded. Check Retry-After in response.
429PRODUCT_RATE_LIMIT_EXCEEDEDProduct-specific rate limit exceeded. Check Retry-After in response.
503RATE_LIMIT_UNAVAILABLECentralized API admission is temporarily unavailable; retry shortly.
502UPSTREAM_ERRORThe carrier or external data provider is temporarily unavailable.
502UPSTREAM_UNAVAILABLEThe airline tracking provider is temporarily unavailable.
503CARRIER_MAINTENANCEThe selected carrier is temporarily marked as under maintenance. The request is not billed.
500SERVER_ERRORAn internal operation failed. Retry later or contact support; failed requests are not billed.

Sandbox API keys and testing

Generate a sandbox test key (prefixed pv_test_) to identify development requests. Sandbox keys use the same endpoints, response contracts and workspace limits as live keys. Tracking requests can contact real carriers and consume your workspace's credits and shipment allowance. Use the published JSON examples as fixtures for offline tests.

Make an unbilled usage request first to verify your sandbox key and check your available products and limits.

Check a sandbox key with cURL
curl "https://api.panvaya.com/api/v1/usage" \
  -H "X-API-Key: pv_test_your_sandbox_key"

Ready to start integrating? Generate your API keys or contact our team for high-volume enterprise plans.

Start building with the Panvaya REST API

Create an API key in the dashboard. Free workspaces include 100 API credits per month.

API pricing, access and integration questions

How much does the Panvaya tracking API cost?

At public default rates, Tracking starts at $10 per 30 days with 20 shared Ocean/Air shipments and 1,200 API credits. Ocean tracking costs 2 credits per successful API response and Air tracking costs 5 by default, including cache hits. Organization-specific rates and product access remain authoritative; check the usage endpoint before a billable workflow.

Do Web and API tracking use separate shipment allowances?

No. Ocean and Air tracking share one shipment allowance across Web and API. Web refreshes consume no API credits. Successful API calls consume the configured credits even when served from cache, while repeat API tracking of the same enrolled reference in one billing cycle does not add another distinct shipment. API errors are not billed.

How do I get a container tracking API key?

Sign in to the Panvaya API Dashboard and select Create API key. Choose Sandbox (test) for development or Live for production. Send the key in the X-API-Key header from your server or integration backend. Store it in a secret manager or server-side environment variable.

Does the sandbox return mock tracking data?

Sandbox keys use the same endpoints, response contracts and workspace limits as live keys. Tracking requests can contact real carriers and consume your workspace's credits and shipment allowance. Use the published JSON examples as fixtures for offline tests. Start with the unbilled GET /api/v1/usage request to verify your key and check available products, configured rates and remaining allowances before trying tracking.

Are sailing schedules charged per sailing or per carrier?

The public default is 5 credits for each carrier returning usable sailings, regardless of how many sailings that carrier returns. Empty or failed carriers cost zero. Partial and cached results with usable sailings can be billable; your organization's configured price is authoritative.

How do I connect Panvaya to a TMS or ERP?

Your backend or middleware keeps the API key server-side, calls the documented endpoints and maps the returned JSON to your own shipment records. The integration guide includes shared Ocean/Air request examples, field mappings and starter downloads. Scheduled Ocean webhooks and embedded tracking are also documented. These are integration building blocks, not a claim of a native vendor connector.