0

So I have this piece of code below which will sucessfully pull a product and give the XML data for my magento store...

http://mywebsite.com/api/rest/products?type=rest&filter[1][attribute]=name&filter[1][in]=test%20product%20name

However, it will ONLY pull up the product info if I make the product name perfect. If I try to just put in

http://mywebsite.com/api/rest/products?type=rest&filter[1][attribute]=name&filter[1][in]=test

It will not bring ANY products. It was my understanding that if I used the "[in]" filter that it should bring up all products containing the "test" word but it doesnt...

1 Answer 1

4

in - "equals any of" - returns items that are equal to the item(s) with the specified attribute(s)

Try to use 'like' ...

http://mywebsite.com/api/rest/products?type=rest&filter[1][attribute]=name&filter[1][like]=%test%
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.