The present invention relates to an automatic vending machine, which includes a smart shelf and a server back-end management system, wherein a door body is arranged on the smart shelf, a main control board is arranged on the smart shelf, the main control board is respectively electrically connected with an electric inserting lock, an antenna array, and an Alipay two-dimensional code input terminal; the main control board is interconnected with the server back-end management system through the Internet, the server back-end management system is accessed to Zhima credit system through the Internet; the door body forms an opening and closing connection with the smart shelf through the electric inserting lock; the main control board and the antenna array are connected through a multi-channel read head controller and a signal amplification motherboard. It is convenient to use.