Incorrect results while filtering

curl

#1

Hey,

I wanna filter products based on a category.id, in Postman, so I am trying to do so by:

(moltin api url) /v2/products?filter=eq(‘category.id’, ‘XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX’)

but the problem is that I am getting a result of all products

Can you help me if there is anything wrong in the filter statement?

Best,


#2

Hey @khaled1

You don’t need the quotes around category.id and the UUID. This should work:

/v2/products?filter=eq(category.id,XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX)

Thanks,
James


#3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.