When a Portuguese client withholds tax on fees paid to a Spanish consultancy for work performed predominantly in Spain, the starting point is the 1995 Spain–Portugal Convention for the Avoidance of Double Taxation. Whether that withholding is justified – and whether it can be reduced or recovered – depends on correctly characterising the service under the treaty, establishing that no permanent establishment or fixed base existed in Portugal, and following the prescribed procedural steps for treaty relief. Getting those three elements right requires coordinated documentary and procedural work across both jurisdictions before deadlines for refund or correction expire.
The Recognisable Problem
A Spanish engineering and advisory firm completes a due diligence engagement for a Portuguese hotel acquisition. The work is researched and produced in Madrid; the team travels to Lisbon on two occasions for site visits and stakeholder meetings. The Portuguese client pays the final invoice but deducts withholding tax on the full amount, citing an obligation under Portuguese domestic law. The client then asks for confirmation that a reduced or zero rate applies under the tax treaty – a step that should have been settled before payment, not after it.
This pattern is common in cross-border professional services. The payor believes it has a domestic obligation to withhold; the payee believes the treaty exempts the payment entirely; neither party has taken the steps required to invoke treaty relief at source. The result is a cash-flow problem, a documentation gap, and a potential double-taxation exposure that sits unresolved while both sides try to close the project.
The firm's managing partner wants a clean exit: recover the withheld amount or confirm a tax credit in Spain, without converting a consultancy fee into a prolonged bilateral dispute. That is achievable in principle, but it requires acting promptly on two fronts simultaneously – the Portuguese refund or correction procedure and the Spanish tax credit position – and assembling evidence that many firms do not have ready to hand.
What Is Really at Stake
The financial exposure has several layers, each with its own timeline:
- The withheld amount itself. Under Article 4 of the Portuguese Corporate Income Tax Code (Código do IRC), non-resident entities providing services to Portuguese resident companies may be subject to withholding tax at a rate set by domestic law, unless a treaty reduces or eliminates that obligation. The standard domestic withholding rate applicable to service fees paid to non-resident legal entities is currently 25% for corporate taxpayers, as set out in Article 94(4) of the Código do IRC. If the treaty applies and the conditions are met, that rate may fall to zero.
- Double taxation. Spain taxes its resident entities on worldwide income. If Portugal retains a portion of the gross fee and Spain taxes the net receipt without granting a full foreign tax credit, the effective tax burden on the same income exceeds what either state alone would levy – the classic double-taxation outcome the convention is designed to prevent.
- Permanent establishment risk. If the two visits to Portugal are characterised, incorrectly, as constituting a fixed base or service permanent establishment, Portugal could assert taxing rights over a broader portion of the firm's profits, not merely the fee in question. That risk must be assessed and neutralised early.
- Reputational and contractual risk. The Portuguese client is asking for documentation the Spanish firm has not yet provided. Delay or failure to respond may affect the commercial relationship and, depending on the contract terms, could trigger further payment conditions.
- Procedural deadlines. Both Portuguese and Spanish tax procedures impose time limits on refund claims, corrective assessments, and mutual agreement procedure requests. Missing those windows can extinguish rights that exist on the merits.
If your firm has received a withholding deduction on a cross-border services invoice and needs an initial assessment of the treaty position, our team can help map the issues. Write to info@ferrazwhitmore.com or visit our contacts page.
The Legal Fork: Applicable Law and Key Treaty Provisions
Characterising the Income Under the Treaty
The Spain–Portugal Convention for the Avoidance of Double Taxation, signed on 26 October 1993 and in force since 28 June 1995, follows the OECD Model Convention closely. The first question is which article governs consulting and professional service fees paid to a corporate entity.
For corporate taxpayers, the relevant article is typically Article 7 (Business Profits). Under Article 7, profits of a Spanish enterprise are taxable only in Spain unless the enterprise carries on business in Portugal through a permanent establishment situated there. If a permanent establishment exists, Portugal may tax only the profits attributable to it. Where Article 7 applies and there is no permanent establishment, Portugal has no right to withhold at source, and any withholding that has occurred is in excess of what the treaty permits.
Article 12 of the convention, which covers royalties, is sometimes invoked for technical service fees in certain treaty interpretations, but under the Spain–Portugal treaty – and consistent with OECD Commentary – fees for professional or consulting services rendered by a corporate entity are generally treated as business profits under Article 7, not as royalties under Article 12, unless the payment is for the use of industrial know-how in a form that meets the royalty definition. The correct characterisation matters because it determines which article – and which withholding rule – applies.
Permanent Establishment: The Two-Visit Question
Article 5 of the Spain–Portugal convention defines permanent establishment. The core concept is a fixed place of business through which the enterprise wholly or partly carries on its business. Brief attendance at client meetings on two occasions does not, without more, constitute a fixed place of business. The OECD Commentary to Article 5 (2017 update, as reflected in the OECD Model Tax Convention on Income and on Capital) makes clear that a temporary presence without a degree of permanence and without the enterprise having a right of use over the premises does not create a permanent establishment.
Some treaties include a service permanent establishment provision (a "service PE" clause) that deems a PE to exist where an enterprise furnishes services through employees or other personnel present in the other state for a period or periods exceeding a threshold (commonly 183 days in any twelve-month period). The 1993 Spain–Portugal convention, in its original text, does not contain a service PE provision of that form. Accordingly, the two visits must be assessed solely against the fixed-place-of-business and dependent-agent tests in Article 5. On the facts as described – two meetings, work performed and managed from Madrid – those tests are unlikely to be met, though a full analysis of the contract, deliverables, and presence records is necessary before any conclusion can be drawn.
Portuguese Domestic Withholding Obligation and the Treaty Override
Portugal's domestic rule under Article 94 of the Código do IRC requires the resident payor to withhold tax on certain payments to non-residents. However, where a tax treaty applies and reduces or eliminates the withholding obligation, Portuguese law provides a mechanism for the non-resident to claim relief at source or by refund. The applicable procedure is governed by Portaria n.º 215/2017 of 20 July 2017 (which revised and consolidated the administrative forms and procedures for treaty relief claims in Portugal), together with the instructions issued by the Autoridade Tributária e Aduaneira (AT), Portugal's tax authority.
Under that procedure, the non-resident payee – the Spanish consultancy – must provide the Portuguese payor with a Certificate of Residence issued by the Spanish tax authority (Agencia Tributaria) using the prescribed form (or a form accepted by the AT), confirming that the entity is resident in Spain for tax purposes and covered by the convention. Where relief is claimed at source (before withholding), the certificate must typically be presented before payment. Where the tax has already been withheld, the non-resident may apply for a refund through the AT using Form RFI (Reembolso/Isenção – Non-Residents), within the limitation period applicable to refund claims under Portuguese law.
The Spanish Tax Credit Position
Independently of the Portuguese procedure, the Spanish entity must consider its position under Spanish corporate income tax law. Spain's Ley del Impuesto sobre Sociedades (Ley 27/2014, de 27 de noviembre) provides, in Article 31, for a deduction for double taxation relief in respect of foreign taxes paid on income included in the Spanish tax base. Where Portuguese withholding tax has been paid on income that is also subject to Spanish corporate tax, the Spanish entity may claim a credit for the foreign tax, subject to the conditions and limits set out in that article and in the convention.
The credit route and the Portuguese refund route are not mutually exclusive in terms of initiating both, but they interact: if a full refund is obtained from Portugal, there is no residual credit to claim in Spain. Conversely, if the Spanish entity has already offset the foreign tax against its Spanish liability, a subsequent Portuguese refund would need to be reflected in the Spanish return. Coordination between the two procedures is essential to avoid an over-recovery or a compliance inconsistency.
Realistic Routes and Their Trade-offs
| Route | What It Involves | Potential Advantage | Limitation or Risk |
|---|---|---|---|
| Treaty relief – refund via AT (Form RFI) | Non-resident submits refund claim to AT supported by residence certificate, contract summary, and evidence of no PE in Portugal. | Full recovery of withheld amount if treaty exemption applies. Straightforward if documentation is in order. | Requires timely action within refund limitation period. AT may request additional evidence. Processing times can extend to several months. |
| Payor-side correction | Portuguese client corrects the withholding by filing an amended return with the AT and paying back the over-withheld amount to the Spanish firm. | Faster than a direct non-resident refund claim if the client is cooperative and the correction is straightforward. | Requires client cooperation and their own exposure to AT scrutiny. Not always commercially feasible. |
| Spanish foreign tax credit | Spanish entity claims credit for Portuguese withholding against Spanish CIT liability under Article 31 of Ley 27/2014. | Neutralises double taxation without requiring a Portuguese refund process. | Credit may be capped; does not recover cash withheld in Portugal; requires the Portuguese tax to be legally due, which is contested here. |
| Mutual Agreement Procedure (MAP) | Either competent authority (Agencia Tributaria or AT) is asked to resolve the double-taxation issue under Article 25 of the convention. | Formal bilateral resolution; can produce a binding outcome between states. | MAP is slow (typically one to three years), resource-intensive, and is a last resort rather than a first step. It does not suspend domestic deadlines. |
In most cases involving a single engagement, a well-documented treaty relief claim via the AT refund procedure, combined with a protective Spanish credit position, is the most proportionate route. MAP should be reserved for cases where the competent authorities disagree on the treaty interpretation or where the amount in dispute justifies the investment.
Typical Mistakes and What Cannot Be Promised
Mistakes That Compound the Problem
- Submitting only a residence certificate. A certificate of residence confirms that the Spanish entity is treaty-resident; it does not, by itself, establish that the payment falls under Article 7, that no PE exists, or that the specific conditions for treaty relief are met. The AT frequently requests additional information. Submitting a bare certificate without a supporting letter describing the nature of the services, where they were performed, and the absence of a fixed base in Portugal will slow the process and may lead to a rejection.
- Treating any physical presence as a PE trigger. Two meetings in Portugal do not automatically create a permanent establishment. The applicable test is the fixed-place-of-business test under Article 5 of the convention. Overstating the PE risk and accepting the withholding as inevitable is an error that forfeits a recoverable sum.
- Missing the refund limitation period. Portuguese law imposes time limits on refund claims by non-residents. These run from the date of withholding, not from the date the error is discovered. A Spanish firm that waits too long while seeking internal sign-off may find that the procedural right to claim has lapsed.
- Inconsistent positions in Spain and Portugal. If the Spanish entity claims a full foreign tax credit in Spain on the basis that the Portuguese withholding was lawful, and simultaneously claims in Portugal that the withholding was unlawful, the positions are contradictory. Both must be managed coherently.
- Ignoring the contract characterisation. If the consultancy agreement contains language that could be read as a licence of know-how or technical know-how, the AT might seek to characterise the payment as a royalty under Article 12, which carries different treaty treatment. The contract must be reviewed with this risk in mind.
What Cannot Be Promised
No adviser can guarantee that the AT will accept a treaty relief claim, that a refund will be processed within any given period, or that the Spanish Agencia Tributaria will accept the foreign tax credit without query. The analysis set out here describes the applicable legal framework and the procedural options; the outcome in any specific case depends on the facts, the documentation, and the discretion of the relevant authorities. Courts in both countries have considered disputes of this kind, but judicial outcomes are fact-specific and precedent is not always directly transferable.
Documents and Evidence Required
The strength of a treaty relief claim depends almost entirely on the quality of the documentary record assembled before submission. The following categories of evidence are typically required or highly relevant:
- Consultancy contract: The signed agreement between the Spanish firm and the Portuguese client, clearly describing the scope of services, the place of performance, and the fee structure.
- Deliverables and work product records: Dated files, reports, emails, and project management records showing that the substantive work was performed in Spain, by personnel based in Madrid.
- Travel and meeting records: Passport stamps, flight records, hotel receipts, and meeting agendas for the two visits to Portugal. These demonstrate the limited and temporary nature of the physical presence.
- Payroll and personnel records: Evidence that the individuals who performed the work are employed and tax-resident in Spain, working from Spanish premises.
- Residence certificate: Issued by the Agencia Tributaria, confirming that the Spanish entity is resident in Spain for the purposes of the Spain–Portugal convention. The certificate must be current and use a form accepted by the AT.
- Invoices: All invoices submitted by the Spanish firm to the Portuguese client, including the final invoice on which withholding was applied.
- Proof of withholding: The withholding receipt or the payment confirmation showing the gross amount invoiced, the amount withheld, and the net amount paid. In Portugal, the payor is required to provide the non-resident with a declaration confirming the withholding (declaração de retenção na fonte).
- Portuguese withholding return: The return filed by the Portuguese client with the AT declaring and remitting the withheld tax (Declaração Mensal de Remunerações – DMR, or the relevant non-resident withholding form).
- Form RFI (or current equivalent): The AT's prescribed form for non-resident treaty relief refund claims. The correct form and instructions are published on the AT's official website.
A chronology document mapping each piece of evidence to the relevant treaty article and procedural requirement is a useful tool for presenting the claim clearly and pre-empting AT queries.
If you are unsure which documents you have and which are missing, an initial review by an adviser experienced in Portugal–Spain treaty matters can help identify gaps before submission. Contact us at info@ferrazwhitmore.com or through our contacts page to request an assessment.
Timelines and Cost Drivers
Key Deadlines
The limitation period for refund claims by non-residents under Portuguese tax law is governed by the Lei Geral Tributária (LGT) and the Código de Procedimento e de Processo Tributário (CPPT). Article 43 of the LGT provides for interest on tax credits owed to taxpayers; refund claims must generally be submitted within two years of the payment of the tax (or of the date it became due), though the precise period applicable to withholding tax refunds for non-residents should be verified against the current text of the CPPT and any AT administrative guidance. The critical point is that this period runs from the date the tax was withheld and remitted, not from the date the taxpayer first seeks advice. Delay is therefore costly in a literal sense.
In Spain, the period for amending a corporate income tax return to include or adjust a foreign tax credit is four years from the end of the voluntary filing period for the relevant year, under Article 66 of the LGT española (Ley 58/2003, de 17 de diciembre). This period is longer, but it is not infinite, and it runs concurrently with the Portuguese deadline.
If a MAP request is contemplated, Article 25(1) of the Spain–Portugal convention requires that the case be presented to the competent authority within three years of the first notification of the action resulting in taxation not in accordance with the convention. This three-year window is a hard limit under the treaty text.
Cost and Complexity Drivers
- Amount at stake. At a 25% domestic withholding rate on a material consulting fee, the withheld amount may be significant. The commercial case for investing in a proper claim depends on the quantum.
- Documentation readiness. If deliverables, travel records, and personnel records are well-organised, the evidence-assembly phase is short. If they must be reconstructed from email archives or third-party sources, the work is more intensive.
- AT responsiveness. The AT's processing times for non-resident refund claims vary. Claims that are complete and well-presented tend to progress more quickly than those requiring multiple rounds of supplementary information requests.
- Need for local representation. Ferraz & Whitmore operates as an independent legal advisory firm; for formal representation before the AT or the Agencia Tributaria in contentious proceedings, engagement of locally licensed tax advisers or attorneys in Portugal and Spain will be necessary. That coordination can be facilitated through our network, but it is a cost factor to plan for.
- Currency and interest. The AT pays interest on refunds made beyond a statutory period. This is not a reason to delay filing, but it is a factor in the total recovery calculation.
Decision Checklist
- Confirm that the Spanish entity is a corporate taxpayer covered by the Spain–Portugal convention as a resident of Spain.
- Obtain and review the signed consultancy contract to confirm service characterisation under Article 7 (business profits) rather than Article 12 (royalties).
- Compile a country-of-performance analysis: map each deliverable, billing milestone, and workstream to the location where it was produced, with supporting evidence.
- Document the two visits to Portugal: dates, purpose, duration, premises used (were they the client's premises?), personnel involved. Assess whether any element of the fixed-place or dependent-agent test is engaged.
- Obtain a current, valid residence certificate from the Agencia Tributaria in the form accepted by the AT.
- Obtain from the Portuguese client the declaração de retenção na fonte confirming the amount withheld and the date of remittance to the AT.
- Calculate the limitation period for the Portuguese refund claim and set a submission deadline.
- Assess the Spanish foreign tax credit position for the same tax year and decide whether a protective claim or return amendment is warranted while the Portuguese procedure is pending.
- Prepare a cover letter for the AT claim summarising: the treaty basis, the service characterisation, the absence of a PE, and the evidence submitted.
- Engage licensed Portuguese tax counsel to file the RFI claim with the AT and to respond to any requests for additional information.
- Engage Spanish tax advisers to handle any Agencia Tributaria queries arising from the foreign tax credit position.
- Consider whether MAP is appropriate if the AT rejects the claim on treaty interpretation grounds and the amount justifies bilateral engagement.
Ferraz & Whitmore can coordinate the initial evidence review, prepare the cross-border issue map, and work alongside licensed tax and legal professionals in both Portugal and Spain to manage the process from assessment to submission. To begin, write to info@ferrazwhitmore.com or visit our contacts page.
Sources
- Spain–Portugal Double Taxation Convention (OJ L 274, 17.11.1995) – treaty text governing business profits (Art. 7), royalties (Art. 12), PE definition (Art. 5), and MAP (Art. 25); retrieved 2026
- OECD Model Tax Convention on Income and on Capital (Condensed Version 2017) – Commentary to Articles 5 and 7 on PE definition and business profits characterisation; retrieved 2026
- Código do IRC (Portugal) – Articles 4 and 94 on non-resident taxation and withholding tax obligations; retrieved 2026
- Lei Geral Tributária – LGT (Portugal) – Article 43 on refund interest and limitation periods for tax claims; retrieved 2026
- Autoridade Tributária e Aduaneira – Non-Resident Withholding Tax Relief Forms (Form RFI) – procedural forms and instructions for treaty relief refund claims; retrieved 2026
- Ley 27/2014, de 27 de noviembre, del Impuesto sobre Sociedades (Spain) – Article 31 on foreign tax credit for Spanish corporate taxpayers; retrieved 2026
- Ley 58/2003, de 17 de diciembre, General Tributaria (Spain) – Article 66 on four-year limitation period for tax assessments and return amendments; retrieved 2026
- OECD – Mutual Agreement Procedure Country Profiles – Spain and Portugal MAP statistics and procedural information; retrieved 2026
- Portaria n.º 215/2017, de 20 de julho (Portugal) – administrative procedures and forms for treaty-based withholding tax relief in Portugal; retrieved 2026
Disclaimer: This article describes a model client situation for informational purposes only and does not constitute legal advice, nor does it reflect an actual Ferraz & Whitmore engagement or outcome. Legal routes are described as options, not guarantees. Applicable law, procedure and the right to provide a given service in each jurisdiction must be confirmed for any specific matter. Ferraz & Whitmore is an independent legal advisory firm based in Lisbon, Portugal; where local representation is required, it works with licensed local counsel. For advice on your situation, contact info@ferrazwhitmore.com.