FacturaApiResponseDto
Schema of the response body of POST /facturas and of GET /facturas/{clave}.
Fields
| Field | Type | Description |
|---|---|---|
clave | string | Official 50-digit Hacienda numeric key. Unique identifier of the document. |
numeroConsecutivo | string | 20-digit consecutive number assigned to the document. |
tipoDocumento | "01" | "02" | "03" | "04" | Hacienda code: 01 FE, 02 ND, 03 NC, 04 TE. |
estadoHacienda | string | Current status: procesando, recibido, aceptado, rechazado, or error. |
totalComprobante | number | Total of the document in the original currency. |
moneda | string | ISO currency code (or LX internal code). |
fechaEmision | string | Date 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;
}