By Password

Method Description

Invoked with a POST request. Operation name is set up via Maestra framework. Details of method invocation can be found here.

POST https://api.maestra.io/v3/operations/sync?endpointId={unique ID of site/mobile app/etc.}&operation={operation name}&deviceUUID={unique device ID}

Accept: application/xml
Content-Type: application/xml
Authorization: SecretKey {Secret Key, check with the manager if it's mandatory}

<operation>
  <customer>
    <ids>
      <webSiteUserId>{customer ID}</webSiteUserId>
    </ids>
    <email>{customer email}</email>
    <mobilePhone>{mobile number}</mobilePhone>
    <password>{password}</password>
  </customer>
</operation>

Sample Operation

POST https://api.maestra.io/v3/operations/sync?endpointId=Maestra&operation=AuthenticateByPassword

Accept: application/xml
Content-Type: application/xml
Authorization: SecretKey 2a4wVO

<operation>
  <customer>
    <email>[email protected]</email>
    <password>Qwerty</password>
  </customer>
</operation>
POST https://api.maestra.io/v3/operations/sync?endpointId=Mindbox&operation=AuthenticateByPassword

Accept: application/xml
Content-Type: application/xml
Authorization: SecretKey 2a4wVO

<operation>
  <customer>
    <mobilePhone>70001234567</mobilePhone>
    <password>Qwerty</password>
  </customer>
</operation>

Response

<result>
  <status>Success</status>
  <customer>
    <processingStatus>AuthenticationSucceeded</processingStatus>
  </customer>
</result>
<result>
  <status>Success</status>
  <customer>
    <processingStatus>AuthenticationFailed</processingStatus>
  </customer>
</result>
<result>
  <status>Success</status>
  <customer>
    <processingStatus>NotFound</processingStatus>
  </customer>
</result>