Skip to main content
Version: 6.0.0

SysAddProductPrice

Adds a new price to the given product item.

ServiceOperation
productManagementSYS_ADD_PRODUCT_PRICE
info

Note: When passing the referencePrice field to SysAddProductPrice, the value is specified in cents/pennies. This differs from the App Store price fields, which are entered in dollars and cents.

Method Parameters

ParameterDescription
itemIdThe product item identifier.
versionThe product configuration version.
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"
}
}
}
],
"data": {
"customAttr": "value"
},
"createdAt": 1592928409270,
"updatedAt": 1592928588330,
"version": 2,
"absoluteImageUrl": "https://api.braincloudservers.com/files/portal/g/23783",
"newPriceId": 0
},
"status": 200
}