Info Value
Updated on 18 September 2018
Response format JSON
HTTP Methods GET
Response object Inventory
API Version 1.0

Currency/User/Inventory/Get

Returns how many of an item is present in a user's inventory.

Parameters

For this request either item_id or item_code is required. Both are not needed.

Parameter Type Description
item_id integer The ID of the item being requested
item_code string The code of the item being requested
user_token string The user's access token

Response

Element Type Description
item_id integer The ID of the item
item_code string The item's code
quantity integer The user's inventory count for the item

Example

Request

https://api.miniclip.com/json/?app_id=##&secret=##&signature=##&method=Currency/User/Inventory/Get&item_id=##&user_id=##

https://api.miniclip.com/json/?app_id=##&secret=##&signature=##&method=Currency/User/Inventory/Get&item_code=##&user_id=##

Sample response

{
	"item_id" : 123,
	"item_code" : "TEST_ITEM",
	"quantity" : 1
}