Skip to Content
v1.5Official documentation for the LX CloudPos API · stable in production
v1.5 (current)Data modelEnum TipoComprobanteApi

Enum TipoComprobanteApi

Identifies the type of electronic tax document (comprobante electrónico) to issue. In the request you send the enum name; in the response, LX CloudPos returns the equivalent Hacienda numeric code.

enum TipoComprobanteApi { FacturaElectronica = "FacturaElectronica", // maps to Hacienda type "01" NotaDebito = "NotaDebito", // "02" NotaCredito = "NotaCredito", // "03" TiqueteElectronico = "TiqueteElectronico" // "04" }
Value in requestHacienda code in responseDescription
FacturaElectronica01Electronic invoice (FE) — requires an identified customer.
NotaDebito02Debit note (ND) — requires a reference to a prior document.
NotaCredito03Credit note (NC) — requires a reference to a prior document.
TiqueteElectronico04Electronic ticket (TE) — customer optional.

The asymmetry (string in the request, code in the response) is intentional: it keeps consistency with the rest of the Costa Rican tax ecosystem, which uses the 01–04 codes.

The enum ordinal (1 FE, 2 ND, 3 NC, 4 TE) is also accepted for compatibility. Keep in mind that this ordinal is not the Hacienda code and is easy to confuse, so it’s recommended to always use the name.

The purchase electronic invoice (08) is not in this enum: it’s issued through its own endpoint, with its own DTO.