Discounts (Allowances)
Discounts are represented at line level in the price structure: the gross price (BT-148) is reduced by the allowance (BT-147), which yields the net price (BT-146).
<ram:GrossPriceProductTradePrice>
<ram:ChargeAmount>100.00</ram:ChargeAmount> <!-- BT-148: Bruttopreis -->
<ram:AppliedTradeAllowanceCharge>
<ram:ChargeIndicator>
<udt:Indicator>false</udt:Indicator> <!-- false = Nachlass -->
</ram:ChargeIndicator>
<ram:ActualAmount>10.00</ram:ActualAmount> <!-- BT-147: Nachlass -->
</ram:AppliedTradeAllowanceCharge>
</ram:GrossPriceProductTradePrice>
<ram:NetPriceProductTradePrice>
<ram:ChargeAmount>90.00</ram:ChargeAmount> <!-- BT-146: Nettopreis -->
</ram:NetPriceProductTradePrice>
Shipping
Shipping costs are a charge at document level (BG-21):
<ram:SpecifiedTradeAllowanceCharge>
<ram:ChargeIndicator>
<udt:Indicator>true</udt:Indicator> <!-- true = Zuschlag -->
</ram:ChargeIndicator>
<ram:ActualAmount>29.41</ram:ActualAmount> <!-- BT-99 -->
<ram:Reason>Shipping charges</ram:Reason> <!-- BT-104 -->
<ram:CategoryTradeTax>
<ram:TypeCode>VAT</ram:TypeCode>
<ram:CategoryCode>S</ram:CategoryCode> <!-- BT-102 -->
<ram:RateApplicablePercent>19.00</ram:RateApplicablePercent> <!-- BT-103 -->
</ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
The shipping charge feeds into ChargeTotalAmount (BT-108) and thereby increases the tax basis amount (BT-109) – see Amount Calculation. The VAT category and the rate of the shipping (BT-102/BT-103) are derived from the shipping tax configured in Magento.