Register Webhooks API to Get Real-Time Merchant Status

Partners need to register their webhooks using the Register Webhooks API with hub token and webhook URL.

Environment

Request header

📘

Note:

The access token with the scope as refer_merchant is required on the header. For more information on getting the access token, refer to Get Token API.

AuthorizationBearer {{access_token}}
Content-Typeapplication/x-www-form-urlencoded

Request parameters

ParameterDescription
webhook_url
mandatory
This parameter must contain the Webhooks URL to which the status must be notified.
reseller_uuid
mandatory
This parameter must contain the reseller UUID.

Sample request

curl --location --request POST 'https://uat-partner.payu.in/api/v1/partners/register_webhook' \
--header 'Authorization: Bearer 169e576ee0794085e48f0de683bc39563c43c9493f23867e1c53481bdaa9cada' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'webhook_url=https://www.payu.in' \
--data-urlencode 'reseller_uuid=83fe-eb64-021844d8-9397-26535b1bf0c2'

Sample response

{
    "message": "Webhook Successfully Registered"
}