Webhook aboneliği oluştur
POST/api/crm/v2/webhooks_subscriptions.addv2
operationId: webhooksSubscriptions.add
Yetkilendirme
api-token + language + role
Sorgu parametreleri
branch_idintegerzorunlu
Örnek: 8412
İstek gövdesi application/json
object
webhook_event_idintegerzorunlu
Örnek: 4
urlstringzorunlu
Örnek: https://partner.example.com/hooks/foodsoul
descriptionstringzorunlu
Örnek: Учётная система
Yanıtlar
object
statusstringzorunlu
Değerler:successerror
Örnek: success
dataobject
rowobject
settingsobject (WebhooksBranchSettings)
secretstringnull olabilir
null, ağ henüz bir secret oluşturmadıysa
Örnek: 9f2c…
enabledbooleanzorunlu
Örnek: true
listarray of object
idintegerzorunlu
Örnek: 12
date_creationstring (DataTimeFormatSQL) zorunlu
Örnek: 2024-05-02 08:31:16
webhook_event_idintegerzorunlu
Örnek: 4
slugstringzorunlu
Webhook gövdesinde iletilen olay kodu
Örnek: order.created
translation_keystringzorunlu
Olay adının çeviri anahtarı
Örnek: webhooksSubscriptionsEvent.orderCreated
urlstringzorunlu
Örnek: https://partner.example.com/hooks/foodsoul
descriptionstringzorunlu
Örnek: Учётная система
enabledbooleanzorunlu
Örnek: true
blockedbooleanzorunlu
Abonelik, bir dizi hatadan sonra otomatik olarak devre dışı bırakıldı
Örnek: false
count_errorsintegerzorunlu
Arka arkaya başarısız gönderim sayısı
Örnek: 0