You need to use the referral link before placing your order. If you click on a referral link, it will show you the user's referral stats and then allow you to order an S, 3 or X.
If you already placed your order, it's too late to add a referral code.