When integrating accounting in Spain, withholding taxes are not a corner case or an advanced topic, they are a structural part of how invoicing works. Missing them, misunderstanding them, or modeling them incorrectly will almost certainly lead to broken integrations, incorrect totals, or non-compliant accounting entries.
This is especially true for teams coming from non-Spanish accounting systems, where withholding taxes often don’t exist at all.
What are Spanish withholding taxes, and why do they matter?
In Spain, certain invoices are subject to withholding taxes (retenciones). Instead of paying the full invoice amount to the supplier, the customer withholds part of it and pays that amount directly to the tax authorities on behalf of the supplier.
The supplier receives a net amount, reduced by the withholding.
This mechanism mainly applies in two cases:
- IRPF (Impuesto sobre la Renta de las Personas Físicas): typically for freelancers and self-employed professionals.
- Corporate Income Tax (Impuesto sobre Sociedades): in some specific B2B cases.
Withholding taxes are extremely common in Spain. They are not optional, and they are not rare edge cases. If your product handles Spanish invoices, you will encounter them.
Why withholding taxes are tricky for integrations
For teams unfamiliar with Spanish accounting, withholding taxes are often confusing because they behave very differently from VAT:
- They do not increase the invoice total but they reduce the payable amount.
- They are not line-level taxes.
- They must coexist with standard VAT rates (21%, 10%, 4%) on the same invoice.
- They impact totals, reconciliation, and tax reporting in a very specific way.
This means that modeling withholding taxes incorrectly, for example as a normal VAT line, almost always leads to validation errors or incorrect accounting entries, especially when integrating multiple ERP systems.
What Spanish users expect (and non-Spanish users must understand)
- For Spanish businesses: withholding taxes are a well-known local specificity. They expect them to be handled correctly, consistently, and without workarounds. Regardless of the accounting software behind the scenes.
- For non-Spanish businesses: withholding taxes are something you must be aware of before expanding to Spain. Ignoring them is one of the fastest ways to break an otherwise solid accounting integration.
Either way, withholding taxes must be treated as a first-class accounting concept, not a hack.
How Chift handles Spanish withholding taxes
Chift was designed to reflect how Spanish accounting actually works, not to force Spanish rules into generic tax models.
The key points are simple:
- Withholding taxes are declared at the invoice header level, not on lines.
- Chift requires:
- a withholding tax rate
- a withholding-specific tax code
- a withholding amount (negative, as it reduces the payable total)
- Chift applies strict validations to ensure:
- invoice totals are mathematically correct
- VAT reporting remains accurate
- invoices are accepted consistently across all supported accounting systems
This guarantees that an invoice with withholding tax is created correctly no matter which ERP or accounting software is used underneath.
Why this matters for your product
Spanish withholding taxes are not a technical detail, they are a business reality. Any product that claims to support Spanish accounting must handle them properly, transparently, and reliably.
Chift does this natively, across all its accounting connectors, without custom logic per system and without hidden assumptions.
If you’re integrating accounting in Spain, this is not something to “figure out later”. It’s something you need to get right from day one.
For implementation details, validation rules, and API examples, refer to our technical documentation.

.jpg)
.webp)
.webp)
.webp)






.webp)


















.avif)



