A Vermont man who managed to trick Tesla into delivering him five cars worth $560,000 without paying was sentenced to four years in prison.

According to federal prosecutors (via MarketWatch), Michael Gonzales exploited a

loophole in the automaker's online ordering system that allowed him to take delivery of five Tesla vehicles although he had no intention to pay.

He later sold three of the vehicles to unsuspecting buyers at knockdown prices totaling $231,900.

How exactly was he able to do that? Investigators found that the 34-year-old resident of Shelburne, Vermont, entered bank details into

Tesla's online payment portal that were attached to accounts containing little or no money.