curl --request DELETE \
--url https://api.example.com/products/:id{
"error": true,
"msg": "<string>",
"salesList": [
{
"idSaleDetails": "<string>",
"idSale": "<string>"
}
]
}Delete a product by its ID
curl --request DELETE \
--url https://api.example.com/products/:id{
"error": true,
"msg": "<string>",
"salesList": [
{
"idSaleDetails": "<string>",
"idSale": "<string>"
}
]
}This endpoint deletes a product identified by its UUID. The deletion will fail if there are existing sales that reference this product due to foreign key constraints.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/andreguti9190/Sistema-de-gestion-de-ventas--Nodejs/llms.txt
Use this file to discover all available pages before exploring further.
{
"error": false,
"msg": "Product deleted successfully"
}
{
"error": true,
"msg": "the id is invalid"
}
{
"error": true,
"msg": "there are sales with this product",
"salesList": [
{
"idSaleDetails": "4033e9a1-5858-44c9-b1d7-39c718933372",
"idSale": "878d89a7-a1a1-4411-a359-1ad08965fb30"
}
]
}