User's finance
me/balance
Login required |
Pagination |
Yes |
No |
Returns all balances of the current user in different currencies.
Example
requests.get('https://advgame.com/api/v1/me/balance/')
[
{
"currency": "RUB",
"balance": "15000.00"
},
{
"currency": "USD",
"balance": "1000.00"
}
]
me/hold
Login required |
Pagination |
Yes |
No |
Returns hold of the current user in different currencies.
Example
requests.get('https://advgame.com/api/v1/me/hold/')
[
{
"currency": "USD",
"balance": 100.0
},
{
"currency": "EUR",
"balance": 200.0
},
{
"currency": "RUB",
"balance": 300.0
}
]
me/balance/default_currency
Login required |
Pagination |
Yes |
No |
Returns balance of the current user in default currency (selected in settings).
Example
requests.get('https://advgame.com/api/v1/me/balance/default_currency/')
{
"currency": "RUB",
"balance": "15000.00"
}
me/balance/available_output
Login required |
Pagination |
Yes |
No |
Returns available balance of the current user to withdraw (not yet requested
for withdrawal) in different currencies. Only for publishers.
Example
requests.get('https://advgame.com/api/v1/me/balance/available_output/')
[
{
"currency": "RUB",
"balance": "15000.00"
},
{
"currency": "USD",
"balance": "1000.00"
}
]
me/balance/extended
Login required |
Pagination |
Yes |
No |
Returns all balances of the current user in different currencies with
additional info about current day changes on balance.
Example
requests.get('https://advgame.com/api/v1/me/balance/extended/')
[
{
"currency": "RUB",
"balance": "15000.00",
"today": 0
},
{
"currency": "USD",
"balance": "1000.00",
"today": 0
}
]
me/moneytransfers
Login required |
Pagination |
Yes |
Yes |
Returns list of money transactions
(MoneyTransfer) relating to
user's account.
GET-параметры
Field |
Description |
Example |
type |
Payment type filter. Multiple selection is possible. |
type=CONVERSION&type=REFERRAL_PAYMENT |
date_create |
Date filter |
date_create_after=2017-05-01&date_create_before=2017-06-01 |
Пример
requests.get('https://advgame.com/api/v1/me/moneytransfers/?type=CONVERSION')
{
"_meta": {
"count": 5,
"limit": 100,
"offset": 0,
"next": null,
"previous": null
},
"results": [
{
"id": 4,
"amount": -1468.1,
"type": "CONVERSION",
"date_create": "2017-04-29T08:14:52.056466+03:00",
"comment": "Accusamus perspiciatis possimus vel soluta fugit illum deserunt. Nesciunt vel perspiciatis sit temporibus."
},
{
"id": 3,
"amount": -1468.1,
"type": "CONVERSION",
"date_create": "2017-05-18T14:26:07.160321+03:00",
"comment": "Molestiae veritatis facilis et laborum vitae voluptatibus amet. Quidem deleniti ad doloremque minus voluptate veniam. Assumenda sequi hic ducimus."
},
{
"id": 2,
"amount": -1468.1,
"type": "CONVERSION",
"date_create": "2017-06-10T04:50:20.949199+03:00",
"comment": "Quasi facilis consequuntur at eligendi. Possimus eaque quos veritatis nam et fugit corporis. Fuga nulla iusto repellendus impedit totam perspiciatis blanditiis aut. Culpa natus nesciunt laudantium."
},
{
"id": 1,
"amount": -1468.1,
"type": "CONVERSION",
"date_create": "2017-07-04T05:20:47.631603+03:00",
"comment": "Nihil occaecati inventore quae voluptas. Cumque architecto exercitationem impedit temporibus laudantium facere. Suscipit consequatur laboriosam eius nemo dicta reprehenderit quibusdam."
},
{
"id": 5,
"amount": -1468.1,
"type": "CONVERSION",
"date_create": "2017-07-10T20:12:53.927853+03:00",
"comment": "Eveniet est possimus exercitationem sit. Fugit qui numquam id alias. Magni animi eligendi vero quia inventore mollitia."
}
]
}