new inventory api