Skip to content

SIAT Bolivia — Electronic invoicing (SIN, Online Invoicing)

The SIAT nodes connect your workflows to Bolivia’s electronic invoicing (SIN — National Tax Service, Online Invoicing). The SIAT uses three codes: CUIS (system start), CUFD (daily, valid for 24h, with its control code) and CUF (per invoice, generated by the issuer). The invoice is an XML signed with XMLDSig and sent over SOAP (GZIP-compressed).

NodeWhat it does
SIAT: Get CUFD (siatObtenerCufd)Gets the daily CUFD + control code (and CUIS)
SIAT: Issue invoice (siatEmitirFactura)Generates the CUF, builds the XML, signs and sends it
SIAT: Cancel invoice (siatAnular)Cancels an invoice by its CUF with a reason code
SIAT: Rendering / QR (siatRepresentacion)Generates the printable representation with QR

The nodes use a credential of type SIAT. Create it under Credentials → Add → Bolivia / SIN (SIAT) with:

FieldDescription
Issuer NITThe tax ID number.
Certificate (.p12)With its password; used to sign.
SIN Apikey / TokenThe delegated token to authenticate the WS.
System codeThe one assigned when registering your system.
Branch / Point of saleCodes of the issuing point.
Modality1 online electronic, 2 computerized.
EnvironmentTest (pilot) or Production.

Node: SIAT: Get CUFD. Returns the daily CUFD and its control code. Check Get CUIS if you don’t have the CUIS yet. Save those values to pass to the issuing nodes (or leave them in the credential).

Node: SIAT: Issue invoice. precioUnitario values are VAT-inclusive (Bolivia). Pass the valid cufd and codigo_control.

{
"comprador": { "nit": "987654321", "razonSocial": "Bolivia Client SA", "tipoDocumento": 5 },
"items": [
{ "descripcion": "Consulting service", "cantidad": 1, "precioUnitario": 113, "codigoProductoSin": "99100", "actividadEconomica": "620000" }
]
}

Buyer’s tipoDocumento: 1 ID card, 5 NIT. The node generates the CUF, returns the reception code and the QR.

Node: SIAT: Cancel invoice. Cancels by CUF with a reason code from the SIN catalog (1 wrongly issued invoice, etc.). Requires a valid CUFD.

Node: SIAT: Rendering / QR. Generates the printable rendering in HTML (exportable to PDF), with the CUF, the lookup QR and the SIN’s mandatory legend.

SituationRetryableWhat to do
SIN rejects / observesNoThe node returns the messages. Fix the invoice.
Expired CUFDNoGet a new CUFD (lasts 24h).
Invalid apikeyNoCheck the SIN delegated token.
Network / TimeoutYesTransient; automatically retried.