Query Returns too many results

john_2084john_2084 Member Posts: 20

I don't think I have constructed my query correctly. I am trying to perform a wildcard search on the UPCs.


A GET to this endpoint

https://api.lightspeedapp.com/API/Account/xxxxxx/Item.json?archived=false

&offset=0&upc%3D~,%6840%&load_relations=["ItemShops"]


returns every item in the catalog (4500 items), but should only return two results.

Changing the second line to:

&offset=0&upc=~,%6840%&load_relations=["ItemShops"]


Returns no results, should return two results.


What should I change?


Thanks.

1 comment

Sign In or Register to comment.