passing in id of vending machine