Skip to main content
Version: 5.7.0

SysDeleteProductPrice

Deletes a price for the given product item. If the priceId being deleted is the currently active price, the defaultPriceId will be set to -1 (not-for-sale).

ServiceOperation
productManagementSYS_DELETE_PRODUCT_PRICE

Method Parameters

ParameterDescription
itemIdThe product item identifier.
versionThe product configuration version. The version being validated. Pass -1 to bypass version checking.
priceIdThe priceId being deleted.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw 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": 999,
"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": 1592930578072,
"version": 4,
"absoluteImageUrl": "https://api.braincloudservers.com/files/portal/g/23783"
},
"status": 200
}