Skip to content

FactpyConsulta

Retrieves the status and full data of an Electronic Document registered in FactPy. Lets you check whether the DE was approved by the SET or is still pending processing.

FieldTypeRequiredDescription
credentials_idcredentialsYesFactPy account API key
document_idtextConditionalFactPy internal DE ID
cdctextConditionalControl Code (44 digits) assigned by SET

At least document_id or cdc is required.

{
"success": true,
"status": "approved",
"cdc": "01800123456001001000001234567890123456789012",
"kude_url": "https://app.factpy.com/kude/de-abc123",
"document": {
"id": "de-abc123",
"document_type": 1,
"date": "2025-12-01",
"receiver": { ... },
"items": [ ... ],
"total": 2750000
},
"raw": { ... }
}
{
"credentials_id": "cred-factpy-prod",
"document_id": "de-abc123"
}
  • Possible statuses: approved (accepted by SET), pending (processing), rejected (rejected), cancelled
  • If status is pending, retry the query after a few seconds