get_account_history
To get the account statistics, use the account/get_account_history method.
Endpoint
svc=account/get_account_history¶ms={
"itemId": <long>,
"days": <int>,
"tz": <int>
}
The method is a resource-intensive request, so the limit on simultaneous resource-intensive requests during one session applies to it. If the limit is reached, the error 1003 with the
LIMIT api_concurrentreason is returned. For the list of resource-intensive requests, see Limitations.
Parameters
The request must contain the following parameters.
| Parameter | Description |
|---|---|
itemId |
Resource (account) ID. |
days |
Interval for which you want to request statistics, in days. |
tz |
Time zone. |
Response
If the request is completed successfully, a response of the following format is returned:
[
[
<uint>, /* Action type: 1 - payment, 0 - charged */
<text>, /* Date */
<text>, /* Service */
<text>, /* Cost */
<uint>, /* Quantity */
<text>, /* Information */
<int> /* Registration time */
]
]
If the request fails, an error code is returned.