To get account statistics, use the command account/get_account_history:
svc=account/get_account_history¶ms={"itemId":<long>, "days":<int>, "tz":<int>}
Current request can't be executed simultaneously with following requests:
Name | Description |
---|---|
itemId | resource (account) ID |
days | time to request statistics (days) |
tz | timezone |
Service list with type PERIODIC and cost table (or counter or days_count).
Please note the following services have the other names in JSON response.
"days_counter"-> "cnt" "email_report"-> "erp" "email_notification"-> "enf"
[ [ <uint>, /* action type: 1 - payment, 0 - write off */ <text>, /* date */ <text>, /* service */ <text>, /* cost */ <uint>, /* quantity */ <text> /* information */ ] ]