Skip to main content
Version: 5.7.0

SysUpdateProductPrice

Updates (replaces) a price for the given product item.

ServiceOperation
productManagementSYS_UPDATE_PRODUCT_PRICE

Method Parameters

ParameterDescription
itemIdThe product item identifier.
versionThe product configuration version.
priceIdThe priceId being updated.
priceJsonThe price details as JSON map.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"gameId": "23783",
"itemId": "gold_bars_10",
"type": "Consumable",
"iTunesSubscriptionType": null,
"category": "bars",
"title": "Bars (10)",
"description": "Bundle of 10 Bars.",
"imageUrl": "",
"currency": {
"bar": 10
},
"parentCurrency": {},
"peerCurrency": {
"deploypeer": {
"gems": 11
}
},
"defaultPriceId": -1,
"prices": [
{
"priceId": 0,
"referencePrice": 99,
"storeData": {
"amazon": {
"id": "amazoniapid"
},
"itunes": {
"ids": [
{
"appId": "iphone",
"itunesId": "appleiapid"
}
]
},
"facebook": {
"currencyList": [
{
"currency": "USD",
"price": 0.99
},
{
"currency": "CAD",
"price": 1.29
}
]
},
"googlePlay": {
"id": "googleiapid"
}
}
},
{
"priceId": 1,
"referencePrice": 99,
"storeData": {
"amazon": {
"id": "amazoniapid"
},
"itunes": {
"ids": [
{
"appId": "iphone",
"itunesId": "appleiapid"
}
]
},
"facebook": {
"currencyList": [
{
"currency": "USD",
"price": 0.99
},
{
"currency": "CAD",
"price": 1.29
}
]
},
"googlePlay": {
"id": "googleiapid"
}
}
}
],
"data": {
"customAttr": "value"
},
"createdAt": 1592928409270,
"updatedAt": 1592930067424,
"version": 3,
"absoluteImageUrl": "https://api.braincloudservers.com/files/portal/g/23783"
},
"status": 200
}