How to integrate webhook for a User based app?

Can anyone who has successfully integrated webhooks for order updates help me understand the process?

Based on the documentation here I have followed the below steps but I am unable to get the webhook response - https://api-docs.fyers.in/docs/index.html#tag/Postback-(Webhooks)

I have used a secure ngrok URL to test the webhook response. Also, any info about how to use the secret would be helpful.

  • Authenticate with Fyres via TOTP
  • Activate the app on the account by accepting the app permission.
  • I placed an order via the Fyers app for a rejected status, unable to get the data via the webhook.

@communications_team please respond

Hi Abbas,
currently webhook url’s once updated are added to the url pool after a day.
you can write you code and use postman to hit your webhook url with a post request and request body as given below to test your code logic and make sure it is working fine(you can have a look at orderbook documentation to know meaning and significance of each value Note: Orderbook has a few extra values which are not part of webhook data )
As it make sure your web server is able to receive webhooks on time of order placement as multiple failure to receive webhooks from our side may leads to blacklisting of your webhook URL for the day(you wont receive further webhooks for the day).

webhook secret is currently not having a use.

{
  "orderDateTime": "26-May-2023 09:01:42",
  "id": "23052600000891",
  "exchOrdId": "",
  "side": -1,
  "segment": 12,
  "instrument": 16,
  "productType": "INTRADAY",
  "status": 4,
  "qty": 1,
  "remainingQuantity": 1,
  "filledQty": 0,
  "limitPrice": 102.2,
  "stopPrice": 0,
  "type": 1,
  "discloseQty": 0,
  "dqQtyRem": 0,
  "orderValidity": "DAY",
  "source": "W",
  "fyToken": "10122306301152",
  "offlineOrder": false,
  "message": "New Ack",
  "orderNumStatus": "23052600000891:4",
  "tradedPrice": 0,
  "exchange": 10,
  "pan": "",
  "clientId": "xxxx",
  "symbol": "NSE:GBPINR23630FUT"
}