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
Request
- Base URLhttps://rest.textmagic.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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.
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"
}
]
}Changes
No recorded changes to this operation across all 4 revisions of this API.