Getting Customer Product List
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/async operation}?endpoint={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>
</customer>
</operation>
Sample Operation
POST https://api.maestra.io/v3/operations/sync?endpoint=Maestra&operation=GetSegments
Accept: application/xml
Content-Type: application/xml
Authorization: SecretKey VRY294
<operation>
<customer>
<ids>
<webSiteUserId>5384275</webSiteUserId>
</ids>
</customer>
</operation>
Response
<result>
<status>Success</status>
<productList>
<productListItem>
<product>
<ids>
<webSiteId>{website product ID}</webSiteId>
</ids>
<name>{product name}</name>
<url>{product URL}</url>
<pictureUrl>{product image URL}</pictureUrl>
<customFields>
<custom field>{custom field value}</custom field>
</customFields>
</product>
<count>{product cart size}</count>
<price>{product price}</price>
</productListItem>
</productList>
</result>
A missing ‘segment’ means that the customer is not in segmentation.
Updated about 1 month ago