Portugal: Withholding Tax Total

In some cases, you may want to model withheld tax.

Use the WithholdingTaxTotal element to model the tax details.

Use the WithholdingTaxTotalExtension Extension to specify a description of the tax.

Elements

ElementDescription
Invoice/WithholdingTaxTotal/TaxAmountThe total withheld tax amount.
Invoice/WithholdingTaxTotal/TaxSubtotal/UBLExtensions/UBLExtension/UBLExtensionContent/ WithholdingTaxSubtotalExtension/DescriptionText description of the withholding tax category.
Invoice/WithholdingTaxTotal/TaxSubtotal/TaxAmountWithheld tax amount of the current breakdown
Invoice/WithholdingTaxTotal/TaxSubtotal/TaxCategory/IDCategory and withholding tax code applied to the respective subtotal. You must use IRF.
Invoice/WithholdingTaxTotal/TaxSubtotal/TaxCategory/TaxScheme/IDTax scheme not required in Portuguese context, but mandatory for syntactical reasons. Provide value: VAT.

Restrictions

  • You must IRF for the TaxCategory/ID element.
  • You must use VAT for the TasSchemeID element.

Example

<ubl:Invoice>
    <!-- Code omitted for clarity -->
    <cac:WithholdingTaxTotal>
        <cbc:TaxAmount currencyID="EUR">10.00</cbc:TaxAmount>
        <cac:TaxSubtotal>
            <cec:UBLExtensions>
                <cec:UBLExtension>
                    <cec:ExtensionContent>
                        <vrbl:WithholdingTaxSubtotalExtension>
                            <cbc:Description>Withholding tax description</cbc:Description>
                        </vrbl:WithholdingTaxSubtotalExtension>
                    </cec:ExtensionContent>
                </cec:UBLExtension>
            </cec:UBLExtensions>
            <cbc:TaxAmount currencyID="EUR">10.00</cbc:TaxAmount>
            <cac:TaxCategory>
                <cbc:ID>IFR</cbc:ID>
                <cac:TaxScheme>
                    <cbc:ID>VAT</cbc:ID>
                </cac:TaxScheme>
            </cac:TaxCategory>
        </cac:TaxSubtotal>
    </cac:WithholdingTaxTotal>
    <!-- Code omitted for clarity -->
</ubl:Invoice>