A door to door security salesman was pistol-whipped at a Goodyear home after being mistaken for a burglar, according to court paperwork.