Skip to content

OpenFacturaConsulta

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.

FieldTypeRequiredDescription
credentials_idcredentialsYesOpenFactura credential
dte_idtextNoDTE ID in OpenFactura
track_idtextNoTrack ID assigned by the SII

This module requires an openfactura credential type with the following fields:

  • API Key: OpenFactura/Haulmer API key (sent in the apikey header)
  • Environment: production (live environment) or any other value to use the test environment (sandbox)
{
"success": true,
"dte": { ... },
"status": "accepted",
"folio": 1042,
"pdf_url": "https://api.haulmer.com/v2/dte/document/12345/pdf",
"raw": { ... }
}
{
"credentials_id": "cred-openfactura-prod",
"dte_id": "12345"
}
  • Either dte_id or track_id must be provided; if neither is set the node returns an error.
  • dte_id is the identifier returned by OpenFacturaDTE when the document was issued; track_id is the SII’s own tracking number.
  • The raw field keeps OpenFactura’s full response for debugging.
  • Useful to retry downloading the PDF/XML only once the status has been accepted.