You can add the referral ID to a rejected invoice by editing the invoice and clicking on the advanced tab and adding the info the the referral provider ID field.