Search through the api?

coenniecoennie Member Posts: 3
edited January 20 in Development

Hi There,

I would like to do a searches on products and variants for instance:

Get variant where barcode = '0123456789'

or

Get product where title = 'Some product'

But I can't discover any search endpoints on the eCom api.

Does anyone have a suggestion?

Regards

Post edited by coennie on
Tags:

5 comments

  • HamptonHampton Member Posts: 24

    Having the same issue, The search function is not intuitive. The issue I’m having is searching for a product name and size, so that I can see all the colours available in a product and size a customer wants

  • Alex LugoAlex Lugo Administrator, Lightspeed Staff Posts: 174 moderator

    Hello @Coennieand @Hampton ,


    You could make a get request to the resources endpoint to get all the available filter per endpoint


    https://<host>/<language>/resources.json

    Alex Lugo
    API Support Specialist
    Lightspeed HQ
  • HamptonHampton Member Posts: 24

    Thanks Alex, how would I make this request? Alex

  • HamptonHampton Member Posts: 24

    @Alex Lugo Thanks Alex, how would I make this request?

  • coenniecoennie Member Posts: 3

    @Alex Lugo thanks for your answer, but the resources json returns the same filter values as the documentation.

    I would like to search the products for values, but I can't find that in the resources. Do I look over it?

    Regards Coen

Sign In or Register to comment.