Delhivery API for Shipment Tracking
Track Delhivery surface and express consignments via standardized REST JSON endpoints with automated NDR reason classification and stuck shipment detection.
What we see in real Delhivery shipments
Median transit: 4.0 days from pickup to delivery, across 5,825 delivered Delhivery shipments picked up between May 2025 and June 2026.
Source: ClearTrack merchant shipment dataset (shipment records shared by merchants), May 2025 – June 2026. Transit is counted in whole days from pickup date to delivery date. It is a dataset median, not a promise for any lane.
For a single shipment, insights.transit_days_elapsed and insights.hours_since_last_scan tell you where it stands against that.
Delhivery statuses that trip up integrations
- Manifested is not shipped. "Manifested", "Booked" and "Pickup Scheduled" all come back as
awaiting_pickup: the AWB exists but Delhivery hasn't collected the parcel. - "Dispatched" returns
shipped. "In Transit" and "Connected to destination" returnin_transit. If your code treats onlyin_transitas moving, includeshippedtoo. - Cancelled before pickup. "Not Picked: Order cancelled by the seller" returns
cancelled, a terminal status that is never flagged as stuck. - A bare "NDR" or "Undelivered". Both return status
exceptionwith an event code ofdelivery_attempted. The NDR reason comes from the remark text, so with no remark it isother. - "Lost" is an exception. It returns
exception, neverin_transit, even when the text reads "lost in transit".
Delhivery AWB numbers
Delhivery AWBs are all digits. The Delhivery AWBs ClearTrack has verified against live tracking are 13, 14 and 16 digits long (for example, 9990001112233), and our parser accepts 13 to 16 digits. Pass the number as-is in the :awb path parameter, without spaces.
Track a Delhivery AWB with cURL
Pass your ClearTrack API key in the X-API-Key header:
curl -s -H "X-API-Key: YOUR_API_KEY" \
"https://api.cleartrackpromise.in/v1/track/delhivery/9990001112233"
How Delhivery wording maps to ClearTrack statuses
Each row is the output of ClearTrack's normalizer for that Delhivery wording: the top-level status and the per-event code.
| Delhivery wording | status |
Event code |
Notes |
|---|---|---|---|
| Manifested | awaiting_pickup |
bagged |
AWB created and manifested; Delhivery has not collected the parcel yet. |
| Picked Up | picked_up |
picked_up |
Collected from the seller. |
| Dispatched | shipped |
dispatched |
Left a Delhivery facility. Note the top-level status is shipped, not in_transit. |
| In Transit | in_transit |
dispatched |
Moving between hubs. |
| Out for Delivery | out_for_delivery |
out_for_delivery |
With the delivery agent for the final mile. |
| Delivered | delivered |
delivered |
Delivered to the buyer (terminal). |
| Undelivered | exception |
delivery_attempted (ndr: other) |
Failed attempt. With no reason text the NDR code is other. |
| Not Picked: Order cancelled by the seller | cancelled |
exception |
Cancelled before pickup (terminal, never flagged stuck). |
| RTO | returned |
rto_initiated |
Return to origin started. |
All statuses across carriers: Shipment Statuses Reference.
Shipping with Delhivery and Blue Dart?
Many sellers split volume between the two. Our guide to tracking Delhivery and Blue Dart shipments with one API covers a TypeScript client, polling cadence and NDR handling for both, and the Blue Dart Tracking API page lists how Blue Dart wording maps.
Non-Delivery Report (NDR) Reasons
Failed attempts appear in delivery_attempts with one of these NDR reason codes:
| Reason code | Category | Meaning |
|---|---|---|
customer_unavailable |
Customer Unavailable | Recipient not available, absent from delivery address, or phone unreachable. |
address_issue |
Address Issue | Incomplete street address, missing landmark, incorrect house number, or invalid pin code. |
refused |
Customer Refused | Recipient refused to accept package or rejected COD verification at doorstep. |
premises_closed |
Premises Closed | Office, commercial premises, or residential entrance locked at time of attempt. |
cod_not_ready |
COD Payment Not Ready | Cash on delivery payment not ready or digital doorstep collection failed. |
other |
Operational Exception | Carrier operational constraint, route delay, or weather hold. |
A parcel that stops getting scans between attempts is flagged by stuck shipment detection.
Sample JSON Response
The response shape is the same for every carrier; see the tracking endpoint reference for each field.
{
"awb": "9990001112233",
"tracking_number": "9990001112233",
"carrier": "delhivery",
"status": "in_transit",
"status_text": "In Transit - Dispatched to Destination Hub",
"is_delivered": false,
"is_rto": false,
"origin": {
"office": "Gurugram Gateway",
"city": "Gurugram",
"state": "Haryana",
"pincode": "122001"
},
"destination": {
"office": "Sanathal Facility",
"city": "Ahmedabad",
"state": "Gujarat",
"pincode": "382210"
},
"estimated_delivery_at": "2026-10-18T18:00:00.000Z",
"delivered_at": null,
"first_scan_at": "2026-10-14T08:00:00.000Z",
"last_location": "Ahmedabad Sorting Hub",
"last_known_location": "Ahmedabad Sorting Hub",
"last_updated_at": "2026-10-16T11:20:00.000Z",
"last_polled_at": "2026-10-16T11:20:00.000Z",
"cached": true,
"stale": false,
"shipment": {
"service_type": "surface",
"weight_grams": 820,
"origin": {
"office": "Gurugram Gateway",
"city": "Gurugram",
"state": "Haryana",
"pincode": "122001"
},
"destination": {
"office": "Sanathal Facility",
"city": "Ahmedabad",
"state": "Gujarat",
"pincode": "382210"
},
"booked_at": "2026-10-14T08:00:00.000Z"
},
"milestones": {
"booked_at": "2026-10-14T08:00:00.000Z",
"picked_up_at": "2026-10-14T09:15:00.000Z",
"in_transit_at": "2026-10-14T12:30:00.000Z",
"out_for_delivery_at": null,
"first_attempt_at": null,
"delivered_at": null,
"rto_initiated_at": null,
"rto_delivered_at": null
},
"delivery_attempts": {
"count": 0,
"attempts": []
},
"insights": {
"transit_days_elapsed": 2.1,
"hours_since_last_scan": 3.8,
"is_stuck": false,
"is_late_vs_carrier_edd": false,
"delay_days_vs_carrier_edd": null,
"hub_count": 3,
"current_stage": "in_transit",
"requires_attention": false,
"attention_reason": null,
"benchmark": {
"median_transit_days_for_route": null,
"sample_size": null,
"expected_delivery_by": null
}
},
"events": [
{
"timestamp": "2026-10-16T11:20:00.000Z",
"status": "in_transit",
"status_text": "In Transit - Dispatched to Destination Hub",
"code": "dispatched",
"facility": "Ahmedabad Sorting Hub",
"location": "Ahmedabad",
"description": "In Transit - Dispatched to Destination Hub"
},
{
"timestamp": "2026-10-14T09:15:00.000Z",
"status": "picked_up",
"status_text": "Picked Up from Seller",
"code": "picked_up",
"facility": "Gurugram Gateway",
"location": "Gurugram",
"description": "Picked Up from Seller"
}
]
}
Delhivery's own API vs a unified tracking API
Delhivery's own API is built for Delhivery's business clients: you need a Delhivery client account and its API token, and it covers Delhivery AWBs only. If you ship with Delhivery alone and already have that account, it can be all you need.
Most Indian sellers and platforms ship with more than one courier. ClearTrack is a separate, unified tracking API: one endpoint, GET /v1/track/:carrier/:awb, called with your ClearTrack API key, returns Delhivery tracking plus 10 other carriers in one normalized JSON schema. Each courier's own wording maps to the same status and current_stage values, failed delivery attempts come back with NDR reason codes, and the insights block flags stuck shipments from the hours since the last scan. You don't need a Delhivery client account to track Delhivery AWBs this way, and adding a second carrier doesn't change your integration.
Frequently Asked Questions
Does Delhivery have an official tracking API?
Yes. Delhivery's own API is for Delhivery client accounts, and it covers Delhivery AWBs only. ClearTrack is a separate, unified tracking API: it tracks any Delhivery AWB alongside 10 other carriers, in one normalized JSON schema.
Do I need a Delhivery account to use ClearTrack?
No. You do not need a direct corporate contract or merchant account with Delhivery. You can query any active Delhivery AWB using your ClearTrack API key.
How fresh is the tracking data?
Active in-transit shipments are cached for up to 30 minutes, ensuring sub-second response times while avoiding upstream rate limiting. Terminal statuses (delivered, returned, and cancelled) are cached permanently.
What does the tracking API cost?
Pricing is pay-as-you-go based on lookups in Indian Rupees (₹), ranging from ₹0.25 to ₹0.27 per lookup across 30-day plans billed via Razorpay Autopay that you can cancel anytime. We offer a free 14-day trial with 50 lookups for business accounts. View our full pricing plans on the pricing page.
Do I need a Delhivery API key to track Delhivery shipments?
No. With ClearTrack you track any Delhivery AWB using your ClearTrack API key; no Delhivery client account is required.
How does ClearTrack handle Delhivery orders cancelled before pickup?
ClearTrack parses carrier cancellation signals (such as "Not Picked: Order cancelled by the seller") and maps them to terminal status "cancelled" and current stage "cancelled", ensuring they are not flagged as stuck shipments.
Pricing
Free trial: 50 lookups over 14 days. Paid plans are 30-day prepaid lookup packs from ₹399 (about ₹0.25–₹0.27 per lookup), billed in rupees via Razorpay Autopay and cancellable anytime.
Supported Logistics Networks
The same endpoint and JSON shape cover Blue Dart, Ekart Logistics, Speed Post, India Post, Trackon, Xpressbees, Shadowfax, Shree Maruti Courier, Shiprocket, The Professional Couriers. Multi-carrier overview: Shipment Tracking API in India.
Related guides: normalizing courier tracking statuses, handling failed delivery attempts and NDR codes and tracking Delhivery and Blue Dart shipments with one API.
ClearTrack is not affiliated with, endorsed by, or sponsored by any courier company. All trademarks belong to their respective owners.
