Open
Description
🔍 Description:
The API currently allows the creation of products with negative quantity values, which is logically invalid and can lead to inconsistent inventory and sales behavior.
🧪 Steps to Reproduce:
- Send a
POST
request to/api/v1/products
- Use the following JSON body:
{
"name": "Test Product",
"description": "Negative quantity test",
"sku": "NEG-001",
"quantity": -45,
"price": 100,
"entity_type": "products"
}
)
Metadata
Metadata
Assignees
Labels
No labels