Update a webhook endpoint
curl --request PATCH \
--url https://merchant.zahlo.eu/api/v1/webhook-endpoints/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"url": "https://store.example/api/zahlo/events",
"events": [
"payment.confirmed",
"refund.succeeded"
]
}
'import requests
url = "https://merchant.zahlo.eu/api/v1/webhook-endpoints/{id}"
payload = {
"url": "https://store.example/api/zahlo/events",
"events": ["payment.confirmed", "refund.succeeded"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://store.example/api/zahlo/events',
events: ['payment.confirmed', 'refund.succeeded']
})
};
fetch('https://merchant.zahlo.eu/api/v1/webhook-endpoints/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "we_demo_1001",
"url": "https://store.example/api/zahlo/events",
"enabled": true,
"events": [
"payment.confirmed"
]
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}Webhooks
Update a webhook endpoint
Update a webhook endpoint. Use the response status and request ID to decide whether to retry, reconcile, or ask the customer for action.
PATCH
/
api
/
v1
/
webhook-endpoints
/
{id}
Update a webhook endpoint
curl --request PATCH \
--url https://merchant.zahlo.eu/api/v1/webhook-endpoints/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"url": "https://store.example/api/zahlo/events",
"events": [
"payment.confirmed",
"refund.succeeded"
]
}
'import requests
url = "https://merchant.zahlo.eu/api/v1/webhook-endpoints/{id}"
payload = {
"url": "https://store.example/api/zahlo/events",
"events": ["payment.confirmed", "refund.succeeded"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://store.example/api/zahlo/events',
events: ['payment.confirmed', 'refund.succeeded']
})
};
fetch('https://merchant.zahlo.eu/api/v1/webhook-endpoints/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "we_demo_1001",
"url": "https://store.example/api/zahlo/events",
"enabled": true,
"events": [
"payment.confirmed"
]
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}{
"error": "invalid_request",
"message": "amountMinor must be positive",
"requestId": "req_demo_1001"
}Authorizations
Server-side merchant API key. Never expose it in browser code.
Path Parameters
The resource identifier returned by the merchant API.