OpenFacturaConsulta
Description
Section titled “Description”Queries the status of an Electronic Tax Document (DTE) previously issued to Chile’s SII through OpenFactura. It can be looked up by the internal ID returned by OpenFacturaDTE when the document was issued, or by the trackId assigned by the SII.
This is the node to use to check whether a DTE was accepted, is still being processed, or was rejected by the SII after submission.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | OpenFactura credential |
| dte_id | text | No | DTE ID in OpenFactura |
| track_id | text | No | Track ID assigned by the SII |
Credentials
Section titled “Credentials”This module requires an openfactura credential type with the following fields:
- API Key: OpenFactura/Haulmer API key (sent in the
apikeyheader) - Environment:
production(live environment) or any other value to use the test environment (sandbox)
Output
Section titled “Output”{ "success": true, "dte": { ... }, "status": "accepted", "folio": 1042, "pdf_url": "https://api.haulmer.com/v2/dte/document/12345/pdf", "raw": { ... }}Usage Example
Section titled “Usage Example”{ "credentials_id": "cred-openfactura-prod", "dte_id": "12345"}- Either
dte_idortrack_idmust be provided; if neither is set the node returns an error. dte_idis the identifier returned by OpenFacturaDTE when the document was issued;track_idis the SII’s own tracking number.- The
rawfield keeps OpenFactura’s full response for debugging. - Useful to retry downloading the PDF/XML only once the status has been accepted.
Related Nodes
Section titled “Related Nodes”- OpenFacturaDTE - Issue a DTE
- OpenFacturaPDF - Download a DTE’s PDF or XML