It’s not possible to apply referral codes to existing orders.