Webhook Sorgu

Webhook Sorgu

Bu API, kullanıcının webhook ID'si ile webhook sorgulama işlemini sağlar.

Endpoint Bilgileri

  • URL: {{APP_URL}}/api/v1/webhooks/{webhook_id}
  • HTTP Metodu: GET
  • İçerik Türü: application/json
  • Kimlik Doğrulama Tipi: APIKEY

İstek Parametreleri

URL Parametreleri

Parametre Adı Parametre Tipi Zorunluluk Açıklama
webhook_id Integer ZORUNLU Webhook ID

Örnek Kullanım

API İsteği

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}}

API Cevabı

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
        }
    }
}

Hata Cevapları

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"
        }
    ]
}