Developer API for shipment visibility

Integrate tracking into
your website, app, or dashboard

Use CargoTrack's tracking API to create shipments, fetch delivery status, listen for webhook events, and give your users a clean package tracking experience.

tracking-response.json
{
  "tracking_number": "CT00042",
  "status": "in_transit",
  "eta": "2026-05-08",
  "current_location": "Processing Hub",
  "events": [
    {
      "type": "picked_up",
      "time": "2026-05-07T10:30:00Z"
    },
    {
      "type": "in_transit",
      "time": "2026-05-07T14:12:00Z"
    }
  ]
}

API capabilities

CargoTrack gives your business the foundation for shipment creation, tracking status retrieval, customer updates, delivery events, and operational analytics.

Create Shipments

Register new packages with destination details, customer reference, delivery type, and estimated delivery window.

Fetch Tracking Status

Retrieve current package status, delivery progress, ETA, location notes, and full tracking event history.

Webhook Events

Listen for pickup, delay, transit, out-for-delivery, failed delivery, and delivered events in real time.

Secure API Keys

Authenticate requests with API keys and protect business shipment data with secure server-side access.

Core endpoints

Use these endpoints as the base structure for your future backend. The frontend can stay static now, then later connect to PHP, Node.js, Laravel, or FastAPI.

GET Track a package
/api/tracking/{tracking_number}

Returns the current delivery status, estimated delivery date, package stage, and tracking history.

Parameter Type Description
tracking_number string Unique package tracking ID, for example CT00042.
include_events boolean Optional flag to return full delivery event history.
POST Create a shipment
/api/shipments

Creates a new package record and returns a generated tracking number for customer visibility.

Field Type Description
customer_name string Recipient or customer name.
destination string Final delivery location or city.
package_weight number Approximate package weight.
reference_id string Optional business order ID or invoice reference.
POST Update shipment status
/api/shipments/{tracking_number}/events

Adds a new tracking event to a shipment timeline and updates the package's current status.

Field Type Description
status string Current package state: registered, picked_up, processing, in_transit, delivered.
location string Current city, branch, hub, or delivery area.
note string Optional message shown to customer or internal operators.
GET Shipment analytics
/api/analytics/shipments

Returns delivery performance metrics for business dashboards and logistics reporting.

Metric Type Description
delivery_rate number Percentage of packages successfully delivered.
avg_delivery_time number Average delivery time across selected shipments.
failed_deliveries number Total packages with failed delivery attempts.

Webhook delivery flow

Webhooks let your system react automatically when shipment events happen, instead of repeatedly checking the API.

1

Register webhook URL

Add your endpoint URL where CargoTrack should send package status events.

2

Shipment status changes

A package moves from registered to picked up, processing, in transit, or delivered.

3

CargoTrack sends event

Your server receives a JSON payload containing the tracking number, status, timestamp, and location.

4

Your app updates users

Send WhatsApp, SMS, email, or dashboard notifications to customers and operators.

API access tiers

Structure your future monetization around tracking volume, webhook access, analytics, and enterprise integrations.

Starter
For small sellers who need basic customer tracking.
Free / trial
  • Basic package lookup
  • Limited monthly tracking requests
  • Standard tracking timeline
  • Email support
Enterprise
For logistics platforms requiring scale, control, and custom integration.
Custom / volume
  • Custom API limits
  • Dedicated integration support
  • Advanced reporting
  • SLA and priority support

Build shipment tracking into your product

CargoTrack can power tracking pages, seller dashboards, WhatsApp delivery alerts, mobile apps, logistics portals, and custom business workflows.