API

Shipping API for India: rates, booking, labels and webhooks

A shipping API lets your store, ERP or app get courier rates, book shipments and print labels without opening a panel. The Courier Uncle REST API gives you one set of endpoints across every live courier, a sandbox that prices real orders without booking them, and HMAC-signed webhooks for every status change.

Last checked

In short

  • Base URL https://app.courieruncle.com/api/ext/v1, authenticated with an X-API-Key header.
  • cu_test_ sandbox keys validate and price for real but save nothing and charge nothing. cu_live_ keys are issued after KYC.
  • Rate limits: 60 requests per minute on sandbox and 300 per minute on live, per key, with X-RateLimit headers.
  • Signed webhooks for shipment, NDR, RTO, COD and weight-dispute events. OpenAPI 3.1 spec.

Why integrate by API

Copying orders from your store into a courier panel works for 10 orders a day. At 200 it is a full-time job, and every typo is a returned parcel. A shipping API lets your own system send the order, get back the AWB and label, and hear about every status change, so nobody types an address twice.

Integrating with one courier's API ties you to that courier. Integrating with Courier Uncle gives you the live couriers behind one contract: the same request shape, the same statuses and the same webhooks, whichever courier carries the parcel.

Endpoints

AreaWhat you can do
Pincode and serviceabilityCheck a pincode and which couriers serve a route.
RatesPrice a parcel on every serviceable courier, cheapest first.
ShipmentsBook, list, read, cancel and retry shipments. Booking is idempotent on order_id.
LabelsGet the label PDF in thermal_4x6, thermal_4x4, a4_4 or a4_2.
TrackingRead one shipment or bulk-track up to 100 IDs in one call.
NDRSend reattempt or RTO on a failed delivery.
ManifestsCreate, read, close (books pickup) and download the PDF.
Pickup addresses and couriersList and create pickup addresses; list available couriers.
Wallet and invoicesRead balance, wallet transactions and invoices.
COD and weight disputesList COD remittances; list weight disputes and accept or dispute them.

Full request and response schemas are in the OpenAPI 3.1 spec on the API docs page.

A first request

Every call sends your key in the X-API-Key header. A rate request is a POST to /rates/ with origin_pincode, destination_pincode, weight_kg, payment_mode (PREPAID or COD), and optionally cod_amount, order_value and length_cm, width_cm, height_cm. For example, a 0.5 kg prepaid parcel from 110001 (Delhi) to 560001 (Bengaluru). The response has one row per courier service, cheapest first. Booking a shipment is a POST to /shipments/; send shipment_type REVERSE to book a reverse pickup.

Start with a cu_test_ key. The sandbox runs full validation and real pricing and returns simulated CUTEST IDs, but it saves nothing and charges nothing. When you are ready, switch to the cu_live_ key issued after KYC. The panel also has an API playground for trying calls in the browser. Read the API docs for every field.

Rate limits

Key typeLimit
cu_test_ (sandbox)60 requests per minute, per key
cu_live_ (production)300 requests per minute, per key

Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Over the limit you get HTTP 429 with Retry-After.

Webhooks

Set a webhook URL and Courier Uncle posts an event when something changes. Each request is signed with HMAC-SHA256 in the X-CU-Signature header (sha256=<hex>), so you can verify it came from us before trusting it.

  • Shipment events: shipment.created, picked_up, in_transit, out_for_delivery, delivered, ndr, rto, cancelled.
  • Money events: cod.remitted and weight.dispute_raised.
  • Delivery: a 5 second timeout and one retry. Make your endpoint fast, return 2xx quickly, and poll the shipment endpoint as a backup.
  • Log: every webhook attempt shows in the webhook log in your panel.

What the API does not do

  • It does not book international shipments; ignore any international fields in the schema.
  • Webhooks are retried once, not many times, so do not rely on them as your only source of status.
  • There is no published npm package for the Node SDK yet. Call the REST endpoints directly.
  • There is no unauthenticated rate or pincode endpoint. Every call needs a key.
  • Document shipments are paused.

How to start

  1. 1

    Sign up free and create a cu_test_ sandbox key in the panel.

  2. 2

    Read the API docs and try a rates call in the API playground.

  3. 3

    Build booking, label and webhook handling against the sandbox.

  4. 4

    Complete KYC to get a cu_live_ key, recharge your wallet and switch keys.

Frequently asked questions

What is the base URL of the Courier Uncle API?

The base URL is https://app.courieruncle.com/api/ext/v1, and every request sends your key in the X-API-Key header.

Is there a sandbox for testing?

Yes. cu_test_ keys run full validation and real pricing and return simulated CUTEST IDs, but nothing is saved and nothing is charged.

What are the API rate limits?

Each key gets 60 requests per minute on sandbox and 300 per minute on live. Over the limit, the API returns HTTP 429 with a Retry-After header.

How do I verify a Courier Uncle webhook?

Each webhook is signed with HMAC-SHA256 and the signature is sent in the X-CU-Signature header as sha256=<hex>. Recompute it with your secret and compare.

How many times is a webhook retried?

A webhook has a 5 second timeout and is retried once. Poll the shipment endpoint as a backup for anything you must not miss.

Is there an SDK I can install?

Not yet. The Node SDK is not published on npm, so call the REST endpoints directly using the OpenAPI 3.1 spec.

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.