Is there a way to get a query of all customers and their Lightspeed id?
Thank you for reaching out to us.
You can get all customers with this endpoint https://developers.lightspeedhq.com/retail/endpoints/Customer/#get-all-customers.
In the response you'll find the customerID
Yes but it does not bring back the LightSpeed ID? That is only visible in the Customer record url
What do you mean with LightspeedID?
In the UI, here is a Customer query url
it says id=7630
I need to get a report of all customers with this ID as I use this to query from Salesforce
Can you provide me your accountID, so I can check with you?
You can get this customer by using
yes but I want a list of ALL customers in a single file so I can load the values to Salesforce.
I that case you'll need to use and grab all the customerID fields:
?offset means you're looking for the first 100 records, more info here https://developers.lightspeedhq.com/retail/introduction/parameters/
Actually this isn't correct. The offset means you want to skip that many records. From the API docs:
offset - 0 to inf. - Use this to skip a specified amount of objects. Useful for retrieving objects from endpoints that have more than 100 results.
@LucienVersendaal you must be thinking of the limit parameter, where ?limit=100 will get you the maximum amount of records per API request.
So if I want to retrieve all (there are 12,000) I would use offset?
You are absolutely right here. This is also written in our docs how you described it, stupid me :(
@Salesforce_developer, yes that's right.