Querying Item Endpoint on default price

in Development
Can somebody show me the query to find all items with a specific price?
I need items that have price set to 0. Since the prices are in an array I can't get the correct query.
"Prices": { "ItemPrice": [ { "amount": "100", "useTypeID": "1", "useType": "Default" },
Queries on description or other fields all work okay, but the price is different.
Best Answer
-
LucienVersendaal Moderator, Lightspeed Staff Posts: 991 moderator
Hi @MaksDev ,
Thank you for contacting us.
To get the price you can use the following query:
GET /API/Account/{account_id}/Item?price=0
I hope this will help for you.
Answers
Many thanks! This seems to work, although I don't understand why. The
price
is not a normal field of an item andprice=0
is not the normal query notation.But I'll take it :-)