# Tax certificates in Spain (AEAT): which ones exist, what each is for and how to request them online

URL: https://melso.ai/en/blog/tax-certificates-spain-aeat
Published: 2026-11-24 · Updated: 2026-11-24

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.

## 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.

> [!RESUMEN]
> - 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.

## What a tax certificate is and who issues it

A tax certificate is, according to [article 70 of the tax management and inspection regulations](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984), 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](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984), 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](/en/blog/modelo-036-spain), 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](/en/blog/iae-headings-autonomo-spain).

## 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](https://www.boe.es/buscar/act.php?id=BOE-A-2004-4214#a82)): 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](/en/blog/tax-compliance-certificate-spain). 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](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984), the AEAT considers you up to date when:

1. You are registered in the census and, if you are not exempt, in the IAE.
2. You have filed the IRPF, corporate tax or non-resident tax self-assessments that apply to you.
3. You have filed the self-assessments and the annual summary of payments on account (withholdings and instalment payments).
4. You have filed the IVA self-assessments and annual summary and, where relevant, the intra-community transactions summary returns.
5. You have filed the local tax returns and the information-supply returns that apply to you.
6. You have no debts or penalties in enforcement period, unless they are deferred, paid in instalments or suspended.
7. 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.

> [!IMPORTANTE]
> 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](https://www.boe.es/buscar/act.php?id=BOE-A-2003-23186#a43): 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](https://sede.agenciatributaria.gob.es/Sede/ayuda/consultas-informaticas/certificados-tributarios-ayuda-tecnica/solicitud-certificado-contratistas-subcontratistas.html):

1. On the Sede go to **Todas las gestiones, Certificados, Solicitud** in the contractors and subcontractors procedure.
2. 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.
3. Enter the NIF and the name or company name of the person or entity you contract or subcontract with.
4. Choose the date: the current one or a past one, within years that have not become time-barred.
5. Click "Validar solicitud", confirm the data, tick "Conforme" and click "Firmar y Enviar".
6. 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](/en/blog/spanish-tax-residency).

## 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 |

![If you are asked to prove you are up to date with payments and it is a contractor who subcontracts you, request the contractors and subcontractors one; if it is another body, the up-to-date one. If you are asked to prove your registration, the census status one. In the other cases, look at the table.](https://storage.googleapis.com/albert-489117-melso-blog-media/diagrams/en/certificados-tributarios-hacienda/1-decision-9a07098b5b.png?w=1600&h=1276&m=1&mw=1080&mh=2784 "Which Hacienda certificate are you asked for?")

## 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](/en/blog/digital-certificate-spain). The Sede accepts the electronic certificate, the electronic ID card and Cl@ve; the IRPF one also accepts the reference number.

1. Go to the AEAT's Sede and open **Todas las gestiones, Certificados**.
2. Choose the relevant procedure (census, tax situation, tax returns or contractors request).
3. Identify yourself with a certificate, the electronic ID card or Cl@ve.
4. Fill in the request: date, purpose or country depending on the certificate, and sign with "Firmar y Enviar".
5. Download it. If it is not issued at once, collect it under Consulta de certificados expedidos or Mis expedientes, within your personal area.
6. Keep the full PDF: it carries the CSV that verifies it.

![Five steps: go to Todas las gestiones and Certificados, choose the procedure, identify yourself with Cl@ve or a certificate, sign and send the request and download the PDF with its secure verification code.](https://storage.googleapis.com/albert-489117-melso-blog-media/diagrams/en/certificados-tributarios-hacienda/2-steps-cf992f0522.png?w=1600&h=988&m=1&mw=1080&mh=1620 "How to request a tax certificate online")

> [!CONSEJO]
> 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](/en/blog/hacienda-notifications-spain).

## 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](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984)). 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](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984): 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.

![The construction firm pays 9,900 euros in four invoices. The March 2026 certificate covers 2,400, 3,100 and 1,800 euros. 2,600 euros remain paid without a certificate in force.](https://storage.googleapis.com/albert-489117-melso-blog-media/diagrams/en/certificados-tributarios-hacienda/3-breakdown-6648819424.png?w=1600&h=814&m=1&mw=1080&mh=1425 "Illustrative example")

> [!MELSO]
> 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](/en/precios/autonomos).

## 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](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984), 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.

1. Read the reason: it is usually a return not filed or a debt in enforcement period.
2. Regularise: file what is missing or pay, defer or split the debt, since deferred or split debts do not prevent a positive result.
3. 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.
4. 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](/en/blog/reply-to-hacienda-requerimiento-spain).

## 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](/en/precios/autonomos), or if you are just starting, in [registering as an autónomo](/en/tramites/alta).

> This article is for information only and does not replace professional advice for your case. Last reviewed: 24 November 2026.

## Frequently asked questions

### How long does Hacienda take to issue a tax certificate?

