xml
Method Description
Invoked with a POST request. Operation name and input fields can be set up via Maestra framework. Details of method invocation can be found here.
POST https://api.maestra.io/v3/operations/{synch/asynch operation}?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}
X-Customer-IP: {Customer device IP, check with the manager if it’s mandatory}
<operation>
<customer>
<ids>
<webSiteUserId>{customer ID}</webSiteUserId>
</ids>
<email>{customer email}</email>
<mobilePhone>{mobile phone}</mobilePhone>
</customer>
<productCategory>
<ids>
<webSiteId>{product category ID}</webSiteId>
</ids>
</productCategory>
</operation>
Sample Operations
POST https://api.maestra.io/v3/operations/async?endpointId=Maestra&operation=viewCategory
Accept: application/xml
Content-Type: application/xml
<operation>
<customer>
<ids>
<bitrixId>346257</bitrixId>
</ids>
</customer>
<productCategory>
<ids>
<webSiteId>504</webSiteId>
</ids>
</productCategory>
</operation>
POST https://api.maestra.io/v3/operations/async?endpointId=Maestra&operation=viewCategory&deviceUUID=ab2d192a-9992-4dcd-987d-927715fabf94
Accept: application/xml
Content-Type: application/xml
X-Customer-IP: 193.23.43.1
<operation>
</customer>
<productCategory>
<ids>
<webSiteId>504</webSiteId>
</ids>
</productCategory>
</operation>
Updated about 2 months ago