closed is a final state, and the document is never accepted. The DIAN closed it
without validating it (StatusCode 2), for example the habilitación document whose answer
reported “Set de prueba … se encuentra Aceptado”, or a “SoftwareID … no autorizado”.
- Read
dian_status_description(anddian_errors) on the document to see why. - Fix what it says (for a software authorisation, the tenant’s configuration).
- Reissue it as a new document: a new create, with a new
Idempotency-Keyand a newreference, which takes a new number. Calling/sendor/refreshon the closed document does not make it accepted.