Tax certificates in Spain (AEAT): which ones exist, what each is for and how to request them online
The tax certificates the AEAT issues: census status, IAE, up to date with obligations, contractors and subcontractors, IRPF and tax residence. What each is for, how to request it on the Sede, how long it takes and how long it lasts.

In short
- A tax certificate is the AEAT document that proves facts about your tax situation (article 70 of the management and inspection regulations), and there are ones for census status, IAE, being up to date, contractors and subcontractors, IRPF, tax residence and others.
- They are requested on the AEAT's Sede with an electronic certificate, the electronic ID card (DNIe) or Cl@ve, and online requests are generally issued immediately.
- Unless a specific rule says otherwise, a certificate is valid for 12 months from issue if it refers to periodic obligations and three months if it refers to non-periodic obligations; the contractors one must be issued in the 12 months before the payment of each invoice.
- The legal issue deadline is 20 days, and 3 days for the contractors and subcontractors certificate.
- To choose, start from what you need to prove: the table in this article turns each "I need to prove X" into the certificate you should request.
Tax certificates in Spain, in short
Hacienda certificates, or tax certificates, are documents issued by the AEAT (Agencia Estatal de Administración Tributaria, Spain's tax agency) to prove facts about your tax situation: that you are registered, what activity you have, that you are up to date with payments or where you are tax resident. You request them on the Sede (the AEAT's electronic office) with Cl@ve or a digital certificate, and most come out on the spot.
What a tax certificate is and who issues it
A tax certificate is, according to article 70 of the tax management and inspection regulations, the document issued by the tax authority that proves facts about the tax situation of a taxpayer. It can prove, among other things, the filing of returns, census status, compliance with obligations and the existence or not of debts or penalties pending payment.
Three rules in the same article help you understand what to expect from it:
- It only speaks about you. The certified data refers exclusively to the taxpayer, with no third-party data, unless the purpose of the certificate requires including it.
- It does not certify what is time-barred. Data on obligations whose right to assess has already lapsed cannot be certified.
- It does not certify compliance ahead of time. While the deadline to meet an obligation has not expired, no certificate on its compliance can be issued.
The certificate is informative. Under article 75, it cannot be appealed, although you can state your disagreement with an item within 10 days from the day after receiving it, with a letter addressed to the body that issued it and with the evidence that supports it.
What they ask for it for
Whoever asks can be a bank, a client who hires you or an administration that calls for aid or a contract. They want an AEAT document saying something specific about you, so the first thing is to know what they want to see, not what the certificate is called.
Which tax certificates exist
On its Sede, within the tax certificates help, the AEAT offers specific requests for IRPF, contractors and subcontractors, being up to date with tax obligations, tax residence, intra-community operator and a generic certificate. The census certificates have their own index, which lists nine types.
| Certificate | What it proves | Procedure |
|---|---|---|
| Census status | Your data in the AEAT census as a taxpayer, entrepreneur, professional or withholding agent | G313 |
| IAE | Your registration in the Impuesto sobre Actividades Económicas (business activities tax) | G309 |
| Tax residence | That you are tax resident in Spain | G305 |
| Status as IVA taxable person | Your status as an IVA (VAT) taxable person | G311 |
| Intra-community operators | Your registration in the register of intra-community operators | G312 |
| Non-profit entity | That you have opted for the tax regime of these entities | G314 |
| Net turnover | The turnover figure held in the AEAT's databases | G315 |
| Corporate tax exemption | That you are exempt from this tax, so that no withholdings or payments on account are applied to you | G310 |
| Exemption from withholding for lessors | That you are exempt from withholding on property rentals | G325 |
In addition, outside the census block, the Sede help lists these others, which are the ones most often requested from a self-employed person:
- Being up to date with tax obligations, which covers contracting with the public sector, grants, transport authorisations and immigration permits.
- Contractors and subcontractors, the specific one that stops the payer from being liable for your debts.
- IRPF, which shows what you declared in a given year or the income the AEAT holds for you if you did not file.
- Generic, for facts that do not fit the above.
If what you need is to prove you already went through Hacienda when starting out, that registration is done with the census return, modelo 036, and the census status certificate is the proof of what was recorded.
Census status certificate
The census status certificate shows the data the AEAT holds on you in the census: whether you are registered as an entrepreneur or professional, or as a withholding agent, and the associated census information. A bank, a client or an administration may ask for it when they want to check that your activity exists.
You request it on the Sede under Todas las gestiones, Certificados, Censales, in the procedure for census status. The G313 procedure sheet gives articles 70 to 75 of the management and inspection regulations as its legal basis and sets 20 working days as the resolution deadline.
If you have just registered, wait for the census return to be recorded before requesting it. How that registration is done and what activity you classify is in IAE headings for autónomos.
IAE registration certificate
The IAE certificate proves your registration in the Impuesto sobre Actividades Económicas. You request it under Todas las gestiones, Certificados, Censales, in the IAE tax certificates procedure (G309). On the procedure sheet the AEAT gives 20 working days as the resolution deadline and says it is requested with form 01.
There is a nuance here that confuses many autónomos. Individuals are exempt from IAE (article 82.1.c of the Local Treasuries Regulatory Law): they do not pay the fee. But they must be classified under the heading of each activity they carry out, and that classification is communicated with the census return.
That is why, when someone asks you for the "IAE registration certificate", ask what they want to check. Often the census status one is enough for them, as it shows your census data. If they expressly require the IAE one, request it with sheet G309.
Certificate of being up to date with tax obligations
This is the "I owe Hacienda nothing and have no returns unfiled" certificate, and we explain it in detail in certificate of being up to date with Hacienda. You request it under Todas las gestiones, Certificados, Situación tributaria, identifying yourself with Cl@ve, an electronic certificate or the electronic ID card. You choose the date you want it for and the purpose: contracting with the public sector, transport authorisations, public grants, immigration authorisations or a generic certificate.
Under article 74 of the regulations, the AEAT considers you up to date when:
- You are registered in the census and, if you are not exempt, in the IAE.
- You have filed the IRPF, corporate tax or non-resident tax self-assessments that apply to you.
- You have filed the self-assessments and the annual summary of payments on account (withholdings and instalment payments).
- You have filed the IVA self-assessments and annual summary and, where relevant, the intra-community transactions summary returns.
- You have filed the local tax returns and the information-supply returns that apply to you.
- You have no debts or penalties in enforcement period, unless they are deferred, paid in instalments or suspended.
- You have no fines or civil liabilities pending payment from a crime against the public treasury declared by a final judgment.
The self-assessments and returns in points 2 to 5 are looked at within a specific window: those whose filing deadline expired in the 12 months before the two months immediately preceding the date of the certificate (article 74.3). In other words, a return whose deadline has just expired will not be looked at yet.
Collection is immediate whenever the result is positive. If it is not, the certificate is issued as negative and shows what is missing; on the Sede, the result may appear as a refusal for debts, for returns not filed or for both. It therefore depends on whatever you have filed being up to date.
Important
The AEAT will not certify compliance whose deadline has not expired, nor that of time-barred obligations. If you request the certificate with a date in a time-barred year, the system cannot issue it.
Contractors and subcontractors certificate
This certificate is needed by anyone who works for another company or self-employed person who hires or subcontracts them for a work or service of their main activity. The reason is in article 43.1.f of the General Tax Law: whoever contracts or subcontracts is secondarily liable for the contractor's passed-on taxes and withholdings, for the part of the work or service contracted.
That liability is not enforced if the contractor or subcontractor gives the payer a specific certificate of being up to date, issued in the 12 months before the payment of each invoice. And it is limited to the amount of the payments made without a certificate, or with the previous one more than 12 months old and not renewed.
That is why the companies that hire you ask for it, sometimes before paying your first invoice.
How to request it step by step
Access requires Cl@ve, an electronic certificate or the electronic ID card. The steps, according to the AEAT technical help:
- On the Sede go to Todas las gestiones, Certificados, Solicitud in the contractors and subcontractors procedure.
- Confirm your details. If you act for a third party, tick "En representación de terceros" and enter the holder's NIF, surnames and name.
- Enter the NIF and the name or company name of the person or entity you contract or subcontract with.
- Choose the date: the current one or a past one, within years that have not become time-barred.
- Click "Validar solicitud", confirm the data, tick "Conforme" and click "Firmar y Enviar".
- Download the document: if the result is positive and you are the holder with an electronic certificate, or an attorney, it is collected at once; if not, you collect it later under "Estado de tramitación de la solicitud" or "Consulta de certificados expedidos".
The in-person alternative is form 01C at an AEAT office, by appointment. Whoever files on paper receives the certificate at the address they indicate, and the G303 sheet gives 3 working days as the deadline, in line with the 3 days the law sets.
IRPF certificate
The IRPF tax certificate shows what you declared in the year you choose: whether you filed individually or jointly, and the economic and personal data of the return. If you were not required to file and did not file, it comes out as a negative certificate with the income the AEAT has on record, or states that there is no information.
You request it under Todas las gestiones, Certificados, Declaraciones Tributarias, in the IRPF certificate procedure, and it is obtained immediately. It is the only one that accepts, besides an electronic certificate, the electronic ID card and Cl@ve, the reference number of the current income tax campaign, whatever the year you ask for.
Tax residence certificate
It proves that you are tax resident in Spain. You request it under Todas las gestiones, Certificados, Censales, with Cl@ve, an electronic certificate or the electronic ID card.
In the request you choose the model, general or specific for article 2 of Directive 2011/96/EU, and the country: one with a treaty with Spain or "Sin convenio" (no treaty). The AEAT issues it immediately whenever possible; if you do not meet the requirements at that moment, it generates a refusal document and you can reopen the file by providing documents under "Presentar documentos y/o alegaciones".
What being tax resident means and how the 183 days are counted is explained in the guide to tax residence in Spain.
I need to prove X: which certificate to request
This is the table to decide. The first column is what they ask you for in practice.
| I need to prove that... | Request the certificate of... | Where on the Sede |
|---|---|---|
| I am registered as an autónomo or entrepreneur | Census status | Certificados, Censales |
| I am registered in the IAE | IAE | Certificados, Censales |
| I owe Hacienda nothing, for a grant or public contract | Being up to date | Certificados, Situación tributaria |
| My client is not liable for my taxes if they pay me | Contractors and subcontractors | Certificados, Solicitud |
| How much I declared and how much I earned in a year | IRPF | Certificados, Declaraciones Tributarias |
| I am tax resident in Spain, to another country | Tax residence | Certificados, Censales |
| I am an IVA taxable person or have an intra-community operator number | Status as IVA taxable person or intra-community operators | Certificados, Censales |
| I am exempt from withholding as a lessor | Exemption from withholding for lessors | Certificados, Censales |

