add inventory api