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

Currency/User/Balance/Get

Returns a user's balance for a single currency according to its ID or code.

Parameters

For this request either currency_id or currency_code is required. Both are not needed.

Parameter Type Description
currency_id integer The ID of the currency being requested
currency_code string The code of the currency being requested
user_token string The user's access token

Response

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/Meta/Get&currency_id=##&user_id=##

https://api.miniclip.com/json/?app_id=##&secret=##&signature=##&method=Currency/Meta/Get&currency_code=##&user_id=##

Sample response

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