CernoQuantBlogDhan Webhook Setup: Postback for Order & Trade Updates (2026)
Broker Guides7 min13 July 2026

Dhan Webhook Setup: Postback for Order & Trade Updates (2026)

How Dhan webhooks (Postback) work — real-time order updates via an HTTP POST to your URL, how to set the Postback URL, and how it differs from Dhan Live Order Update.

By CernoQuant Team

A Dhan webhook — called Postbackin Dhan's docs — pushes a real-time HTTP notification to a URL you control every time one of your orders changes state. It's how apps and journals know a trade happened within secondsinstead of polling. This guide covers what it is, how to set it up, and how it differs from Dhan's separate Live Order Update stream. (Verified against Dhan's API docs, 13 July 2026.)

What is a Dhan webhook (Postback)?

When an order's status changes, Dhan sends an HTTP POST request with a JSON payload to your configured Postback URL. You receive updates for transitions such as TRANSIT, PENDING, TRADED, REJECTED, CANCELLED and EXPIRED, plus modifications and partial fills. Official reference: Dhan Postback (v2) docs.

How to set up the Postback URL

  1. 1

    Have an endpoint ready

    You need a public HTTPS URL that can receive a POST request — your own server, a serverless function, or the webhook URL your journal/app gives you.

  2. 2

    Generate your access token on web.dhan.co

    When you create the Dhan API access token, there is a "Postback URL" field. Paste your endpoint there.

  3. 3

    Dhan starts posting order updates

    From then on, every order-status change fires a JSON POST to that URL in near real time.

  4. 4

    Validate the payload

    Read the order status, order ID, exchange segment, product/order type, quantity, price and timestamps from the JSON to update your own records.

Postback vs Live Order Update — don't confuse them

Dhan exposes two different real-time channels. They solve similar problems but work differently:

  • Postback (webhook) — Dhan POSTs a JSON payload to your URL. Server-to-server, no persistent connection to maintain. Best when something server-side needs to react to order events.
  • Live Order Update — a WebSocket feed you connect to and hold open. Best for a live client that's already streaming. See the Order Update docs.

What the payload contains

A typical Postback JSON includes the order status, order ID, transaction type (BUY/SELL), exchange segment, product type, order type, validity, quantity, price, timestamps, and — for failures — error codes and descriptions. That's everything a journal needs to record a fill accurately without you exporting anything.

How CernoQuant uses Dhan Postback

Enable the CernoQuant webhook URL when you generate your Dhan token and closed trades appear in your journal within seconds — no exports, no manual entry. Without the webhook, CernoQuant still syncs on its next scheduled read-only pull; the webhook just makes it instant. Every synced trade lands with full NSE F&O charge breakdown, Greeks at entry, and behavioural pattern detection.

Frequently Asked Questions

What is a Dhan webhook called?

In Dhan’s documentation the webhook is called "Postback". It sends an HTTP POST with a JSON payload to a URL you configure.

Where do I set my Dhan Postback URL?

In the "Postback URL" field shown while generating your Dhan API access token on web.dhan.co.

Is the Dhan webhook different from Live Order Update?

Yes. Postback is Dhan POSTing to your URL (server-to-server). Live Order Update is a WebSocket stream you connect to. They are separate features.

Do I need a webhook to use CernoQuant with Dhan?

No. The webhook makes trades appear within seconds. Without it, CernoQuant syncs on its next scheduled read-only pull.

Real-time Dhan journaling with Postback

Enable one webhook URL — trades appear in seconds, fully analysed.

Connect Dhan Free →

Technical details verified against Dhan's public API documentation on 13 July 2026 and may change — always check the current Dhan docs. CernoQuant is a trading journal and analytics platform, not a SEBI-registered investment advisor. Trading decisions are your sole responsibility.

Start journaling your trades today

India's smartest AI trading journal. Auto-sync Zerodha, Dhan, Angel One, Fyers & Upstox. Free to start.

Create free account

Related Articles

Essential cookies only. Login, session and security. No tracking, ever.