updated inventory api