POST | /ProductCategory/ProductCategoryUndelete | Undeletes a product category | Uses your API Key, the ID of the product category you want to undelete (ProductCategoryIDToUndelete).
A. Undelete a product category.
To begin you should know the ProductCategoryID you have deleted and wish to restore
Undelete the product category we want.
Value: {
"ProductCategoryIDToUndelete": 14
}
Response: {
"result": true,
"ResponseStatus": {
"ErrorCode": "0"
}
}
If we try to undelete product category with ID = 14 again we get the following response:
Response: {
"result": false,
"ResponseStatus": {
"ErrorCode": "500",
"Message": "The Product Category with ID [14] does not exist or is not in deleted state. Undelete action failed."
},
"InternalErrorCode": "Other"
}
|
---|