Описание метода
Осуществляется с помощью 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>
<password>{Пароль}</password>
</customer>
</operation>
Пример операции
POST https://api.mindbox.ru/v3/operations/sync?endpointId=MindboxRu&operation=AuthenticateByPassword
Accept: application/xml
Content-Type: application/xml
Authorization: SecretKey D061p764m85bklq
<operation>
<customer>
<email>test@mail.ru</email>
<password>Qwerty</password>
</customer>
</operation>
Ответ
<result>
<status>Success</status>
<customer>
<processingStatus>AuthenticationSucceeded</processingStatus>
</customer>
</result>
Last modified on