Spain B2G: Line-Level Charges

You can specify Charges at the line level in your requests.

Use the AllowanceCharge sub-element of the InvoiceLine element to model this information.

The Line-level Charge applies to the line.

For Spanish B2B Documents, the AllowanceChargeReason and Amount elements are mandatory.

You can also specify Charges at the Document level. Details are provided in the Spain B2G: Document-Level Charges topic.

Elements

ElementDescription
ChargeIndicatorTrue or false flag that indicates if this element is modeling an allowance or a charge. If set to false, it is an allowance. If set to true, it is a charge.
AllowanceChargeReasonCodeCode that specifies the reason for the allowance or charge. For allowances, you must use the UNCL 5819 codes listed here. For charges, you must use the UNCL 7161 codes listed here.
AllowanceChargeReasonText that describes the reason the Allowance or Charge is permitted.
MultiplierFactorNumericThe percentage that may be used, in conjunction with the document-level allowance base amount, to calculate the document-level allowance or charge amount.
AmountThe amount of the charge or allowance.
BaseAmountThe base amount to which a charge is added or an allowance is subtracted.
TaxCategorySee TaxCategory.

Example

<Invoice>
    <!-- code omitted for clarity -->
    <cac:InvoiceLine>
        <!-- code omitted for clarity -->
        <cac:AllowanceCharge>
            <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
            <cbc:AllowanceChargeReason>Allowance reason</cbc:AllowanceChargeReason>
            <cbc:MultiplierFactorNumeric>10.00</cbc:MultiplierFactorNumeric>
            <cbc:Amount currencyID="EUR">1.00</cbc:Amount>
        </cac:AllowanceCharge>
        <!-- code omitted for clarity -->
    </cac:InvoiceLine>
    <!-- code omitted for clarity -->
</Invoice>