API

Vebhuk abunəliyi yarat

POST/api/crm/v2/webhooks_subscriptions.addv2
operationId: webhooksSubscriptions.add

Avtorizasiya

api-token + language + role

Sorğu parametrləri

branch_idintegermütləq

Nümunə: 8412

Sorğu gövdəsi application/json

object
webhook_event_idintegermütləq

Nümunə: 4

urlstringmütləq

Nümunə: https://partner.example.com/hooks/foodsoul

descriptionstringmütləq

Nümunə: Учётная система

Cavablar

OK

object
statusstringmütləq

Dəyərlər:successerror

Nümunə: success

dataobject
rowobject
settingsobject (WebhooksBranchSettings)
secretstringnull ola bilər

null, şəbəkə hələ secret yaratmayıb

Nümunə: 9f2c…

enabledbooleanmütləq

Nümunə: true

listarray of object
idintegermütləq

Nümunə: 12

date_creationstring (DataTimeFormatSQL) mütləq

Nümunə: 2024-05-02 08:31:16

webhook_event_idintegermütləq

Nümunə: 4

slugstringmütləq

Hadisə kodu, webhook-un gövdəsində ötürülür

Nümunə: order.created

translation_keystringmütləq

Hadisənin adının tərcümə açarı

Nümunə: webhooksSubscriptionsEvent.orderCreated

urlstringmütləq

Nümunə: https://partner.example.com/hooks/foodsoul

descriptionstringmütləq

Nümunə: Учётная система

enabledbooleanmütləq

Nümunə: true

blockedbooleanmütləq

Abunə bir sıra xətalardan sonra avtomatik olaraq deaktiv edilir

Nümunə: false

count_errorsintegermütləq

Ardıcıl uğursuz göndərişlərin sayı

Nümunə: 0