NRC recovery
If you have paid via the AEAT’s payment gateway or through the payment section of the online filing forms for self-assessments correctly but have been unable to obtain the reference number ( NRC), due to a one-off issue, you can retrieve it without having to use the relevant enquiry option for a previous payment, by clicking the ‘Retrieve NRC’ button.
This button allows you to obtain your NRC immediately and does not incur any further charges.
Via the AEAT’s payment gateway
For the ‘NRC Recovery’ button to appear, the following requirements must be met:
Whether you are accessing the payment or linking to it from a form via the AEAT ( State Tax Administration Agency ) payment gateway, and not accessing it via the option to consult a previous payment.
You must have paid correctly and the financial institution must have debited your account.
You may not have seen the NRC on screen due to a problem, which may have been a one-off.
Note: if the NRC screen is blocked by third-party applications not associated with the financial institution (bank or savings bank) or the AEAT(State Tax Administration Agency), this button will not be displayed. For example, pop-up blockers in your browser or antivirus software, which may block some of the content you see on the screen. In such cases, it is best to consult the payment status on the AEAT (State Tax Administration Agency) website or with your bank.
When you return to the payment page, a window will appear with an ‘NRC Recovery’ button next to the text:‘The payment has been successfully processed, but due to technical issues the NRC cannot be released. Please use the NRC Recovery option. This process will not incur any additional charges to your account.’ This message indicates that the transaction was successful and the charge has been taken.

When you click the ‘NRC Recovery’ button, you may see the following results:
If you retrieve the NRC correctly, it will appear on the screen as if you had just processed the charge.

If the NRC cannot be retrieved, the formality cannot proceed. In this case, you will see a message stating that it has not been possible to verify the NRC: “We have been unable to confirm the payment with your organisation.” Please try again. "This process will not result in any additional charges being added to your account."

Via the online submission form for self-assessments with a payment component
The‘Recover a previous payment (NRC)’ button is always visible in the payment section of the online self-assessment submission form when ‘To be paid’ is selected as the payment type.

If an NRC exists for that model, financial year, period, amount and the taxpayer’s tax identification number, the corresponding NRC is returned.

Otherwise, if no NRC can be found based on all that information, a warning message is displayed : “No NRC has been found that corresponds to the tax return you wish to submit”.

Note: If you are consistently unable to retrieve the NRC, either via the payment gateway or the payment component included in the submission, please consult the NRC on the website using the link to view a previous payment located in the ‘Pay, defer and check’ section, “All transactions”, “Consult debts”, “Consult previous payments...” or contact your bank.