How to request a Hacienda certificate online
The general steps are the same for almost all of them. For a full guide to identification, see digital certificate or Cl@ve. The Sede accepts the electronic certificate, the electronic ID card and Cl@ve; the IRPF one also accepts the reference number.
- Go to the AEAT's Sede and open Todas las gestiones, Certificados.
- Choose the relevant procedure (census, tax situation, tax returns or contractors request).
- Identify yourself with a certificate, the electronic ID card or Cl@ve.
- Fill in the request: date, purpose or country depending on the certificate, and sign with "Firmar y Enviar".
- Download it. If it is not issued at once, collect it under Consulta de certificados expedidos or Mis expedientes, within your personal area.
- Keep the full PDF: it carries the CSV that verifies it.

Tip
When they ask you for the certificate, ask how old it can be at most. The rules set how long it is valid, but whoever receives it can ask you for a recent one, and requesting it again on the Sede is usually immediate.
If you prefer not to do it online, you can request it at an AEAT office with form 01, by appointment, or with 01C if it is the contractors one. When the certificate cannot be handed over at the time, the AEAT sends it by post to your notification or tax address, or to the DEHú (Dirección Electrónica Habilitada única, the single electronic mailbox) if you are subscribed to electronic notifications. How the DEHú works is explained in Hacienda notifications.
How long each certificate takes and lasts
There are two different clocks: how long the AEAT takes to issue it and how long it stays valid for you.
How long it takes
- Online with a certificate, the electronic ID card or Cl@ve, it is generally generated immediately.
- Legal deadline: 20 days, unless the certificate's rules set another (article 73 of the regulations). Failure to issue within the deadline does not mean it is deemed positive.
- Contractors and subcontractors: issued or refused in 3 days from the request (article 43.1.f of the General Tax Law).
- Being up to date: collection is immediate if the result is positive.
How long it lasts
The general rule is in article 75.2 of the regulations: unless the certificate's specific rules say otherwise, they are valid for 12 months from issue, as long as the circumstances they certify do not change, if they refer to periodic obligations, or three months if they refer to non-periodic obligations. If your situation changes sooner (for example, you close an activity), the certificate no longer reflects it.
In the procedure sheets the AEAT does not give a different validity for census status, IAE or tax residence, so the general rule applies. What counts is what whoever asks for it requires.
Example with numbers: Dani, renovation subcontractor
Dani is self-employed and does renovations as a subcontractor for a construction firm. The firm pays him four invoices: €2,400 on 15 April 2026, €3,100 on 20 July, €1,800 on 20 November and €2,600 on 15 April 2027.
Dani requests the contractors and subcontractors certificate on 10 March 2026. It is good for payments up to 10 March 2027, that is, the following 12 months. It covers the first three payments. The fourth, on 15 April 2027, already falls outside.
- Payments with a certificate in force: 2,400 + 3,100 + 1,800 = €7,300.
- Payments without a certificate: €2,600.
- Total paid: 7,300 + 2,600 = €9,900.
The firm's liability is limited to the payments made without a valid certificate, which are those €2,600. That is why, before April 2027, Dani requests another certificate and gives it to the firm, and his client is not exposed for that payment.

