- When. After the DIAN accepts an invoice or a note, a worker emails the buyer’s
email(the customer’s e-mail of the document) once. Production only: the sandbox and the DIAN test stage never email anyone, and the delivery is recordedskipped(stage_not_production). - What. One ZIP holding the signed AttachedDocument (
ad...xml) and the PDF representación gráfica (ad...pdf), at most 2 MB; the subject isNIT; company name; number; document type; trade name, as Anexo 1.9 §9.1 prescribes. - From whom. From
no-reply@cufea.comwith your company’s name as the sender name; replies go to your company’s e-mail. The body says your company is the facturador electrónico and Cufea the software it used. - Turn it off with
"send_email": falseonPOST /v1/invoicesorPOST /v1/notes, and deliver it yourself:GET .../email-contentreturns the subject and the ZIP (base64),GET .../pdfthe PDF alone, in every stage. - Send it again, or to another address, with
POST .../send-email{"email": "...", "pdf_base64": "..."}(your own PDF is optional and replaces Cufea’s in the ZIP; it must carry the QR code of Anexo 1.9 §11.7). It sends at once and answers the newdelivery;502 email_unavailablemeans nothing was sent. Production only:409 email_unavailable_in_stageelsewhere. - Follow it in the document’s
delivery:statusispending,sent,failedorskipped, with areason(awaiting_acceptance,no_recipient,send_email_disabled,email_rejected…). A provider outage is retried after 1, 5 and 15 min, 1 h and 4 h (pending,email_unavailable) before it isfailed. The webhooksinvoice.delivered,invoice.delivery_failed,note.deliveredandnote.delivery_failedreportsentandfailed.
/v1/invoices/{document_id}/pdf|email-content|send-email and
/v1/notes/{credit|debit}/{document_id}/pdf|email-content|send-email.