Skip to Content
API ReferenceTradingWebhooks / Postbacks

Webhooks / Postbacks

The Postback API sends a POST request with a JSON payload to the registered postback_url of your app when an order’s status changes. This enables you to get orders updates reliably, irrespective of when they happen (Pending, Cancel, Rejected, Traded).

USE CASE

Receive every order status change on your server as it happens, instead of polling Get Orders.

Things to know

  • FYERS sends a POST request with a JSON payload to the postback URL registered for your app.
  • Set up the webhook for the app, activate the app by logging in, then read the raw POST body on your server.
  • Your server should answer with HTTP status 200. Failed posts can get the URL blacklisted for 30 minutes.

In this section

EndpointMethodDescription
Create Webhook—This API allows you to register a webhook URL and a secret to receive order updates for your app.
Activate App—This API allows you to activate your app so that order updates start reaching your webhook URL.
Webhook Response—This API allows you to receive order updates as a JSON payload on your webhook URL.
Blacklisting—This API allows you to find out when a webhook URL is blacklisted and for how long.
Last updated on