Retrieve a webhook endpoint
curl --request GET \
--url https://merchant.zahlo.eu/api/v1/webhook-endpoints/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://merchant.zahlo.eu/api/v1/webhook-endpoints/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
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
Retrieve a webhook endpoint
Retrieve a webhook endpoint. Use the response status and request ID to decide whether to retry, reconcile, or ask the customer for action.
GET
/
api
/
v1
/
webhook-endpoints
/
{id}
Retrieve a webhook endpoint
curl --request GET \
--url https://merchant.zahlo.eu/api/v1/webhook-endpoints/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://merchant.zahlo.eu/api/v1/webhook-endpoints/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
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"
}