How Melso helps
The certificate of being up to date depends on your returns being filed on time. At Melso, a professional prepares and files the quarterly returns for your profile after you approve the exact draft: you have the plan in Melso for autónomos.
What to do if the certificate comes out negative or cannot be issued
A negative certificate is not a punishment: it is a list of what is not shown as met. Under article 72, when it is negative it must state the circumstances, obligations or requirements not shown as met. And when what you declared does not match what the AEAT has checked, what was checked is certified.
- Read the reason: it is usually a return not filed or a debt in enforcement period.
- Regularise: file what is missing or pay, defer or split the debt, since deferred or split debts do not prevent a positive result.
- If you think the item is wrong, ask in writing for the change within 10 days from the day after receiving it. If the body considers it was incorrect, it issues a new one within 10 days.
- Request it again once it is resolved.
If the reason is that you have an AEAT letter unanswered, first see how to reply to a Hacienda requerimiento.
Common mistakes
Requesting the wrong certificate
The name matters: the IAE one and the census status one are two different procedures, and the contractors one is not the same as the generic up-to-date one. Ask which exact certificate whoever requests it accepts.
Letting the contractors one lapse
Whoever pays you needs one issued in the 12 months before the payment of each invoice. If you let it pass, the construction firm becomes liable again for those payments and will ask you for it again.
Requesting it before everything is filed
Compliance with an obligation is not certified while its deadline has not expired, and recent returns fall outside the 12-month window the AEAT looks at. If you have a return pending, file it before requesting the certificate.
Not keeping the PDF with the CSV
The CSV is what proves the document is authentic. A screenshot is no use. Download the PDF and send it in full.
Assuming the certificate exempts you
The certificate is informative and reflects a moment: it fixes nothing. If your situation changes, it stops reflecting it.
How Melso helps
Melso is your online gestoría (a private firm that handles tax and administrative paperwork), with an AI agent and human professionals behind it, and day-to-day communication is via WhatsApp, Telegram, email and web. You request the certificates yourself on the Sede with your Cl@ve or your certificate; what Melso does is make sure what determines a positive result is up to date. A Melso professional prepares and files the quarterly returns and the income tax return for your profile, after you approve the exact draft, and helps you with your registration as an autónomo. The Melso Pro plan costs €49 a month or €490 a year, includes replies to Hacienda requerimientos about what Melso files, and covers up to €30,000 a year of recargos (surcharges), penalties and late-payment interest resulting from an error or delay by Melso in an included return. See the plan and its price in pricing for autónomos, or if you are just starting, in registering as an autónomo.
This article is for information only and does not replace professional advice for your case. Last reviewed: 24 November 2026.
Sources
- General regulations on tax management and inspection (Real Decreto 1065/2007), articles 70 to 75: tax certificates, BOE (accessed )
- Ley 58/2003, General Tax Law, article 43 (secondary liability), BOE (accessed )
- Tax certificates: frequently asked questions on census status, AEAT (accessed )
- How to request and obtain a tax certificate on my census situation, AEAT (accessed )
- Tax certificates: technical help, AEAT (accessed )
- Request for a tax certificate of being up to date with tax obligations, AEAT (accessed )
- Request for a contractors and subcontractors certificate, AEAT (accessed )
- Request for an IRPF tax certificate, AEAT (accessed )
- Request for a tax residence certificate, AEAT (accessed )
- Tax certificate (contractors and subcontractors): procedure sheet G303, AEAT (accessed )
- Tax certificates, IAE: procedure sheet G309, AEAT (accessed )
- Local Treasuries Regulatory Law, article 82 (IAE exemptions), BOE (accessed )


