Get expenses summary
Returns total route-day expenses for a date range plus a per-category breakdown, sorted by value. Amounts are integer minor units (cents). Rejected expenses are excluded unless you pass status; optionally narrow by routePlanId or salesExecutiveId. An empty range returns zeros and an empty list.
BearerAuthAuthorizationBearer <JWT>from?stringISO date (YYYY-MM-DD), defaults to today
dateto?stringISO date (YYYY-MM-DD), defaults to today
dateroutePlanId?stringOptional route scope — day_cycles.route_plan_id (UUID)
uuidsalesExecutiveId?stringOptional sales-executive scope (username)
status?stringOptional approval status: PENDING | APPROVED | REJECTED. Omit for PENDING+APPROVED.
"PENDING""APPROVED""REJECTED"X-TenantID*stringYour merchant's tenant code — the value typed in the Domain field on the iotoms login screen. See Concepts.
OK
*/*- response
status*stringOutcome of the call: SUCCESS when the request worked, ERROR when it did not.
message*stringShort human-readable message describing the result, for logs or display; do not parse it.
data?Route-day expense total for the range and the per-category breakdown, in minor units.
curl -X GET 'https://beta.iotoms.com/api/v1/reports/financial/expenses-summary' \ -H 'X-TenantID: your-tenant-code'{ "status": "string", "message": "string", "data": { "from": "2019-08-24", "to": "2019-08-24", "totalAmountMinor": 0, "expenseCount": 0, "categories": [ { "categoryId": "string", "categoryName": "string", "amountMinor": 0, "expenseCount": 0, "percentageOfTotal": 0.1 } ] }}