Reminds me of Ubik.
From amazon review:
Ubik (1969) offers such deadpan farce as a moneyless character's attack on the robot apartment door that demands a five-cent toll:
"I'll sue you," the door said as the first screw fell out.
Joe Chip said, "I've never been sued by a door. But I guess I can live through it."