question

getvivekv avatar image
getvivekv asked getvivekv answered

Get Inventory by Product code

Hello,

I am trying to get the inventory items filtered by the Product Code. The product code is a field that I see on the clover device and from the api result it looks like "code" is what product code is. When sending a request I selected "itemCode". . The following doesn't work. How can I filter the inventory by a product code.

https://api.clover.com:443/v3/merchants/{ID}/items?filter=itemCode==051933187405
Inventory
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jonathan Ryan Grice avatar image
Jonathan Ryan Grice answered Jonathan Ryan Grice edited
You don't need two 'eq' between the filter field and the value, may need to use urlencode on the last eq "%3D"
so your endpoint and query would be
https://api.clover.com/v3/merchants/{MID}/items?filter=itemCode%3D051933187405
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

getvivekv avatar image
getvivekv answered
Thanks, just figured it out by trial and error and saw your message. I was using the REST API documentation example from the website - https://www.clover.com/api_docs/#inventory_Items

It is also sending == in the example, and it is broken. ,Hi Thanks

Just figured out this by trial and error. I was following the REST API referrence at
https://www.clover.com/api_docs/#!/inventory/GetItems
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community