Fixing bug in checkStockAccont
Fixing bug, API should accept JSON data.