How to retrieve Abandoned cart details using Magento API
Hello All,
I am writing an custom REST API in the magento to retrieve the abandoned cart details. I have used the below code to retrieve the abandoned cart details. But it is not working. Can anyone tell me what is the issue with the code.
$collection = Mage::getResourceModel('reports/quote_collection');
$collection->prepareForAbandonedReport(array(1));
$collection->load();
I am sure, the issue is not with REST API, because i have checked with products counts it was working fine. If I change the code to above it was showing blank.
Since its custom API I have written the code in V1.php
Appreciate your help.