inventory api