Make API to automatically update inventory