put https://api.sandbox.payments.stonex.com/api/v/webhook
This endpoint allow you to update an existing webhook URL using the existing webhook id. This is useful if you want to change the URL to which the existing notifications should be sent.
Request
You will need to provide an exiting Webhook id in the request alongwith a new url.
Example Request
{
"id": "678f866e853c889d0d449dbd",
"url": "https://webhook.site/b3208726-ceca-4cb4-908e-23ca77774ed5"
}
Response
The response will confirm the update to the existing webhook url.
Example Response
{
"clientId": "UATSFL CONNECT",
"isActive": true,
"webhookEventType": "PaymentStatusChanged",
"url": "https://webhook.site/b3208726-ceca-4cb4-908e-23ca77774ed5",
"id": "678f866e853c889d0d449dbd",
"createdDate": "0001-01-01T00:00:00",
"modifiedDate": "2025-01-21T13:10:31.8091835Z",
"createdBy": "",
"modifiedBy": "",
"optimisticVersion": 2
}
You can also call the View Webhook by ID endpoint to check if the webhook url has been updated.