Electronic document
POST /co/dian/electronic-document/v1
A result is reused for 24 hours per
cufe, document_number and
include_pdf (X-Cache: HIT), so an event filed after the first lookup does
not show until the window ends. When you know the record changed, send
"cache": false to read the registry again: the answer is X-Cache: MISS,
it is charged as a new request, and it replaces the stored one.This lookup can take longer than a typical request. It’s an
async job. By default the request waits inline and returns
{ data }, or you can poll / use a callback_url.Doctrine search
POST /co/dian/doctrina-search/v1
Full-text search over DIAN’s published doctrine and the legal compilation kept
with it: oficios, conceptos, decretos, resoluciones, leyes, and high-court
rulings.
Pass a result’s
document_id to the lookup below to read the full text. The id
is the document’s own identifier and does not always match its visible label, so
always take it from a search result rather than composing it.
Doctrine document
POST /co/dian/doctrina/v1
Most oficios and conceptos fit in a single response. Compiled norms run to
millions of characters, so the body comes back in ranges: read
content.total_length for the full size, and while content.has_more is true
request the next range with offset set to content.next_offset.
Full reference
Full schema and an interactive playground.