cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to filter orders in SOAP v1/v2 request

Unable to filter orders in SOAP v1/v2 request

Hi,

 

I have a script that gets all orders updated after a set timestamp. Recently it has stopped filtering the results, and instead returns all orders in the system. I've tried both SOAP v1 and v2, but the same thing happens.

 

How can I start to debug this? What could cause the problem?

 

Request (v1):

POST https://[mydomain]/index.php/api/index/index/

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body>
<call xmlns="urn:Magento">
<sessionId>[sessionid]</sessionId>
<resourcePath>order.list</resourcePath>
<args>
<item>
<key>updated_at</key>
<value>
<item>
<key>from</key>
<value>2016-05-31 00:00:00</value>
</item>
</value>
</item>
</args>
</call>
</Body>
</Envelope>


Request (v2):

POST https://[mydomain]/index.php/api/v2_soap/index/

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body>
<salesOrderList xmlns="urn:Magento">
<sessionId>[sessionid]</sessionId>
<filters>
<item>
<key>updated_at</key>
<value>
<item>
<key>from</key>
<value>2016-05-31 00:00:00</value>
</item>
</value>
</item>
</filters>
</salesOrderList>
</Body>
</Envelope>