Assigning membership 2 codes trough url

Hello!

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

http://www.mysite.com/registration?code=xxxxxxxxxx
with a qr code for example.
And validate it automatically. To spare the copy/paste nag :smiley:

thanks a lot!