Info Value
Updated on 11 July 2019
Response format JSON
HTTP Methods GET
Response object Balance
API Version 1.0

Currency/User/Balance/List

Returns all a user's balances for a certain game, or all balances within a game where the currency is of a specified type.

Parameters

Parameter Type Description
user_token string The user's access token
currency_type_id
(optional)
integer The ID of the currency type

Response

Returns an array of balances, indexed by currency id in the format currency_##.

Element Type Description
currency_id integer The ID of the currency
currency_code string The currency's code
total_balance integer The user's total balance for the currency

Example

Request

https://api.miniclip.com/json/?app_id=##&secret=##&signature=##&method=Currency/User/Balance/List&currency_id=##&user_id=##

https://api.miniclip.com/json/?app_id=##&secret=##&signature=##&method=Currency/User/Balance/List&currency_code=##&user_id=##

Sample response

{
	"currency_1234" : {
		"currency_id" : 123,
		"currency_code" : "TC",
		"total_balance" : 1945077
	},
	...
}