How to use "query" parameter to filter the results?

LeiLei Member Posts: 2

In Lightspeed Restaurant API documentation. Some endpoints have a "query" parameter, but how to use it.

For example, I would like to retrieve all products which id between 422381 and 422400 or Sku ='D1', how can I use the "query" parameter.

How can I combine the conditions? Could you please send me some examples?


  • Adrian SamuelAdrian Samuel Moderator, Lightspeed Staff Posts: 654 moderator

    Hey @Lei,

    The Restaurant API doesn't have the ability to search via a range, only via singular sku/id, so I would suggest you calculate the offset to get your beginning range and make subsequent requests in a loop to obtain the range of products you have.

    Adrian Samuel

    Software Developer

    Lightspeed HQ

Sign In or Register to comment.