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

FacturaApiResponseDto

Schema of the response body of POST /facturas and of GET /facturas/{clave}.

Fields

FieldTypeDescription
clavestringOfficial 50-digit Hacienda numeric key. Unique identifier of the document.
numeroConsecutivostring20-digit consecutive number assigned to the document.
tipoDocumento"01" | "02" | "03" | "04"Hacienda code: 01 FE, 02 ND, 03 NC, 04 TE.
estadoHaciendastringCurrent status: procesando, recibido, aceptado, rechazado, or error.
totalComprobantenumberTotal of the document in the original currency.
monedastringISO currency code (or LX internal code).
fechaEmisionstringDate and time of issuance, in ISO 8601 UTC format.
interface FacturaApiResponseDto { /** 50-digit key. Official unique identifier. */ clave: string; /** 20-digit consecutive number. */ numeroConsecutivo: string; /** Type: "01" FE, "02" ND, "03" NC, "04" TE. */ tipoDocumento: "01" | "02" | "03" | "04"; /** Current status. See Hacienda catalog. */ estadoHacienda: "procesando" | "recibido" | "aceptado" | "rechazado" | "error"; /** Total of the document in the original currency. */ totalComprobante: number; /** ISO currency or internal code. */ moneda: string; /** ISO 8601 UTC. */ fechaEmision: string; }