API Documentation - Delete Product

Endpoint

GET /product/delete

Parameters

The following parameters are required in the request:

  • id: The product ID.

Response

The response is a JSON object containing the following fields:

{
    "success": true,
    "message": "Deleted successfully"
}

If an error occurs, the response will contain the following fields:

{
    "success": false,
    "message": "Error message"
}

Error Handling

If an error occurs, the response will contain the following fields:

{
    "success": false,
    "message": "Error description"
}

Example Request

GET /product/delete?id=1

Example Response

{
    "success": true,
    "message": "Deleted successfully"
}