# Tax compliance certificate in Spain: types, how to get it online and how long it lasts

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

What the Spanish certificate of being up to date with your tax obligations is, its types, how to request it on the AEAT's online office with Cl@ve or a digital certificate, how long it takes and lasts, when it comes out negative and what to do.

## Tax compliance certificate in Spain, in short

The tax compliance certificate is a document from the Agencia Tributaria (AEAT, Spain's tax agency) that proves you meet the conditions for being considered up to date with your tax obligations. You request it on the AEAT's electronic office, under Todas las gestiones, Certificados, Situación tributaria, and if it comes out positive you download it straight away. How long it stays valid depends on what you use it for.

> [!RESUMEN]
> - The certificate is positive when all the circumstances the regulations require are shown as met, and negative when they are not, and then it says which ones are missing.
> - You request it on the AEAT's electronic office with Cl@ve, an electronic certificate or the electronic ID card (DNIe), and if the result is positive, collection is immediate.
> - General validity is 12 months (periodic obligations) or three months (non-periodic), the grants one and the public-sector contracting one are valid for six months, and the contractors one is measured against the payment of each invoice, in the 12 months before.
> - Having a deferred, split or suspended debt does not stop the certificate from being positive, but a debt in enforcement period that is not deferred does.
> - If it comes out negative, the AEAT tells you which obligations are not shown as met: file what is missing, or regularise or defer the debt, and request it again.

## What the tax compliance certificate is

The AEAT defines a tax certificate as the document that proves facts about the tax situation of a taxpayer ([article 70 of the tax management and inspection regulations](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984)). There are census, IVA (VAT), income and other certificates; we go through them one by one in [Hacienda certificates](/en/blog/tax-certificates-spain-aeat). The one we deal with here, proof of being up to date with tax obligations, is the one self-employed people and companies are asked for most, because other people require it before giving you something: a grant, a contract or a payment.

It helps to settle three ideas from the start:

- **It is informative.** You cannot appeal a certificate. If you disagree with an item, you have 10 days from the day after you receive it to ask in writing for it to be changed ([article 73.4](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984)).
- **It reflects what is on record, not what you think you did.** When what you declared does not match what the AEAT has checked, it certifies what it checked ([article 72.1.b](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984)).
- **It comes from one specific tax authority.** Each tax authority certifies the obligations it is competent to enforce ([article 74.4](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984)). The AEAT one says nothing about your regional or foral taxes, or your Seguridad Social (Spanish social security) contributions.

It works the same for a self-employed person and for the director of an S.L. (a limited company), because the rule speaks of a "taxpayer". What changes is which returns are checked (the income tax return in one case, corporate tax in the other), not the procedure.

## What the AEAT checks: when you count as "up to date"

[Article 74 of the regulations](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984) lists the circumstances that are verified. For the general certificate they are these:

| Circumstance | What is checked |
| --- | --- |
| Census and IAE | Being registered in the Census of Entrepreneurs, Professionals and Withholding Agents if you are required to be, and in the IAE (business activities tax) if you are not exempt |
| Income tax or corporate tax | Having filed the self-assessments for IRPF (personal income tax), corporate tax or non-resident tax |
| Payments on account | Having filed the self-assessments and the annual summary of withholdings and instalment payments |
| IVA | Having filed the self-assessments, the annual summary and, where relevant, the EU intra-community summary returns |
| Local taxes | Having filed the returns and self-assessments for local taxes |
| Information to Hacienda | Having filed the information returns generally required (articles 93 and 94 of the General Tax Law) |
| Debts and penalties | Having no tax debts or penalties in enforcement period, unless they are deferred, paid in instalments or have their enforcement suspended |
| Tax crime | Having no fines or civil liabilities pending payment from a crime against the public treasury declared by a final judgment |

There is one more item, for excise duties and other environmental and energy taxes, which only affects those who pay them.

### Which period is reviewed

The AEAT does not go back indefinitely. The circumstances on filing the income tax or corporate tax return, payments on account, IVA, local taxes and excise duties refer to self-assessments whose filing deadline expired in the 12 months before the two months immediately preceding the date of the certificate ([article 74.3](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984)).

In plain words: if you request the certificate in mid-November 2026, the returns whose deadline expired roughly between mid-September 2025 and mid-September 2026 count. What expired in the last two months is not yet checked. Also, while the deadline to meet an obligation has not expired, compliance with it cannot be certified ([article 70.5](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984)).

## Types of tax compliance certificate

On the Sede, the request offers several types depending on what you need it for. The ones the [AEAT help page](https://sede.agenciatributaria.gob.es/Sede/ayuda/consultas-informaticas/certificados-tributarios-ayuda-tecnica/certificado-encontrarse-corriente-obligaciones-tributarias.html) lists are:

- **Generic**, for any use that does not have its own type.
- **For public grants.**
- **For contracting with the public sector.**
- **For transport authorisations.**
- **For work or residence authorisations for foreign nationals.**

Separately there is the **contractors and subcontractors certificate**, with its own procedure (G303) and its own request on the Sede.

### Certificate for grants and aid

If you apply for a grant, the regulations of the General Grants Law require you to prove you are up to date with the state tax authority and with the Seguridad Social through a positive administrative certificate ([article 22 of Real Decreto 887/2006](https://www.boe.es/buscar/act.php?id=BOE-A-2006-13371)). If you are not required to file the relevant returns, a responsible declaration (a signed statement of your own) is enough.

Two useful details. If the call's rules provide for it, submitting the application means authorising the granting body to obtain the certificate electronically, and you do not have to provide it, unless you refuse consent. And if the certificate does not arrive in time, you attach proof that you requested it to the application and submit it afterwards.

### Contractors and subcontractors certificate

This is the one the person who hires you asks for. 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 works or services belonging to their main activity is secondarily liable for the taxes the contractor must pass on and the withholdings the contractor must apply. That liability cannot be claimed if the contractor has handed over a specific certificate, issued in the 12 months before the payment of each invoice.

That is why a large company or a construction firm asks you for this certificate before paying you, and renews it every year if it keeps working with you. If you are self-employed and subcontract others, you can also ask them for it.

### Certificate for contracting with the public sector

In public-sector tenders it is usually requested when you are proposed as the winning bidder or when the tender specifications require it. The regulations of the Public Administrations Contracts Law say this certificate is valid for six months from issue ([article 16.3 of Real Decreto 1098/2001](https://www.boe.es/buscar/act.php?id=BOE-A-2001-19995)). Read the specifications before handing over an old one, because they set when and with what date it is required.

## How to request the certificate on the AEAT's electronic office

The route, according to the AEAT's own help, is **Sede electrónica, Todas las gestiones, Certificados, Situación tributaria**. You need to identify yourself with Cl@ve, an electronic certificate or the electronic ID card (DNIe). If you do not have a certificate yet, [how to get a digital certificate](/en/blog/digital-certificate-spain) explains the process.

![Five steps to request the tax compliance certificate on the AEAT's electronic office: go to Situación tributaria, identify yourself, choose the type of certificate and the date, sign and send, and download the certificate.](https://storage.googleapis.com/albert-489117-melso-blog-media/diagrams/en/certificado-estar-al-corriente-hacienda/1-steps-5295dedda3.png?w=1600&h=1034&m=1&mw=1080&mh=1824 "How to request the tax compliance certificate, step by step")

1. **Go to the AEAT's electronic office** and follow the route: Todas las gestiones, Certificados, Situación tributaria, Solicitud.
2. **Identify yourself** with Cl@ve, an electronic certificate or the electronic ID card.
3. **Select the type of representation**: in your own name or representing third parties. You only fill in the holder's details if you act for someone else.
4. **Tick the type of certificate** (generic, grants, contracting with the public sector, transport or immigration) and the date. You can request it on the current date or a past date, always within years that have not become time-barred. Click "Validar solicitud".
5. **Check the data and click "Firmar Enviar"**. On the next screen tick "Conforme" and click "Firmar y Enviar" again.
6. **Keep the receipt** and the request code. If the result is positive, and you or your representative request it, you download the certificate at that moment.

If collection is not immediate, the receipt shows the remarks. When the unit has processed the certificate, you collect it under "Estado de tramitación de la solicitud" or "Consulta de certificaciones expedidas", identifying yourself again.

The certificate carries a secure verification code (CSV). Whoever receives it, and is obliged to check it if it is a public administration, can verify its content and authenticity on the Sede with that code ([article 73.3](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984)).

### How to request the contractors and subcontractors certificate

The route is the same, Todas las gestiones, Certificados, Solicitud, but in this request you enter the tax ID (NIF) and name of the contractor or subcontractor, choose the date, and validate, sign and send ([AEAT help](https://sede.agenciatributaria.gob.es/Sede/ayuda/consultas-informaticas/certificados-tributarios-ayuda-tecnica/solicitud-certificado-contratistas-subcontratistas.html)). If the result is positive and you or your representative request it, you download it with "Descargar documento".

### Other routes: by appointment or by phone

If you have no means of electronic identification, you can request it at an AEAT office or delegation with an appointment, or by phone: you ask for an appointment and the AEAT contacts you. On paper, form 01 is used, except for contractors, which has its own form, 01C.

> [!IMPORTANTE]
> Do not give your Cl@ve or your digital certificate to a third party to "get the certificate for you". If someone does it for you, it should be with a documented representation, not with your credentials.

## How long the certificate takes

The answer depends on whether the result is positive.

- **Positive and requested by you or your representative on the Sede:** collection is immediate.
- **If it is not immediate:** the AEAT must issue it within 20 days, unless the rules for the certificate set another deadline ([article 73.1](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984)). The [G304 procedure](https://sede.agenciatributaria.gob.es/Sede/procedimientos/G304.shtml) counts them as working days. For grants, the regulations say the deadline in the certificate's own rules cannot exceed 20 days.
- **Contractors and subcontractors:** three days from the request, which the [G303 procedure](https://sede.agenciatributaria.gob.es/Sede/procedimientos/G303.shtml) counts as working days.

One detail worth remembering: unless stated otherwise, failure to issue within the deadline does not mean the certificate is deemed positive. In other words, the AEAT's silence is no use to you as a certificate.

## How long the certificate lasts: validity

The question of validity does not have a single answer. It depends on the rule that requires the certificate.

| Type | Validity | Rule |
| --- | --- | --- |
| General | 12 months from issue (periodic obligations) or three months (non-periodic), as long as circumstances do not change | Article 75.2 of the management regulations |
| Grants | Six months from issue | Article 23.3 of Real Decreto 887/2006 |
| Contracting with the public sector | Six months from issue | Article 16.3 of Real Decreto 1098/2001 |
| Contractors and subcontractors | Issued in the 12 months before the payment of each invoice | Article 43.1.f of the General Tax Law |

![The general certificate is valid for 12 months or three months, and the AEAT issues it in 20 days if it is not immediate. The grants one is valid for six months, with 20 days as the maximum to issue it. The contractors one is issued in three days and must be from the 12 months before each payment.](https://storage.googleapis.com/albert-489117-melso-blog-media/diagrams/en/certificado-estar-al-corriente-hacienda/2-compare-72acb773fb.png?w=1600&h=964&m=1&mw=1080&mh=1527 "Deadline and validity by type of certificate")

[Article 75.2](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984) adds that the 12 months of the general certificate hold as long as the circumstances that determine its content do not change. If you later stop filing a return or an enforcement-period debt reaches you, the certificate you already hold still reflects your situation on its date, but whoever asks for it can demand a recent one. For an important procedure, request the certificate the same day or shortly before.

## Positive and negative certificate

The regulations define the two situations ([article 72.1.b](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984)):

- **Positive:** all the required circumstances are shown as met. A generic mention of them is enough.
- **Negative:** one is not met, and the certificate must state which circumstances, obligations or requirements are not shown as met.

A negative certificate is not a penalty. It is a snapshot of your situation on that date, with the list of what is missing. What the other party does with that result is another matter: a call for grants treats it as an unmet requirement, and whoever was going to pay you as a contractor will not be able to escape their secondary liability with it.

### Who can request it for you

It can be requested by the taxpayer themselves, or by an administrative body or another person or entity that needs it, provided a law provides for it or you have given prior consent ([article 71.1](https://www.boe.es/buscar/act.php?id=BOE-A-2007-15984)). If a representative requests it, the representation must be proven. When a public administration needs an AEAT certificate to process a procedure, it must request it directly and cannot require you to provide it.

## Common uses: what it is for

| What they ask for it for | Who asks | What to know |
| --- | --- | --- |
| Public grants and aid | The granting body | Sometimes it obtains it directly with your authorisation. Valid for six months |
| Public tenders and contracts | The contracting body | Valid for six months. Read the specifications: they say when and with what date it is required |
| Clients who subcontract you | Your client, the payer | It must be from the 12 months before the payment of each invoice |
| Transport authorisations | The transport body | It has its own type on the Sede |
| Work or residence authorisations | Immigration | It has its own type on the Sede |

Some banks or suppliers also ask for it as proof of solvency. There is no rule that requires it there: it is a condition set by whoever asks.

## If the certificate comes out negative: what to do

The negative certificate says which obligations are not shown as met. With that list, the way forward depends on the cause.

| Cause | What to do |
| --- | --- |
| Return or self-assessment not filed | File it late as soon as possible, knowing it may carry a surcharge, and request the certificate again |
| Debt or penalty in enforcement period | Pay it, or ask for a deferral or instalment plan: deferred, split or suspended debts do not stop a positive certificate |
| You are not registered in the census or the IAE | File the relevant census return |
| A figure that does not match what you filed | Ask in writing for the change within 10 days of receiving it, with evidence |

### Pending returns

This is the most frequent cause. A quarter of the modelo 303 or 130 you missed, an annual summary or the income tax return. If you file it late and without a prior requerimiento (an official request from the AEAT), you pay a [late-filing surcharge](https://www.boe.es/buscar/act.php?id=BOE-A-2003-23186#a27) instead of a penalty, and filing makes that circumstance show as met. To avoid forgetting again, the [modelo 303](/en/blog/how-to-file-modelo-303) has its own deadlines guide.

### Debts in enforcement period

If the debt is already in enforcement period, you have to pay it or defer it. Deferring it is possible, but not automatic: you have to ask for it and have it admitted. How to apply, what security they may ask for and what interest applies is explained in [deferring a debt with Hacienda](/en/blog/hacienda-payment-plan).

> [!MELSO]
> If you do not want to track by hand which return is missing before requesting a certificate, Melso keeps the fiscal calendar for your profile and the professionals file what your plan includes after you approve. You have the plan and price in [Melso for autónomos](/en/precios/autonomos).

> [!CONSEJO]
> Before requesting the certificate for a procedure with a deadline, check your pending notifications on the Sede. An assessment or a requerimiento left unanswered may explain a negative result. In [Hacienda notifications](/en/blog/hacienda-notifications-spain) you can see where to find them and how long you have to open them.

### Unanswered requerimientos

An unanswered Hacienda requerimiento can end in an assessment or a penalty. If you have received one, the first thing is to know what they ask and by when: we cover it in [what a Hacienda requerimiento is](/en/blog/hacienda-letter-spain) and [how to reply to it](/en/blog/reply-to-hacienda-requerimiento-spain).

## Example with dates: two certificates, two validity periods

Elena is self-employed and designs interiors. She works as a subcontractor for a construction firm and also wants to apply for a municipal grant. She has filed all her modelos 303 and 130 and has no debts.

**For the construction firm.** She requests the contractors and subcontractors certificate on 15 January 2026 and hands it over. The firm pays her one invoice on 20 February 2026 and another on 30 August 2026. At both payments the certificate is within the 12 previous months, so the firm is covered. On 10 February 2027 it has to pay the third invoice: more than 12 months have passed since 15 January 2026, and the firm needs a new certificate before paying.

![Elena requests the certificate on 15 January 2026. The payments of 20 February and 30 August 2026 are covered. The payment of 10 February 2027 needs a new certificate, because more than 12 months have passed.](https://storage.googleapis.com/albert-489117-melso-blog-media/diagrams/en/certificado-estar-al-corriente-hacienda/3-timeline-1e69c22e03.png?w=1600&h=624&m=1&mw=1080&mh=1185 "Contractor certificate and the construction firm's payments")

**For the grant.** Elena requests the certificate for grants on 10 March 2026. It is valid for six months from issue, that is, until 10 September 2026. If the granting body asks her for the certificate in October, the March one is no use and she has to request another. Two certificates, two purposes and two different validity periods.

Check: from March to September is six months. From January 2026 to February 2027 is 13 months, one more than the 12 the contractor certificate covers.

## Common mistakes

### Requesting the certificate with a return still to file

If you have a quarter unfiled, the certificate will come out negative. File the return first and request the certificate afterwards.

### Confusing the AEAT certificate with the Seguridad Social one

They are different documents from different bodies. For a grant, both are usually required.

### Requesting the generic certificate when another type is required

If the call or the client asks for the contractors one, the generic one is not valid. Choose on the Sede the type named by whoever asks for it.

### Waiting until the last day to request it

If it is positive, you have it at once. If it is negative or needs review, it can take up to 20 days. If the call's deadline is short, request it with time to spare.

### Believing a deferred debt blocks it

It does not block it. A debt in enforcement period that is not deferred does. If you have one, regularise or defer it before requesting the certificate.

### Accepting an expired certificate

The general certificate lasts 12 or three months, the grants one and the public-sector contracting one six, and the contractor one only covers payments in the following 12 months. Check the date before handing it over.

## 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. What prevents a negative certificate is filing your returns on time: Melso keeps the fiscal calendar for your profile, and Melso professionals prepare, review and file the returns included in your plan, once you have approved the exact draft. The Melso Pro plan costs €49 a month or €490 a year, with no lock-in, 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 filed by Melso. The tax itself is not part of that cover. The next step is to check the plan in [pricing for autónomos](/en/precios/autonomos).

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

## Frequently asked questions

### What is the tax compliance certificate in Spain?

It is a document from the Agencia Tributaria (AEAT, Spain's tax agency) that proves you meet the conditions the regulations set for being considered up to date with your tax obligations: being registered in the census, having filed your returns and having no debts or penalties in enforcement period, unless they are deferred, paid in instalments or suspended. It is positive if you meet them all, and negative if not, and it says which ones are missing.

### How do you request the tax compliance certificate?

On the AEAT's electronic office (the Sede), under Todas las gestiones, Certificados, Situación tributaria. You identify yourself with Cl@ve, an electronic certificate or the electronic ID card (DNIe), choose the type of certificate (generic, public grants, contracting with the public sector or other) and the date, and sign and send the request. If the result is positive and you or your representative request it, you download it straight away.

### How long does the certificate take?

If the result is positive and you or your representative request it on the Sede, collection is immediate. If it is not, the AEAT has 20 days to issue it, unless the rules for that certificate set a different deadline, and for the contractors and subcontractors certificate the deadline is three days. The deadline passing without an answer does not mean the certificate is positive.

### How long is the tax compliance certificate valid?

It depends on what you use it for. As a general rule, tax certificates are valid for 12 months from issue if they refer to periodic obligations, or three months if they refer to non-periodic obligations, unless the specific rules say otherwise. Certificates for grants and for contracting with the public sector are valid for six months from issue. The contractors certificate must have been issued in the 12 months before each invoice is paid.

### Why is my certificate negative?

Because one of the required conditions is missing. The usual causes are a return or self-assessment not filed (a modelo 303, 130 or 111, the income tax return, the annual summary), a debt or penalty in enforcement period that is not deferred or suspended, or not being registered in the census or in the IAE (business activities tax). The negative certificate states which obligations are not shown as met.

### Does a deferred debt stop the certificate from being positive?

No. The general regulations on tax management and inspection require that you have no debts or penalties in enforcement period, unless they are deferred, paid in instalments or have their enforcement suspended. So deferring or splitting a debt in time generally lets you keep getting a positive certificate, as long as everything else is in order.

### Does the AEAT certificate work as a Social Security compliance certificate?

No. They are different certificates from different bodies. The AEAT one proves tax obligations and the Seguridad Social one proves contribution debts. To apply for a grant you are usually asked for both, because the regulations of the General Grants Law deal separately with meeting tax obligations and meeting Social Security obligations.

### Do I have to submit the certificate if I apply for a grant?

Not always. If the call's rules provide for it, submitting the application authorises the granting body to obtain the certificate electronically, unless you expressly refuse consent. In that case you do not have to provide it. If the rules do not provide for it, or you refuse, you do have to submit the positive certificate. Always read the call's rules.

## 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.1.f (secondary liability and the contractors certificate)](https://www.boe.es/buscar/act.php?id=BOE-A-2003-23186#a43), BOE, accessed 2026-11-24
- [Regulations of the General Grants Law (Real Decreto 887/2006), articles 18, 19, 22 and 23](https://www.boe.es/buscar/act.php?id=BOE-A-2006-13371), BOE, 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
- [Regulations of the Public Administrations Contracts Law (Real Decreto 1098/2001), articles 13 to 16 (certificates for contracting)](https://www.boe.es/buscar/act.php?id=BOE-A-2001-19995), BOE, accessed 2026-11-24
- [Procedure G304: issue of tax certificates](https://sede.agenciatributaria.gob.es/Sede/procedimientos/G304.shtml), AEAT, accessed 2026-11-24
- [Procedure G303: contractors and subcontractors certificates](https://sede.agenciatributaria.gob.es/Sede/procedimientos/G303.shtml), AEAT, accessed 2026-11-24
