SysDeleteProduct
Delete the product item.
tip
If any real purchases of the product exist, product deletion will be disallowed (error returned)
Service | Operation |
---|---|
productManagement | SYS_DELETE_PRODUCT |
Method Parameters
Parameter | Description |
---|---|
itemId | The item id being deleted. |
version | The version being validated. Pass -1 to bypass version checking. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var itemId = "barBundle1Imp";
var version = 1;
var productManagementProxy = bridge.getProductManagementServiceProxy();
var postResult = productManagementProxy.sysDeleteProduct(itemId, version);
if (postResult.status == 200) {
// Success!
}
{
"service": "productManagement",
"operation": "SYS_DELETE_PRODUCT",
"data": {
"itemId": "barBundle1Imp",
"version": 1
}
}
JSON Response
{
"data": null,
"status": 200
}