Referral Code API's

@aaustin 
I'm not sure the dev will need to ever pass metadata. We just put the credit count and bucket in there. Perhaps you can ask for credit value/bucket instead?