Gross Profit

macmediamacmedia Member Posts: 7

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.

1 comment

Sign In or Register to comment.