Rename cost to price and validate local quantity value
Update json to match API format