Update Webhook
Update a webhook's URL or subscribed events.
Endpoint
PATCH /v1/webhooks/:idAuthentication
Header
Value
Path parameters
Parameter
Type
Description
Request body
Field
Type
Required
Description
Example request
curl -X PATCH https://ramp-api.ivorypay.io/api/v1/webhooks/wh-uuid-1 \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://yourapp.com/webhooks/v2/ivorypay",
"events": [
"onramp.success",
"onramp.failed",
"offramp.success",
"offramp.failed",
"deposit.received",
"settlement.success",
"settlement.failed"
]
}'const response = await fetch("https://ramp-api.ivorypay.io/api/v1/webhooks/wh-uuid-1", {
method: "PATCH",
headers: {
"x-api-key": "your_api_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
url: "https://yourapp.com/webhooks/v2/ivorypay",
events: [
"onramp.success",
"onramp.failed",
"offramp.success",
"offramp.failed",
"deposit.received",
"settlement.success",
"settlement.failed",
],
}),
});
const data = await response.json();
console.log(data);Example response
Last updated