Skip to main content
Cufea calculates the totals: you send quantities, unit prices before tax and tax rates, never an amount. Each line’s amount and each tax are rounded to 2 decimals (half to even, Anexo §5.2.1), and the invoice totals are the sums of those rounded amounts. Every invoice and note response (create, get, send, refresh, the lists and GET /v1/documents) carries the calculated amounts as JSON, read from the signed XML, so they are exactly what the DIAN receives. Amounts are decimal strings with 2 decimals.
  • Exempt IVA is a taxes entry at percent 0.00. Lines without IVA (sent with is_excluded, or without IVA at all) have is_excluded: true, and taxes ends with one IVA entry with is_excluded: true, percent: null, their summed net amount as taxable_amount and 0.00 as tax_amount: the XML informs no IVA for them.
  • The debit note totals come from RequestedMonetaryTotal, with the same fields.
  • Compared with Factus data.totals, data.taxes and data.items, the names follow the UBL element each value comes from, so you can check any amount against the XML.
A shelf price that already includes the tax can therefore differ from the invoice total by a few cents. A price of 190,000 with 19% IVA is a unit price of 159,663.87, whose IVA is 30,336.14, for a total of 190,000.01. Cufea takes no tax-included price and no expected total: invoice the total Cufea calculated, and record the difference against the shelf price as rounding in your own books.