Delete a Category
HTTP Request
DELETE https://commerce.zoho.com/store/api/v1/categories/
OAuthScope
ZohoCommerce.items.DELETE
Query Parameters
Parameter | Description |
delete_sub_categories | boolean: The value should be true when you're deleting the parent category. If the category has no child the param can be neglected. |
Request Example
Copiedcurl -X DELETE 'https://commerce.zoho.com/store/api/v1/categories/1706707000000538081?delete_sub_categories=true'
-H 'Authorization: Zoho-oauthtoken ***'
-H 'Content-Type: application/json'
-H 'X-com-zoho-store-organizationid: 682219181'
Success Response
Copied{
"code": 0,
"message": "Category deleted successfully."
}
Failure Response
Copied{
"code": 250007,
"message": "You have to delete the subcategories first to delete the parent category."
}