Bolivia SIAT Inbound
Parse inbound Bolivia SIAT fiscal XML, validate the CUF and reconcile to vendor bills
Bolivia SIAT Inbound
Parse supplier SIAT fiscal documents, validate the CUF, reconcile to vendor bills
A purpose-built tool for Bolivian taxpayers that receive electronic fiscal documents from their suppliers. It reads the supplier's SIAT XML (factura electronica and computarizada), decodes and validates the CUF (Codigo Unico de Factura) with the official Modulo 11 self-check, verifies the issuer NIT, and automatically reconciles each document against your vendor bills. A pure parser and reconciliation engine - it does not transmit anything to the SIN.
What it does
SIAT XML parser
Reads the canonical SIAT document structures
(facturaElectronicaCompraVenta,
facturaComputarizadaCompraVenta, export and
sector variants), namespace-tolerant, using the Python
standard library only. Header, parties, totals, payment
method, currency and all detail lines are extracted into a
clean Odoo document.
CUF decode & validation
The 54-digit CUF is decoded into its nine component fields (issuer NIT, date-time, branch, modality, emission type, invoice type, document sector, invoice number, sales point) and its Modulo 11 self-check digit is verified. Both the raw numeric form and the Base-16 presentation form are accepted and round-tripped, including the printed/QR form in which the CUFD control code follows the CUF: pass the document's CUFD and it is stripped before decoding. A value that is longer than a CUF and carries no CUFD is refused by name rather than decoded into a plausible but wrong issuer and date.
Automatic reconciliation
A weighted scoring engine matches each parsed document to the right vendor bill using CUF, issuer NIT, invoice number, total amount (within the tolerance you set on the company, in Bolivianos) and issue date. Amounts are only ever compared within the same currency, so a foreign-currency document is never matched to a same-numbered Boliviano bill. Matches are graded as reconciled, partial or unmatched, with a transparent per-criterion breakdown. The scheduled job runs only for companies that leave Auto-reconcile SIAT Documents ticked.
IVA & coherence checks
Computes the recoverable 13% IVA credito fiscal on credit-fiscal invoices, and validates that the document's line totals reconcile to its declared montoTotal, that the declared taxable base does not exceed that total (IVA in Bolivia is por dentro, so a base above the total would overstate the recoverable credit) and that the CUF-embedded NIT matches the document header.
Validation rules
| Code | Check |
|---|---|
| CUF-01/02 | CUF is well-formed and exactly 54 numeric digits (or valid Base-16). |
| CUF-03 | Modulo 11 self-check digit is correct. |
| CUF-04/05/06 | Modality, emission type and invoice type belong to the SIN catalogues. |
| CUF-07 | The CUF date-time field is a valid timestamp. |
| SIAT-10 | The NIT embedded in the CUF matches the document nitEmisor. |
| SIAT-11/12 | Issuer NIT and buyer document are structurally valid. |
| SIAT-13 | Detail line totals reconcile to the header montoTotal. |
Key features
- Batch import wizard - drop in one or many supplier SIAT XML files.
- Per-document and per-vendor-bill reconciliation buttons, plus a scheduled auto-reconcile job.
- CUF field on vendor bills with a one-click validation action.
- Bolivia NIT field on partners and the company, with structural validation.
- Decoded SIAT catalogues (modality, emission, document sector, payment method, currency) shown in clear labels.
- Full audit trail: raw XML stored, validation results, match score and chatter history.
Scope & boundary
This module is a pure parser and reconciliation engine for documents you have already received from your suppliers. It does not connect to, authenticate against, or transmit anything to the SIN / SIAT platform, and it is not a certified invoicing system. All processing happens inside your own Odoo database.
Screenshots
Inbound Documents
Import Xml
Update date: 2026-10-01
User guides (PDF)
Related modules
EU Distance-Sales
Monitor the EUR 10.000 pan-EU B2C distance-sales threshold, alert on crossing and switch to destination-VAT / OSS mode
EU Domiciliation Portal
Let customers sign and confirm SEPA direct-debit domiciliering/domiciliation mandates online with a full audit trail (BE/NL self-service onboarding)
EU OSS/IOSS Sales Ledger
Dedicated member-state-by-member-state OSS / IOSS sales ledger with rate tables and a per-country reconciliation worksheet