Open vpratfr opened 7 years ago
An issue regarding the option to exclude taxes has been opened at #5444.
Now that we've rewritten our reporting query functions to be more efficient, we could adapt our stats
endpoint to include more data.
I'll rename this issue to avoid confusion.
Hi,
For most store owners, the earnings figure which matters is the one excluding taxes (netto). Earnings provided by the stats API are including taxes only. We do not have any way to access the figures excluding taxes.
Adding a parameter would be a possibility but I think that simply providing both figures including and excluding taxes in the JSON would be better (more manageable on the API client side).
Generally speaking, I think that providing more data in a single API call would be much more useful:
if you look at the dashboard for the iOS application, you require 4 API calls. This is very inefficient on mobile.
If we could have in a single call:
That would reduce our client side work to a single API call
Result could look like: