Bu API, kullanıcının webhook ID'si ile webhook sorgulama işlemini sağlar.
{{APP_URL}}/api/v1/webhooks/{webhook_id}GETapplication/jsonAPIKEY| Parametre Adı | Parametre Tipi | Zorunluluk | Açıklama |
|---|---|---|---|
webhook_id |
Integer | ZORUNLU | Webhook ID |
Aşağıda, API isteği için bir örnek HTTP raw request bulunmaktadır.
GET {{APP_URL}}/api/v1/webhooks/1
Content-Type: application/json
APIKEY: {{APIKEY}}
Başarılı bir istekte, API aşağıdaki gibi bir yanıt döndürecektir:
{
"status": true,
"message": null,
"data": {
"id": 1,
"description": "Webhook for customer ComToHome Admin",
"requestType": "POST",
"dataType": "JSON",
"endpoint": "https://c2hdev.requestcatcher.com/",
"data": null,
"subscribedEvent": "consignment.status.updated",
"securityType": "none",
"securityData": [],
"status": 1,
"customer": {
"id": 1
}
}
}
API isteği başarısız olursa, API aşağıdaki gibi bir hata yanıtı döndürecektir:
{
"status": false,
"errors": [
{
"message": "Webhook not found"
}
]
}