Assigning membership 2 codes trough url


I'd like to provide codes to signup in a membership 2 powered site. But I want to know if is it possible to pass the code trough url, for example
with a qr code for example.
And validate it automatically. To spare the copy/paste nag :smiley:

thanks a lot!