Postback (Webhooks) API is now live

Kailash
Postback API for getting order updates (completion, rejection, cancellation) as they happen, is now live -- https://kite.trade/docs/connect/v1/#postback-webhooks
  • ishwarm
    Hi Kailash,

    Thanks for providing the Postback API.

    I implemented it and it's working fine, except for the values that I am getting for my Order.

    The "status" field is giving the correct value - for e.g. "Rejected" but the "status_message" field is not giving the same value as what I get from the Order details API (like for e.g. "RMS:Margin Exceeds, Required:0, Available:0"). Instead, the "status_message" is giving the same value as the "status" field which is not very helpful to the user.

    Could you please look into this?

    Thanks & Regards,
    Ishwar.
  • Vivek
    @ishwarm Its supposed to send full error message, will let you know when its fixed.
  • ishwarm
    ishwarm edited May 2016
    Thanks @vivek . Also, was not getting the value for "transaction_type" in this same API. Please look into this too.
  • KUL
    @ishwarm can you provide any reference , for implementing this postback API .
  • ishwarm
    ishwarm edited June 2016
    Hi @KUL , I used the Google AppEngine for my Backend Server which receives the Postback Calls. See https://cloud.google.com/appengine/ . And then used Google Cloud Messaging to send these notifications from the AppEngine to my mobile (Refer: https://developers.google.com/cloud-messaging/ ). With the new version of Google Cloud Messaging called "Firebase Cloud Messaging", the implementation has become easier it seems, though I haven't tried it out.
  • KUL
    ok thank you @ishwarm
  • pybull
    Is there a plan to support the order postback through websockets itself? That would save the trouble of registering for a web hosting account.
  • Kailash
    @pybull In fact, this is something we're working on right now. It could be 2-3 weeks before this is in production though.
  • pybull
    @Kailash, thats great news. My free AWS account is expiring in a few months. If this is done, then I can run it from my local machine itself, without the need to poll the order status.

    On a side note, I had sent an email for enquiring about the multi user support. Though right now, I am not considering a startup, I was planning to extend the service to a couple of other accounts. I haven't got any response on that.
Sign In or Register to comment.