@viraf Ahhh, now I see the issue. The API requires that fields be specifically be defined for security reasons and thus can not be "virtually defined" per request. What you need to do is declare "amt" to be a virtual field (see wiki and Schema tab on Admin application) and set the DB function to SUM(Amount) and be sure to select the "Aggregate function" checkbox. Then leave off the filter in your request, but include the fields=amt to just return back the aggregates.
↧