How to use query string in product endpoint to get product by SKU?

skater182skater182 Member Posts: 1
edited October 25 in Development

In Lightspeed Restaurant API documentation endpoint for getting products list have a "query" parameter, but nothing said about how to use it. I tried a lot of different ways of syntax but they not working. I need to get product by it SKU.

I tried to get generated query from Swagger and it looks like that for searching product with SKU = A1:

?query=sku%3DA1

Nevertheless it's not working also and returns empty array.

Can you show me please example of correct syntax of query parameter to get product by it's SKU?

Post edited by skater182 on

1 comment

  • YorickYorick Moderator, Lightspeed Staff Posts: 15 moderator

    Hello Skater182,

    This parameter filters on the name field where name is like %query%. It is not possible at the moment to search products by SKU. Hope this helps.

    API integration specialist
    Lightspeed HQ
Sign In or Register to comment.