Skip to content

Category_Delete#


Description#

This function allows you to delete a category.

Request Body Parameters#

Parameter
Type Description
category_id
category_code
edit_category
Number
String
String
The category id being deleted
The category code being deleted
The category name being deleted

Response Parameters#

Parameter
Type Description
success Boolean Boolean value indicating if the API request was successful

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "Category_Delete",
    "Category_Code": "Sample"
}

Example Response#

{
    "success": 1
}

Error Responses#

Error Code Error Message Error Description
MER-JSN-CAT-00030 Category not found Order number not found.
MER-JSN-CAT-00033 Unable to load category: One of Category_ID, Edit_Category or Category_Code must be specified One of the category identifiers was not passed