Skip to content

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

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.

By Albert SalguedaReviewed by Equipo Melso, Revisión editorialPublished 13 min read
Desk of a self-employed woman with an open laptop, a folder of documents with an approval stamp and a cup of coffee.

In short

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

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.

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). There are census, IVA (VAT), income and other certificates; we go through them one by one in Hacienda certificates. 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).
  • 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).
  • It comes from one specific tax authority. Each tax authority certifies the obligations it is competent to enforce (article 74.4). 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 lists the circumstances that are verified. For the general certificate they are these:

CircumstanceWhat is checked
Census and IAEBeing 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 taxHaving filed the self-assessments for IRPF (personal income tax), corporate tax or non-resident tax
Payments on accountHaving filed the self-assessments and the annual summary of withholdings and instalment payments
IVAHaving filed the self-assessments, the annual summary and, where relevant, the EU intra-community summary returns
Local taxesHaving filed the returns and self-assessments for local taxes
Information to HaciendaHaving filed the information returns generally required (articles 93 and 94 of the General Tax Law)
Debts and penaltiesHaving no tax debts or penalties in enforcement period, unless they are deferred, paid in instalments or have their enforcement suspended
Tax crimeHaving 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).

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

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 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). 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: 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). 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 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.(opens the image in a new tab)
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).

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

Important

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). The G304 procedure 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 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.

TypeValidityRule
General12 months from issue (periodic obligations) or three months (non-periodic), as long as circumstances do not changeArticle 75.2 of the management regulations
GrantsSix months from issueArticle 23.3 of Real Decreto 887/2006
Contracting with the public sectorSix months from issueArticle 16.3 of Real Decreto 1098/2001
Contractors and subcontractorsIssued in the 12 months before the payment of each invoiceArticle 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.(opens the image in a new tab)
Deadline and validity by type of certificate

Article 75.2 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):

  • 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). 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 forWho asksWhat to know
Public grants and aidThe granting bodySometimes it obtains it directly with your authorisation. Valid for six months
Public tenders and contractsThe contracting bodyValid for six months. Read the specifications: they say when and with what date it is required
Clients who subcontract youYour client, the payerIt must be from the 12 months before the payment of each invoice
Transport authorisationsThe transport bodyIt has its own type on the Sede
Work or residence authorisationsImmigrationIt 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.

CauseWhat to do
Return or self-assessment not filedFile it late as soon as possible, knowing it may carry a surcharge, and request the certificate again
Debt or penalty in enforcement periodPay 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 IAEFile the relevant census return
A figure that does not match what you filedAsk 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 instead of a penalty, and filing makes that circumstance show as met. To avoid forgetting again, the 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.

How Melso helps

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.

Tip

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 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 and how to reply to it.

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.(opens the image in a new tab)
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.

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

Sources

  1. General regulations on tax management and inspection (Real Decreto 1065/2007), articles 70 to 75 (tax certificates), BOE (accessed )
  2. Ley 58/2003, General Tax Law, article 43.1.f (secondary liability and the contractors certificate), BOE (accessed )
  3. Regulations of the General Grants Law (Real Decreto 887/2006), articles 18, 19, 22 and 23, BOE (accessed )
  4. Request for a tax certificate of being up to date with tax obligations, AEAT (accessed )
  5. Request for a contractors and subcontractors certificate, AEAT (accessed )
  6. Regulations of the Public Administrations Contracts Law (Real Decreto 1098/2001), articles 13 to 16 (certificates for contracting), BOE (accessed )
  7. Procedure G304: issue of tax certificates, AEAT (accessed )
  8. Procedure G303: contractors and subcontractors certificates, AEAT (accessed )
Back to top

Frequently asked questions. What people ask us most.

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.

Invoice and calendar for a self-employed content creator, with VAT, withholding and form 349.

Taxes and income tax

Taxes for content creators in Spain

Taxes for a self-employed content creator in Spain in 2026: when to register, IAE group 869, VAT on platforms and brands, withholding, payment in kind, forms 130, 303 and 349, and a worked quarter.

14 min read

Less paperwork.
More time for you.

Start with Melso or tell us about your case on WhatsApp.

Chat on WhatsApp (opens in a new tab)
  • No lock-in
  • Real professionals
  • Mistakes covered