Get payment collections report
GET
Returns transaction totals for business dates between from and to (YYYY-MM-DD, both default to today), grouped by the payment mode recorded on each transaction, largest first, with each mode's share. from after to is rejected.
BearerAuthheader
AuthorizationBearer <JWT>from?stringISO date (YYYY-MM-DD), defaults to today
Format
dateto?stringISO date (YYYY-MM-DD), defaults to today
Format
dateX-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?Total collected for the range and its breakdown by payment mode.
Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/reports/financial/collections' \ -H 'X-TenantID: your-tenant-code'Example Response
{ "status": "string", "message": "string", "data": { "from": "2019-08-24", "to": "2019-08-24", "totalCollected": 0, "breakdown": [ { "paymodeCode": "string", "paymodeLabel": "string", "totalAmount": 0, "transactionCount": 0, "percentageOfTotal": 0.1 } ] }}