FactpyConsulta
Description
Section titled “Description”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.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | FactPy account API key |
| document_id | text | Conditional | FactPy internal DE ID |
| cdc | text | Conditional | Control Code (44 digits) assigned by SET |
At least
document_idorcdcis required.
Output
Section titled “Output”{ "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": { ... }}Usage Example
Section titled “Usage Example”{ "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
Related Nodes
Section titled “Related Nodes”- FactpyEmitir - Issue a DE
- FactpyCancelar - Cancel a DE