If you plan ahead, you can usually get around this. E.g., I routinely purchase electrical supplies from places that only "sell to the trade". No, I'm not a licensed electrician. No, I don't WORK for one.
But, dropping names and "attitude" can go a long way. The counter person (treated with respect) isn't typically out to bust your balls. Just don't rub his face in it. Don't *act* like a newbie.
Last time I had to buy some GFCIs for our old panel, I went to one such shop. Dropped a friend's name. Counter guy was likely pretty sure that I wasn't in the trade. So, without trying to be directly confrontational, asked "So, how's Mike doing?"
When I *gushed* about how much weight he'd recently lost (I'm not even sure the counter guy knew this as Mike "had employees" to pick up parts, *he* needn't be bothered), the conversation moved away from a challenge of my "legitimacy" to a discussion of Mike's "personal habits" and the things that he was particularly fond of EATING!
So, I walked out with the trade price for the breakers -- and the counter guy still smiling over the shared "fun" at Mike's expense!
Back in school, it was common practice to fabricate companies and mock up letterhead to submit requests for data, order parts, etc. Of course, back then, it wasn't a simple matter of doing a web search to verify the legitimacy of the fake company!