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.
Authorization | Bearer {{access_token}} |
---|---|
Content-Type | application/x-www-form-urlencoded |
Request parameters
Parameter | Description |
---|---|
webhook_urlmandatory | This parameter must contain the Webhooks URL to which the status must be notified. |
reseller_uuidmandatory | 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"
}