Update a webhook
curl --request PUT \
--url https://api.synctera.com/v1/webhooks/{webhook_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled_events": [],
"is_enabled": true,
"url": "<string>",
"description": "<string>",
"metadata": {},
"tenant": "abcdef_ghijkl"
}
'import requests
url = "https://api.synctera.com/v1/webhooks/{webhook_id}"
payload = {
"enabled_events": [],
"is_enabled": True,
"url": "<string>",
"description": "<string>",
"metadata": {},
"tenant": "abcdef_ghijkl"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
enabled_events: [],
is_enabled: true,
url: '<string>',
description: '<string>',
metadata: {},
tenant: 'abcdef_ghijkl'
})
};
fetch('https://api.synctera.com/v1/webhooks/{webhook_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.synctera.com/v1/webhooks/{webhook_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enabled_events' => [
],
'is_enabled' => true,
'url' => '<string>',
'description' => '<string>',
'metadata' => [
],
'tenant' => 'abcdef_ghijkl'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.synctera.com/v1/webhooks/{webhook_id}"
payload := strings.NewReader("{\n \"enabled_events\": [],\n \"is_enabled\": true,\n \"url\": \"<string>\",\n \"description\": \"<string>\",\n \"metadata\": {},\n \"tenant\": \"abcdef_ghijkl\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.synctera.com/v1/webhooks/{webhook_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled_events\": [],\n \"is_enabled\": true,\n \"url\": \"<string>\",\n \"description\": \"<string>\",\n \"metadata\": {},\n \"tenant\": \"abcdef_ghijkl\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.synctera.com/v1/webhooks/{webhook_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled_events\": [],\n \"is_enabled\": true,\n \"url\": \"<string>\",\n \"description\": \"<string>\",\n \"metadata\": {},\n \"tenant\": \"abcdef_ghijkl\"\n}"
response = http.request(request)
puts response.read_body{
"enabled_events": [
"ADVERSE_ACTION.*"
],
"is_enabled": true,
"url": "<string>",
"creation_time": "2023-11-07T05:31:56Z",
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_updated": "2023-11-07T05:31:56Z",
"last_updated_time": "2023-11-07T05:31:56Z",
"metadata": {},
"tenant": "abcdef_ghijkl"
}{
"code": "BAD_REQUEST_BODY",
"detail": "Missing required fields: first_name, dob",
"status": 400
}{
"code": "BAD_REQUEST_BODY",
"detail": "Missing required fields: first_name, dob",
"status": 400
}{
"code": "BAD_REQUEST_BODY",
"detail": "Missing required fields: first_name, dob",
"status": 400
}Webhooks
Update a webhook
Update a webhook
PUT
/
webhooks
/
{webhook_id}
Update a webhook
curl --request PUT \
--url https://api.synctera.com/v1/webhooks/{webhook_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled_events": [],
"is_enabled": true,
"url": "<string>",
"description": "<string>",
"metadata": {},
"tenant": "abcdef_ghijkl"
}
'import requests
url = "https://api.synctera.com/v1/webhooks/{webhook_id}"
payload = {
"enabled_events": [],
"is_enabled": True,
"url": "<string>",
"description": "<string>",
"metadata": {},
"tenant": "abcdef_ghijkl"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
enabled_events: [],
is_enabled: true,
url: '<string>',
description: '<string>',
metadata: {},
tenant: 'abcdef_ghijkl'
})
};
fetch('https://api.synctera.com/v1/webhooks/{webhook_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.synctera.com/v1/webhooks/{webhook_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enabled_events' => [
],
'is_enabled' => true,
'url' => '<string>',
'description' => '<string>',
'metadata' => [
],
'tenant' => 'abcdef_ghijkl'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.synctera.com/v1/webhooks/{webhook_id}"
payload := strings.NewReader("{\n \"enabled_events\": [],\n \"is_enabled\": true,\n \"url\": \"<string>\",\n \"description\": \"<string>\",\n \"metadata\": {},\n \"tenant\": \"abcdef_ghijkl\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.synctera.com/v1/webhooks/{webhook_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled_events\": [],\n \"is_enabled\": true,\n \"url\": \"<string>\",\n \"description\": \"<string>\",\n \"metadata\": {},\n \"tenant\": \"abcdef_ghijkl\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.synctera.com/v1/webhooks/{webhook_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled_events\": [],\n \"is_enabled\": true,\n \"url\": \"<string>\",\n \"description\": \"<string>\",\n \"metadata\": {},\n \"tenant\": \"abcdef_ghijkl\"\n}"
response = http.request(request)
puts response.read_body{
"enabled_events": [
"ADVERSE_ACTION.*"
],
"is_enabled": true,
"url": "<string>",
"creation_time": "2023-11-07T05:31:56Z",
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_updated": "2023-11-07T05:31:56Z",
"last_updated_time": "2023-11-07T05:31:56Z",
"metadata": {},
"tenant": "abcdef_ghijkl"
}{
"code": "BAD_REQUEST_BODY",
"detail": "Missing required fields: first_name, dob",
"status": 400
}{
"code": "BAD_REQUEST_BODY",
"detail": "Missing required fields: first_name, dob",
"status": 400
}{
"code": "BAD_REQUEST_BODY",
"detail": "Missing required fields: first_name, dob",
"status": 400
}Authorizations
Path Parameters
Body
application/json
Webhook to update
Webhook object
A list of the events that will trigger the webhook. Subscribing to a wildcard event, e.g. ACCOUNT.*, will send all webhooks for all events that match that pattern. Note that this can include new event types added after the subscription was created.
Available options:
ADVERSE_ACTION.*, APPLICATION.*, CARD.*, CRR.*, DISPUTE.*, DOCUMENT_VERIFICATION_SESSION.*, EDD.*, EXTERNAL_CARD.*, EXTERNAL_CARD_TRANSFER.*, INTERNAL_TRANSFER.*, RESOURCE_MAPPING.*, SPEND_CONTROL.*, STATEMENT.*, TRANSACTION.* Response
Created webhook
Webhook object
A list of the events that will trigger the webhook. Subscribing to a wildcard event, e.g. ACCOUNT.*, will send all webhooks for all events that match that pattern. Note that this can include new event types added after the subscription was created.
Available options:
ADVERSE_ACTION.*, APPLICATION.*, CARD.*, CRR.*, DISPUTE.*, DOCUMENT_VERIFICATION_SESSION.*, EDD.*, EXTERNAL_CARD.*, EXTERNAL_CARD_TRANSFER.*, INTERNAL_TRANSFER.*, RESOURCE_MAPPING.*, SPEND_CONTROL.*, STATEMENT.*, TRANSACTION.* Was this page helpful?

