An automated retail machine controlled by a server which operates by receiving an order for at least one item from a processor, and generating a unique identifier corresponding to the order. The unique identifier serves to both identify and retrieve the order, and also process payment method. The server then transmits the unique identifier back to the processor, which is then sent back to the server from a terminal once the unique identifier is processed and activated therein. The order is then sent to the terminal for vending, in which case, the at least one item is automatically vended. The unique identifier is then cancelled.