get_account_history
To get the account statistics, use the account/get_account_history method:
svc=account/get_account_history¶ms={"itemId":<long>,
"days":<int>,
"tz":<int>}
You can’t execute this request simultaneously with the requests from the exchange section and the following requests:
- …/report/exec_report
- …/report/export_result
- …/report/get_result_chart
- …/report/get_result_map
- …/messages/load_interval
- …/render/create_messages_layer
- …/unit/get_trips
- …/resource/get_driver_bindings
- …/resource/get_trailer_bindings
Parameters
The request must contain the following parameters.
Name | 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.