POST api/bitrix24/Webhooks

Вебхук

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

WebhooksResponse
NameDescriptionTypeAdditional information
EventName

Наименование события из Битрикс24

string

None.

EventId

Идентификатор сущности, по которой произошло событие

string

None.

ApplicationToken

Токен исходящего вебхука из Битрикс24 (жёстко привязан к событию)

string

None.

MemberId

Уникальный идентификатор портала, с которого пришёл вебхук

string

None.

MemberDomain

Адрес портала, с которого пришёл вебхук

string

None.

ErrorCode

Код ошибки

integer

None.

Message

Сообщение об ошибке

string

None.

Response Formats

application/json, text/json

Sample:
{
  "EventName": "sample string 1",
  "EventId": "sample string 2",
  "ApplicationToken": "sample string 3",
  "MemberId": "sample string 4",
  "MemberDomain": "sample string 5",
  "ErrorCode": 6,
  "Message": "sample string 7"
}

application/xml, text/xml

Sample:
<WebhooksResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.Bitrix24Response">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">6</ErrorCode>
  <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 7</Message>
  <ApplicationToken>sample string 3</ApplicationToken>
  <EventId>sample string 2</EventId>
  <EventName>sample string 1</EventName>
  <MemberDomain>sample string 5</MemberDomain>
  <MemberId>sample string 4</MemberId>
</WebhooksResponse>