latestSwagger 2.02026-08-101561322.2 MB

3e4029d19684

Statistic

Get spending statistics

<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Statistics/getSpendingStat" target="_blank">Try in sandbox</a><br>

get/api/v2/stats/spending

Query parameters

pageinteger

Fetch specified results page.

limitinteger

The number of results per page.

startstring

Time period start in UNIX timestamp format. The default is 7 days prior.

endstring

Time period start in UNIX timestamp format. The default is today.

Response

Returned when successful.

pageinteger required
pageCountinteger required

The total number of pages.

limitinteger required

The number of results per page.

Example response

{
  "page": 1,
  "pageCount": 10,
  "limit": 10,
  "resources": [
    {
      "id": 305,
      "userId": 4627,
      "date": "2014-09-19T00:00:00+0000",
      "balance": 101.05,
      "delta": -0.15,
      "type": "sms",
      "comment": "This is a test comment"
    }
  ]
}