Gross Profit

macmediamacmedia Posts: 5Member
Hello,

Im looking to get the daily gross profit and monthly gross profit from multiple locations.

Im posting a search "/api/invoices/search/" for all invoices for a single day or all invoices for the month (per location). I then have to go back and open each invoice "/api/invoice/d+/" and read the totals->profit field. This is not really an option for the entire month. I have to send a thousand requests to read each invoice multiplied by locations.

Location A = 1200 invoices for the month
Location B = 1000 invoices for the month
Location C = 500 invoices for the month

Anyway to send one request, array of invoice id's, per location? 
That would return one XML with all invoice details, per location.
Tags:

1 comment

  • jamesratcliffejamesratcliffe Posts: 160Administrator, Lightspeed Staff moderator
    @macmedia Unfortunately, the only way to get the profit data is to pull each invoice (/api/invoice/d+/).
    James Ratcliffe
    API Integrations Specialist
    Lightspeed HQ
Sign In or Register to comment.