marello icon indicating copy to clipboard operation
marello copied to clipboard

Out of stock exception

Open clicktrend opened this issue 6 years ago • 4 comments

Hi,

if I post an order with REST and the item is out of stock I get "400 - Bad request". In the profiler I see for error "Cannot order more inventory than available".

Is it possible the send an OutOfStock Exception with HTTP response?

clicktrend avatar Nov 06 '18 10:11 clicktrend

Hi @clicktrend,

Thank you for asking! If I understand correctly you would like to know if it's possible for us to send back a HTTP response with the OutOfStock Exception in the response?

So when you are trying to create an order and the error occurs, you would like to see the OutOfStock exception in the response rather than the "400 - Bad request", correct?

Kind Regards,

Jaimy Casteleijn

24198 avatar Nov 07 '18 07:11 24198

Correct!

clicktrend avatar Nov 07 '18 17:11 clicktrend

Could you please tell me which version you're currently running of Marello? This makes investigating it a whole lot easier :)

Kind Regards,

Jaimy Casteleijn

24198 avatar Nov 08 '18 09:11 24198

1.5 latest version.

clicktrend avatar Nov 08 '18 13:11 clicktrend