Using the API to retrieve sales data

Hello LightSpeed Onsiters!
Can we talk API? How can I achieve the same result as running a Sales Report on a Single Product through the API?
That's it! Thanks!
Can we talk API? How can I achieve the same result as running a Sales Report on a Single Product through the API?
That's it! Thanks!
1 comment
The Invoice search endpoint can find you all the Invoices (for a specific date range) that have a given product on them: You can add more columns, but the available columns relate to the invoice itself and not the line items.
The response will be something like this: You can then get the invoice line items from each invoice, take the ones that have the product on them, then format them into a report.
Lightspeed HQ