add inventory API