discount_rate (a percentage of quantity x unit_price) or
discount_amount, as decimal strings with at most 2 decimals, never both. There is no
invoice-level discount. The discount reduces the line before any tax: every tax of the line
(IVA, exempt IVA at 0%, INC, ICA) applies to quantity x unit_price minus the discount,
and a line marked is_excluded simply stays without IVA at its discounted value.
- 2 x 100,000 with
"discount_rate": "10"is a line of 180,000.00; with 19% IVA and 8% INC its taxes are 34,200.00 and 14,400.00. - A rate discount is rounded to 2 decimals (half to even). Send
discount_amountwhen your system already has the exact discounted amount. - An amount above
quantityxunit_priceor a rate above 100 answers422 invoice_invalid; both fields, or more than 2 decimals, answer422 validation_error. - The signed XML carries the discount as a line
AllowanceCharge(FBE01-FBE09). ItsLegalMonetaryTotal/AllowanceTotalAmountstays0.00, because it only sums invoice-level discounts (FAU08): the line values already include yours. - Credit and debit note lines take the same fields.