Set Webhook API

This api can be used by merchant to set webhook urls at our end

Merchant can set webhooks using merchant dashboard too. Please visit payu site for the same. If you wish to set webhook url using apis, please continue reading this page.

Request Header Params

Pro Tip: payoutMerchantId is different from payuMoneyMerchant Id, please use the correct one for seamless experience

Request Params

Do not forget to whitelist payu for a server call to your webhook(api)

Webhook api you create should be a POST api(do not use GET)

Example

Content-Type : application/json

Method : Post

Sample Request :

[
  {
    "webhook" :"transfer_success",
     "values": {
                  "url":"https://test.com/webhook/payment",
                  "authorization":"asjafya56%^eyy63547ysrt4"
               }
   }
]

Response :

{
 "status": 0,
 "msg": "Webhook saved successfully",
 "code": null,
 "data": null
 }

Last updated