Skip to main content
Version: 5.7.0

GetSalesInventoryByCategory

Method gets the active sales inventory for the passed-in currency type, platform, and category.

Valid platforms are:

  • itunes
  • facebook
  • appworld
  • steam
  • windows
  • windowsPhone
  • googlePlay
  • amazon
ServiceOperation
appStoreGET_INVENTORY

Method Parameters

ParameterDescription
platformThe store platform.
categoryThe product category.
userCurrencyThe currency to retrieve the sales inventory for. This is only used for Steam and Facebook stores.

Usage

http://localhost:3000
string storeId = "itunes";
string userCurrency = "{\"userCurrency\":\"USD\"}";
string category = "subscriptions";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.AppStoreService.GetSalesInventoryByCategory(storeId, userCurrency, category, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"productInventory": [
{
"currency": {
"bar": 50
},
"description": "Bundle of 50 Bars.",
"fbUrl": "https://dev.braincloudservers.com/fbproductservice?gameId=eggies&itemId=barBundle2Imp",
"gameId": "eggies",
"imageUrl": "http://eggies6waves.braincloudservers.com/s3/eggies-prod/store/bars.png",
"itemId": "barBundle2Imp",
"priceData": {
"ids": [
{
"appId": "ipad",
"itunesId": "com.playbrains.eggiesdevhd2.barBundle2Imp"
},
{
"appId": "iphone",
"itunesId": "com.playbrains.eggiesdev2.barBundle2Imp"
}
]
},
"title": "Bars"
}
],
"serverTime": 1395952561266
}
}