Skip to Content
v1.5Official documentation for the LX CloudPos API · stable in production

Hacienda outages

Interruptions to the Hacienda (Costa Rica’s tax authority) service are infrequent, but they happen. When it occurs, documents aren’t “lost”: LX CloudPos holds them and handles the retry. The important thing is to not reissue them in the meantime.

While Hacienda isn’t responding:

  • Issuances stay in estadoHacienda: "procesando" or "error".
  • LX CloudPos automatically retries with backoff.
  • The same document must not be reissued — it would create a fiscal duplicate that can’t be reversed without an NC.

Recommended handling: after a few minutes, query the status and alert the team if the document stays in procesando for too long. Don’t reissue it — just notify.

// If more than 30 min have passed and it's still "procesando": const factura = await consultarFactura(clave); if (factura.estadoHacienda === 'procesando') { const minutosTranscurridos = (Date.now() - new Date(factura.fechaEmision).getTime()) / 60000; if (minutosTranscurridos > 30) { // Notify the team, but don't reissue await alertar({ nivel: 'warning', mensaje: `Comprobante ${clave} en procesando hace ${minutosTranscurridos}min` }); } }