Querying Item Endpoint on default price

MaksDevMaksDev Member Posts: 7

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

  • LucienVersendaalLucienVersendaal Moderator, Lightspeed Staff Posts: 991 moderator
    Answer ✓

    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.


  • MaksDevMaksDev Member Posts: 7

    Many thanks! This seems to work, although I don't understand why. The price is not a normal field of an item and price=0 is not the normal query notation.

    But I'll take it :-)

Sign In or Register to comment.