Skip to main content
POST
DIAN Electronic Document

Authorizations

Authorization
string
header
required

Use Authorization: Bearer YOUR_API_KEY

Headers

Prefer
string

Set wait=N to hold the connection up to N seconds for an inline result. If the job finishes in time you get the normal 200 body; otherwise a 202 with a status_url to poll.

Example:

"wait=30"

Body

application/json
cufe
string
required

CUFE/CUDE (unique electronic-document code) or UUID of the document.

Required string length: 30 - 100
Pattern: ^[A-Za-z0-9-]{30,100}$
document_number
string
required

Colombian NIT (numeric, no verification digit). 4-15 digits.

Required string length: 4 - 15
Pattern: ^\d{4,15}$
callback_url
string<uri>

POST the job result here when it finishes.

Response

Successful response

data
object
required