Описание метода
Осуществляется с помощью POST-запроса. Название операции настраивается в системе Майндбокс. Подробней про вызов метода можно прочитать здесь.
POST https://api.mindbox.ru/v3/operations/sync?endpointId={уникальный идентификатор сайта/мобильного приложения/и т.п.}&operation={название операции}&deviceUUID={уникальный идентификатор устройства}
Accept: application/xml
Content-Type: application/xml
Authorization: SecretKey {Секретный ключ, обязательность уточнить у менеджера}
<operation>
<customer>
<ids>
<webSiteUserId>{Идентификатор клиента}</webSiteUserId>
</ids>
<email>{Емэйл клиента}</email>
<mobilePhone>{Мобильный телефон}</mobilePhone>
</customer>
<authentificationCode>{Секретный код}</authentificationCode>
</operation>
Пример операции
POST https://api.mindbox.ru/v3/operations/async?endpointId=MindboxRu&operation=AuthenticateBySecretCode
Accept: application/xml
Content-Type: application/xml
Authorization: SecretKey D061p764m85bklq
<operation>
<customer>
<mobilePhone>79001234567</mobilePhone>
</customer>
<authentificationCode>1234</authentificationCode>
</operation>
Ответ
<result>
<status>Success</status>
</result>
Last modified on