Skip to main content
A discount is per line: send 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_amount when your system already has the exact discounted amount.
  • An amount above quantity x unit_price or a rate above 100 answers 422 invoice_invalid; both fields, or more than 2 decimals, answer 422 validation_error.
  • The signed XML carries the discount as a line AllowanceCharge (FBE01-FBE09). Its LegalMonetaryTotal/AllowanceTotalAmount stays 0.00, because it only sums invoice-level discounts (FAU08): the line values already include yours.
  • Credit and debit note lines take the same fields.