Update Webhook
curl https://finix.sandbox-payments-api.com/webhooks/WHED2RM5dbNKcHYc3ALxhbW \
-H "Content-Type: application/vnd.json+api" \
-u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e \
-X PUT \
-d '
{
"url" : "https://eohzjuj2prziycz.m.pipedream.net",
"enabled" : false
}
'
Example Response:
{
"id" : "WHED2RM5dbNKcHYc3ALxhbW",
"url" : "https://eohzjuj2prziycz.m.pipedream.net",
"enabled" : false,
"application" : "APgPDQrLD52TYvqazjHJJchM",
"created_at" : "2022-01-27T07:36:50.79Z",
"updated_at" : "2022-01-27T07:36:51.30Z",
"_links" : {
"self" : {
"href" : "https://finix.sandbox-payments-api.com/webhooks/WHED2RM5dbNKcHYc3ALxhbW"
},
"application" : {
"href" : "https://finix.sandbox-payments-api.com/applications/APgPDQrLD52TYvqazjHJJchM"
}
}
}
HTTP Request
PUT https://finix.sandbox-payments-api.com/webhooks/:WEBHOOK_ID
Request Arguments
Field | Type | Description |
---|---|---|
enabled |
boolean, optional | Set to false to disable Webhooks . Default value when created is true. |
url |
string, required | The HTTP or HTTPS url where the callbacks will be sent via POST request (max 120 characters). To update url submit a request with the new url. |