İçeriğe geç

Webhook Detayı Getir

GET /v1/webhooks/0/0

Spesifik bir webhook detayını getirir.

ParametreKonumTipAçıklamaVarsayılanÖrnek
Authorization * headerstringBearer Yetkilendirme Tokeni (Örn: Bearer eyJhb...)-Bearer <TOKEN>
USER_ID * pathstringKullanıcı ID'si--
webhookId * pathstringWebhook ID'si--
fetch('https://api.kargomucuz.com/v1/webhooks/0/0', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <YOUR_TOKEN>'
}
})
.then(response => response.json())
.then(data => console.log(data));
200: Başarılı kimlik doğrulaması sonrası dönen yanıt.
{
"status": true,
"message": "Kullanıcı webhook'u getirildi.",
"payload": {
"data": {
"others": {
"headers": {
"contentType": "application/json"
},
"extra": {
"hello": "hello boys"
},
"updated": "2025-08-05T07:39:59.994Z",
"created": "2025-08-05T07:39:59.994Z"
},
"resellerId": null,
"_id": "6891b54f55ef60a28581c899",
"events": [
"tract_updated"
],
"uri": "http://localhost:4000/v1/webhooks/test-post-method",
"secret": "secretim12345",
"active": true,
"__v": 0
},
"totalCount": 1
},
"code": 500
}
200 - Başarılı kimlik doğrulamasına rağmen ID parametresi eksik gönderildiğinde dönen hata yanıtı.: Başarılı kimlik doğrulamasına rağmen ID parametresi eksik gönderildiğinde dönen hata yanıtı.
{
"status": false,
"message": "Id parametresi geçersiz.",
"code": 500
}