I do not know the legality of doing this, so I asked someone. That person said: I've watched many hearing aids being sold on Ebay, garage sales, and some pawn/thrift shops. I've yet to hear of anyone being shut down for that.
Comment from guide: I suppose it is not that different from buying hearing aids on the internet. You still have to have an audiologist service the hearing aids and program them.