Skip to main content
Send every monetary amount as a decimal string ("100.00", "-19.00", "0.19"). There is no wire-level cap on fractional digits.

tax_amount consistency

For each line_items[].taxes[] on a sale / return / exchange, OpenFiskal recomputes the expected tax_amount from the line’s total_amount (gross) and the rates on the same line, and rejects with 422 tax_amount_precision_invalid if it disagrees.
The divisor sums every rate on the line. Single-tax lines collapse to gross × rate / (1 + rate); multi-tax stacking (e.g. US state + municipal) checks every row against the full rate set. Comparison is strict at 8 decimal places: expected is rounded half-up to 8 dp and compared by numeric equality. Submit tax_amount rounded to 8 dp. The operation-level identity pretax_amount + tax_amount + tip_amount = total_amount is enforced separately and exactly.

rounded_cash_amount

A cash payment’s rounded_cash_amount may differ from its amount by at most half the smallest cash denomination of the currency: It must also be a whole multiple of the smallest cash denomination, since cash is made of coins that exist: 25.40 EUR, not 25.43. In any other currency it must equal amount. The bound catches a misplaced decimal; it does not require cash to be rounded, and it never changes the check that the payments add up to total_amount. See Cash rounding.