Запит на:
https://my.wepster.com/api/v2/:business_id/setWebhook
Додати та вкюбчити вебхук :
{
"webhook_url": "[<http://localhost:3000/api/>](<http://localhost:3000/api/>)",
"state": "true",
"after_form":"true",
"after_new":"true",
"webhook_first_connect":"true"
}
Оновити :
{
"webhook_url": "[<http://localhost:3000/api/v2>](<http://localhost:3000/api/v2>)",
"state": "true"
}
Видалити : якщо webhook_url відсутній вебхук видалиться:
{ "webhook_url": "", "state": "true", }
Відповідь на додавання
{
"status": "success",
"type": "createBusinessWebhook",
"business_id": "Yp2JLn2nM2f9RcREE"
}
Відповідь на видалення
{
"status": "success",
"type": "deleteBusinessWebhook",
"business_id": "Yp2JLn2nDjk21djdD"
}