Imagine we have this website.

image.png

now let’s login.

image.png

now let’s try to buy an item

image.png

notice that we got not enough store credit.

now let’s analysis the request.

image.png

now let’s see the cart after adding the quantity.

image.png

as we see we can add the quantity to the cart using this request

but what if we set the quantity to negative number?

image.png

now let’s refresh the cart.

image.png

notice that we have now the total set to 1337 so let’s try to buy the item

image.png

notice that the message said that the total can’t be zero.

so let’s try to make the quantity 1