API

Membuat langganan webhook

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

Otorisasi

api-token + language + role

Parameter permintaan

branch_idintegerwajib

Contoh: 8412

Isi permintaan application/json

object
webhook_event_idintegerwajib

Contoh: 4

urlstringwajib

Contoh: https://partner.example.com/hooks/foodsoul

descriptionstringwajib

Contoh: Учётная система

Tanggapan

OK

object
statusstringwajib

Nilai:successerror

Contoh: success

dataobject
rowobject
settingsobject (WebhooksBranchSettings)
secretstringdapat bernilai null

null, sampai jaringan membuat secret

Contoh: 9f2c…

enabledbooleanwajib

Contoh: true

listarray of object
idintegerwajib

Contoh: 12

date_creationstring (DataTimeFormatSQL) wajib

Contoh: 2024-05-02 08:31:16

webhook_event_idintegerwajib

Contoh: 4

slugstringwajib

Kode event yang dikirimkan dalam body webhook

Contoh: order.created

translation_keystringwajib

Kunci terjemahan nama event

Contoh: webhooksSubscriptionsEvent.orderCreated

urlstringwajib

Contoh: https://partner.example.com/hooks/foodsoul

descriptionstringwajib

Contoh: Учётная система

enabledbooleanwajib

Contoh: true

blockedbooleanwajib

Langganan dinonaktifkan secara otomatis setelah serangkaian kesalahan

Contoh: false

count_errorsintegerwajib

Jumlah kegagalan pengiriman berturut-turut

Contoh: 0