Skip to content

SifenConsultarLote

Queries SIFEN for the result of an already-sent batch of Electronic Documents (siResultLoteDE), using the protocol (dProtConsLote) returned by the SifenEnviarLote node. It returns the status of each DE in the batch and automatically reconciles the local database, marking each voucher as approved or rejected.

FieldTypeRequiredDescription
credentials_idcredentialsYesSIFEN credential
protocolotextNoBatch protocol (dProtConsLote). If left empty, taken from the input data

This module requires a sifen credential (.p12 certificate, RUC and environment). See the full field list in SifenEmitirDE.

{
"success": true,
"protocolo": "987654321",
"codigo": "0260",
"mensaje": "Proceso Lote recibido con éxito",
"total": 2,
"items": [
{ "cdc": "01800123456001001000001234567890123456789012", "estado": "Aprobado", "codigo": "0260", "mensaje": "Autorizado" },
{ "cdc": "01800123456001001000001234567890123456789013", "estado": "Rechazado", "codigo": "0450", "mensaje": "Invalid receiver RUC check digit" }
]
}
{
"credentials_id": "cred-sifen-prod",
"protocolo": "987654321"
}
  • SIFEN processes batches asynchronously; if there is no result yet, retry the query after a few seconds or minutes
  • Each result item updates the corresponding DE’s status in the local database by its CDC
  • A batch accepted by SIFEN does not mean every DE inside it is approved: each document can be approved or rejected individually