get_account_history

To get the account statistics, use the account/get_account_history method:

Copied!
svc=account/get_account_history&params={"itemId":<long>,
                    "days":<int>,
                    "tz":<int>}

You can’t execute this request simultaneously with the requests from the exchange section and the following requests:

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:

Copied!
[
    [
        <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.

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form

Download PDF file
Download Word document

See also