This method deletes an existing product category.
This method removes the specified ProductCategoryRefNum from the product database. The product category is deleted immediately and this operation can not be undone. The ProductCategoryRefNum is the gateway assigned product Category ID that was returned by addProductCategory.
See also addProductCategory
boolean deleteProductCategory ( ueSecurityToken Token, string ProductCategoryRefNum)
|Type ||Name ||Description
|ueSecurityToken ||Token ||Merchant security token: used to identify merchant and retrieve the custom fields.
|string ||ProductCategoryRefNum ||Product category reference number used to delete a product category
|boolean ||Returns true if product category has been deleted (on error an exception is thrown)
The following exceptions (errors) are applicable to this method.
|Code ||Message ||Advice
|41008 ||Failed to delete product category ||Product category specified by ProductCategoryRefNum was not found. Make sure the number stored is not truncated or rounded.
For directions on how to set up the WSDL link, create “$token” and “$client”, go to PHP Soap How-to.
Dim catRefNum As String
catRefNum = "9001169815"
Dim response As Boolean
response = client.deleteProductCategory(token, catRefNum)
string catRefNum = "900116989";
response = client.deleteProductCategory(token, catRefNum);
catch (Exception err)
|1.3 || Method added in this release