Question

I have created a custom API taking help from here. Now i want to add filter to this API. Like if i want to get products filtered with some specific sku.

How can i do that?

thanks

Was it helpful?

Solution 2

After wasting much time, found the solution here.

need to pass the variable in wsdl.xml file:

<message name="customapimoduleProductListRequest">
 <part name="sessionId" type="xsd:string" />
 <part name="customvar" type="xsd:string" /> 
</message>

OTHER TIPS

You can refer below URL:

https://devdocs.magento.com/guides/m1x/api/rest/get_filters.html

If my answer helped you, you can accept the answer so it can help others also.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top