Saltar al contenido principal
POST
Ask the DIAN which events of an invoice are registered

Autorizaciones

Authorization
string
header
requerido

Send your Cufea API key as Authorization: Bearer <key>.

Parámetros de ruta

invoice_id
string
requerido

Prefix and number, e.g. SETP990000001.

Respuesta

Successful Response

The RADIAN event chain of an invoice, derived from its history.

accepted
enum<string>[]
requerido

Codes the DIAN accepted, oldest first.

RADIAN events of a sales invoice (TB/13.3.1 Eventos de un Documento Electrónico).

The description of each code is the literal AAH04 requires in DocumentResponse/Response/cbc:Description (anexo19.txt:15426, 15566, 15748, 15827; 032 at 31565-31567).

Opciones disponibles:
030,
031,
032,
033,
034
events
EventRecord · object[]
requerido

Saved events, oldest first, with their derived state.

invoice_id
string
requerido

The invoice the events belong to.

next_allowed
enum<string>[]
requerido

Codes that may be sent today under the chain and timing rules, in code order.

RADIAN events of a sales invoice (TB/13.3.1 Eventos de un Documento Electrónico).

The description of each code is the literal AAH04 requires in DocumentResponse/Response/cbc:Description (anexo19.txt:15426, 15566, 15748, 15827; 032 at 31565-31567).

Opciones disponibles:
030,
031,
032,
033,
034
notes_blocked
enum<string> | null

The accepted 033 or 034 that closes the invoice to notes, if any.

Opciones disponibles:
030,
031,
032,
033,
034