Spain B2G: Line-Level Withheld Taxes

You can model withheld taxes at the line level.

You can also model withheld taxes at the Document level as described in the Spain B2G: Document-Level Withheld Taxes topic.

Elements

This group contains the Line Withheld Tax Amount of the invoice and the corresponding withheld tax breakdowns.

Name (Technical Name)CardinalityDescription
Line Withheld Taxes (Invoice/InvoiceLine/WithholdingTaxTotal)0..1A group of elements providing information about withheld taxes applicable to the invoice line.

This group contains the following elements:

Name (Technical Name)CardinalityDescription
Invoice Total Withheld Tax Amount (TaxAmount)1..1The total withheld tax amount for the Document or line.
Withheld Tax Category Taxable Amount (TaxSubtotal/TaxableAmount)1..1Sum of all withheld taxable amounts subject to a specific tax category code and tax category rate (if the tax category rate is applicable).
Withheld Tax Category Tax Amount (TaxSubtotal/TaxAmount)1..1The total tax amount for a given withheld tax category.
Withheld Tax Category Code (TaxSubtotal/TaxCategory/ID)1..1Category and withholding tax code applied to the respective subtotal. You must use IRF. See Tax Categories and Schemes.
Withheld Tax Category Rate (TaxSubtotal/TaxCategory/Percentage)0..1The withheld tax rate, represented as percentage that applies for the relevant tax category.
Withheld Tax Exemption Reason Code (TaxSubtotal/TaxCategory/TaxExemptionReasonCode)0..1A coded statement of the reason for why the amount is exempted from withheld tax. See Tax Exemptions.
Withheld Tax Exemption Reason Text (TaxSubtotal/TaxCategory/TaxExemptionReason)0..1A textual statement of the reason why the amount is exempted from withheld tax. See Tax Exemptions.
Withheld Tax Scheme Code (TaxSubtotal/TaxCategory/TaxScheme/ID)1..1The scheme of the withheld tax category. See Tax Categories and Schemes.

Restrictions

You must use one of the following values for the Tax Scheme ID (TaxSubtotal/TaxCategory/TaxScheme/ID) element for Spainish B2G Documents:

VRBL ValueUBL ValueDescription
VRBL:ES:01VATValue-Added Tax
VRBL:ES:02Not applicableIPSI: Taxes on production, services and imports in Ceuta and Melilla
VRBL:ES:03Not applicableIGIC: Canaries General Indirect Tax
VRBL:ES:04Not applicableIRPF: Personal Income Tax
VRBL:ES:05OTHOther
VRBL:ES:06Not applicableITPAJD: Tax on wealth transfers and stamp duty
VRBL:ES:07Not applicableIE: Excise duties and consumption taxes
VRBL:ES:08Not applicableRa: Customs duties
VRBL:ES:09Not applicableIGTECM: Sales tax in Ceuta and Melilla
VRBL:ES:10Not applicableIECDPCAC: Excise duties on oil derivates in Canaries
VRBL:ES:11Not applicableIIIMAB: Tax on premises that affect the environment in the Balearic Islands
VRBL:ES:12Not applicableICIO: Tax on construction, installation and works
VRBL:ES:13Not applicableIMVDN: Local tax on unoccupied homes in Navarre
VRBL:ES:14Not applicableIMSN: Local tax on building plots in Navarre
VRBL:ES:15Not applicableIMGSN: Local sumptuary tax in Navarre
VRBL:ES:16Not applicableIMPN: Local tax on advertising in Navarre
VRBL:ES:17Not applicableREIVA: Special VAT for travel agencies
VRBL:ES:18Not applicableREIGIC: Special IGIC: for travel agencies
VRBL:ES:19Not applicableREIPSI: Special IPSI for travel agencies
VRBL:ES:20Not applicableIPS: Insurance premiums Tax
VRBL:ES:21Not applicableSWUA: Surcharge for Winding Up Activity
VRBL:ES:22Not applicableIVPEE: Tax on the value of electricity generation
VRBL:ES:23Not applicableTax on the production of spent nuclear fuel and radioactive waste from the generation of nuclear electric power
VRBL:ES:24Not applicableTax on the storage of spent nuclear energy and radioactive waste in centralised facilities
VRBL:ES:25Not applicableIDEC: Tax on bank deposits
VRBL:ES:26Not applicableExcise duty applied to manufactured tobacco in Canaries
VRBL:ES:27Not applicableIGFEI: Tax on Fluorinated Greenhouse Gases
VRBL:ES:28Not applicableIRNR: Non-resident Income Tax
VRBL:ES:29Not applicableCorporation Tax

Example

<Invoice>
    <!-- code omitted for clarity -->
    <cac:InvoiceLine>
        <!-- code omitted for clarity -->
        <cac:WithholdingTaxTotal>
            <cbc:TaxAmount currencyID="EUR">331.25</cbc:TaxAmount>
            <cac:TaxSubtotal>
                <cbc:TaxableAmount currencyID="EUR">1325</cbc:TaxableAmount>
                <cbc:TaxAmount currencyID="EUR">331.25</cbc:TaxAmount>
                <cac:TaxCategory>
                    <cbc:ID>S</cbc:ID>
                    <cbc:Percent>25.00</cbc:Percent>
                    <cac:TaxScheme>
                        <cbc:ID>VRBL:ES:17</cbc:ID>
                     </cac:TaxScheme>
                </cac:TaxCategory>
            </cac:TaxSubtotal>
        </cac:WithholdingTaxTotal>
        <!-- code omitted for clarity -->
    <cac:InvoiceLine>
    <!-- code omitted for clarity -->
</Invoice>