Skip to main content
POST
Schedule a RADIAN event on an accepted invoice

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string | null

Makes the call safe to retry. Same key and same request: the first response is replayed with Idempotent-Replayed: true and nothing is done again. Same key and another request: 422 idempotency_key_reused. Same key while the first request still runs: 409 idempotency_in_progress. Keys belong to your account; they expire 24 hours after first use, after which the same key is usable again for a new request. A 5xx, 403, 404 or 409 answer is not stored, so the same key can be retried after it.

Required string length: 1 - 255

Path Parameters

invoice_id
string
required

Prefix and number, e.g. SETP990000001.

Body

application/json

A RADIAN event (030-034) about an invoice the DIAN accepted.

code
enum<string>
required

030 acuse, 031 reclamo, 032 recibo, 033/034.

Available options:
030,
031,
032,
033,
034
claim_concept
enum<string> | null

Reason of a 031 claim (AAH10); 031 only.

Available options:
01,
02,
03,
04
receiver_person
ReceiverPersonIn · object | null

Who received it (AAH11); 030 and 032 only.

Response

Successful Response

The receipt of an event create or re-queue request.

code
enum<string>
required

030...034.

Available options:
030,
031,
032,
033,
034
event_id
string
required

The saved event id, e.g. EV1.

invoice_id
string
required

The invoice the event belongs to.

send
enum<string>
required

queued: this call queued it. pending: one was already queued or running. sent: the DIAN already answered it. not_queued: the event is saved but the job queue failed; send it with POST .../events/{event_id}/send.

Available options:
queued,
pending,
sent,
not_queued
not_before
string<date-time> | null

Projected instant the worker may send it; null when it was not queued or already has an answer.