Best courier · Developers and API
Best courier API for developers in India: what to look for
For a developer, the best courier API is the one you can test safely, that fails predictably, and that tells you honestly what it will and will not do. Check the sandbox, auth, rate limits, idempotency and webhook retry behaviour before you write any production code.
Last checked
In short
- Base URL https://app.courieruncle.com/api/ext/v1, authenticated with an X-API-Key header.
- cu_test_ keys run a sandbox: full validation and pricing, simulated IDs, nothing saved, no charge.
- Rate limits: 60 requests a minute in sandbox, 300 a minute live, with 429 and Retry-After.
- Webhooks are HMAC-SHA256 signed and retried once, so reconcile with polling too.
What to check in any courier API
| Check | Why it matters | Courier Uncle public API |
|---|---|---|
| Sandbox | Test without real pickups or charges | cu_test_ keys: validation and pricing, simulated CUTEST IDs, nothing saved |
| Auth | Simple, revocable, per environment | X-API-Key header; cu_live_ keys issued after KYC |
| Rate limits | Plan batch jobs and retries | 60/min sandbox, 300/min live, X-RateLimit-* headers, 429 with Retry-After |
| Idempotency | Retries must not double-book | Booking is idempotent on order_id |
| Webhooks | Push status instead of polling | HMAC-SHA256 signed, 5 s timeout, one retry |
| Spec | Generate clients, validate payloads | OpenAPI 3.1 document |
What the API covers
Full details are in the API docs and on the shipping API page.
- Pre-booking: pincode lookup, serviceability, and rates (one row per courier service, cheapest first) from origin and destination pincodes, weight, payment mode, COD amount, order value and dimensions.
- Shipments: list, book, detail, cancel, label PDF (thermal_4x6, thermal_4x4, a4_4, a4_2, courier's own label or the designed one) and retry.
- Exceptions: NDR actions (reattempt or RTO) and weight disputes (list, accept or dispute with an evidence URL).
- Operations: pickup addresses (list and create), manifests (create, detail, close, PDF) and bulk tracking of up to 100 IDs per call.
- Money: wallet balance and transactions, COD remittances and invoices.
- Reference: the list of couriers available to your account.
Webhooks: verify and reconcile
Events: shipment.created, picked_up, in_transit, out_for_delivery, delivered, ndr, rto, cancelled, plus cod.remitted and weight.dispute_raised. Each request carries an X-CU-Signature header of the form sha256=<hex>, an HMAC-SHA256 of the body with your secret. Verify it before trusting the payload.
Delivery has a 5 second timeout and one retry. If your endpoint is down for longer, events are missed, so run a periodic job that polls shipment detail or bulk track for open shipments. The panel has a webhook log to see what was sent, and an API playground for trying calls.
Integration plan
- 1
Create a cu_test_ key in the panel under Developers and read the OpenAPI spec.
- 2
Call rates and serviceability for your common lanes; check how your app shows several courier options.
- 3
Book in the sandbox with your real order_id format and confirm a retry with the same order_id does not create a second shipment.
- 4
Fetch a label in the size your warehouse prints, and build manifest creation and closing into your dispatch flow.
- 5
Stand up a webhook endpoint, verify signatures, and add a polling job for missed events.
- 6
Handle 429 by honouring Retry-After, and keep batch jobs under the per-minute limit.
- 7
Complete KYC, switch to a cu_live_ key, and ship a few real orders before full rollout.
Limits to know before you build
- No SDK on npm: call the REST API directly or generate a client from the OpenAPI spec. Do not plan on npm install.
- Domestic only: international shipping is not offered.
- Documents: DOCUMENT shipments are refused at the moment.
- Couriers: parcels go on Xpressbees, Shadowfax, Amazon Shipping and Parcel Uncle (Delhi NCR only). Reverse pickups (shipment_type REVERSE) are supported on Xpressbees and Shadowfax.
- No public quote endpoint: every rate call needs an API key, so you cannot call it from a public web page without exposing a key. Proxy it through your server.
- White-label: approved partners can carry their own brand in tracking_url and webhook tracking_link values; the webhook User-Agent is not partner-branded.
Frequently asked questions
Which courier API is best for developers in India?
Look for a safe sandbox, clear auth, published rate limits, idempotent booking and signed webhooks, then test on your own lanes. The best fit depends on the couriers and features your app needs.
Does Courier Uncle have a sandbox?
Yes. Keys starting cu_test_ run in a sandbox with full validation and pricing, simulated CUTEST shipment IDs, nothing saved and no charge.
What are the API rate limits?
Sandbox keys allow 60 requests a minute and live keys 300 a minute. Responses carry X-RateLimit headers, and a 429 response includes Retry-After.
How many times are webhooks retried?
Once. Delivery has a 5 second timeout and one retry, so also poll for status to catch any missed events.
Is there a Node SDK on npm?
No. The SDK is not published to npm. Use the REST API directly or generate a client from the OpenAPI 3.1 spec.
How do I get live API keys?
Live cu_live_ keys are issued after KYC. Until then, build and test with cu_test_ sandbox keys.
Keep reading
Ship your next order with Courier Uncle
Free to sign up, no monthly fee. Compare live rates across couriers and book in minutes.