If you request it online with an electronic certificate, the electronic ID card (DNIe) or Cl@ve, the AEAT (Spain's tax agency) generally issues it on the spot and you download it from the Sede (its electronic office). If it cannot hand it over at once, you collect it later in your personal area. The legal deadline is 20 days, unless the certificate's own rules set another: the contractors and subcontractors one is issued or refused in 3 days.

### How long is a Hacienda certificate valid?

Unless its specific rules say otherwise, a tax certificate is valid for 12 months from issue, as long as the circumstances it certifies do not change, if it refers to periodic obligations, and three months if it refers to non-periodic obligations (article 75.2 of the management and inspection regulations). In addition, whoever asks for it can demand a more recent one.

### What is the difference between the census status certificate and the IAE registration certificate?

The census status one shows your data in the AEAT census as a taxpayer, entrepreneur, professional or withholding agent. The IAE one proves your registration in the Impuesto sobre Actividades Económicas (business activities tax). They are two separate procedures on the Sede, under Certificados, Censales. Individuals are exempt from paying IAE, so ask whoever requests it which one they accept.

### Can I request a Hacienda certificate without a digital certificate?

Yes. For almost all of them you can identify yourself on the Sede with Cl@ve, which the AEAT accepts alongside the electronic certificate and the electronic ID card. The IRPF certificate also accepts the reference number of the income tax campaign. You can also request it in person with form 01 at an AEAT office, by appointment, or with 01C if it is the contractors one.

### What happens if the certificate comes out negative?

A negative certificate states which circumstances or obligations are not shown as met, for example a return not filed or a debt in enforcement period. Immediate delivery is reserved for the positive result. Regularise what is pending and request it again. If an item is wrong, you have 10 days from receiving it to ask in writing for it to be changed.

### Can my gestor request the certificate for me?

Yes. The request can be made through a representative, who must prove the representation. On the Sede you tick that you act on behalf of third parties and enter the holder's tax ID (NIF). The certificate only includes data of the taxpayer it refers to, with no third-party data. Whoever files needs their own electronic identification and the proven representation.

### How do I check that a Hacienda certificate is genuine?

Every certificate carries a secure verification code (CSV). With it you check its content, authenticity and validity on the AEAT's Sede, under Cotejo de documentos mediante código seguro de verificación. Copies have the same effects as the original when that check can be made with the code. If they ask for it on paper, print the full PDF.

### Which certificate do I need if I work as a subcontractor?

The specific contractors and subcontractors certificate. Whoever hires or subcontracts you is secondarily liable for your passed-on taxes and withholdings unless you give them that certificate, issued in the 12 months before the payment of each invoice. You request it on the Sede, under Todas las gestiones, Certificados, Solicitud. The AEAT issues or refuses it in 3 days.

## Sources

- [General regulations on tax management and inspection (Real Decreto 1065/2007), articles 70 to 75: tax certificates](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984), BOE, accessed 2026-11-24
- [Ley 58/2003, General Tax Law, article 43 (secondary liability)](https://www.boe.es/buscar/act.php?id=BOE-A-2003-23186#a43), BOE, accessed 2026-11-24
- [Tax certificates: frequently asked questions on census status](https://sede.agenciatributaria.gob.es/Sede/certificaciones/censales/certificados-trib_____de-certificados-tributarios-situacion-censal/preguntas-frecuentes.html), AEAT, accessed 2026-11-24
- [How to request and obtain a tax certificate on my census situation](https://sede.agenciatributaria.gob.es/Sede/censos-nif-domicilio-fiscal/solicitar-obtener-certificado-tributario-sobre-censo.html), AEAT, accessed 2026-11-24
- [Tax certificates: technical help](https://sede.agenciatributaria.gob.es/Sede/ayuda/consultas-informaticas/certificados-tributarios-ayuda-tecnica.html), AEAT, accessed 2026-11-24
- [Request for a tax certificate of being up to date with tax obligations](https://sede.agenciatributaria.gob.es/Sede/ayuda/consultas-informaticas/certificados-tributarios-ayuda-tecnica/certificado-encontrarse-corriente-obligaciones-tributarias.html), AEAT, accessed 2026-11-24
- [Request for a contractors and subcontractors certificate](https://sede.agenciatributaria.gob.es/Sede/ayuda/consultas-informaticas/certificados-tributarios-ayuda-tecnica/solicitud-certificado-contratistas-subcontratistas.html), AEAT, accessed 2026-11-24
- [Request for an IRPF tax certificate](https://sede.agenciatributaria.gob.es/Sede/ayuda/consultas-informaticas/certificados-tributarios-ayuda-tecnica/solicitud-certificado-tributario-irpf.html), AEAT, accessed 2026-11-24
- [Request for a tax residence certificate](https://sede.agenciatributaria.gob.es/Sede/ayuda/consultas-informaticas/certificados-tributarios-ayuda-tecnica/solicitud-certificado-tributario-residencia-fiscal.html), AEAT, accessed 2026-11-24
- [Tax certificate (contractors and subcontractors): procedure sheet G303](https://sede.agenciatributaria.gob.es/Sede/procedimientos/G303.shtml), AEAT, accessed 2026-11-24
- [Tax certificates, IAE: procedure sheet G309](https://sede.agenciatributaria.gob.es/Sede/procedimientos/G309.shtml), AEAT, accessed 2026-11-24
- [Local Treasuries Regulatory Law, article 82 (IAE exemptions)](https://www.boe.es/buscar/act.php?id=BOE-A-2004-4214#a82), BOE, accessed 2026-11-24
