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 request | Hacienda code in response | Description |
|---|---|---|
FacturaElectronica | 01 | Electronic invoice (FE) — requires an identified customer. |
NotaDebito | 02 | Debit note (ND) — requires a reference to a prior document. |
NotaCredito | 03 | Credit note (NC) — requires a reference to a prior document. |
TiqueteElectronico | 04 | Electronic 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–04codes.The enum ordinal (
1FE,2ND,3NC,4TE) 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.