SysDeleteProduct
Delete the product item.
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
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw 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
}