You can obtain the original XML from an invoice or other electronic tax document (DTE), the same one that the issuer sent to the SII.
How it works
- You indicate the company and the documents you need, up to 50 per consultation.
- For each document you receive a download link.
- Open the link and download the file. You don't need to re-identify yourself, because the link already has its own authorization.
- Links last up to 1 hour. If it expires, you order a new one.
- If a document doesn't have XML, doesn't exist or doesn't belong to that company, the answer tells you that. For example: "The document exists but it doesn't have XML". The others are delivered the same.
Learn more at documentación de la API.