Skip to Content
SelloDeveloper docs
Guides

Inbound email address

Give suppliers one address per emisor; Sello ingests the comprobantes and Hacienda's respuestas they mail to it.

Each emisor has its own inbound address, <token>@<domain>. Suppliers mail their comprobantes to it, and Sello puts each one in the emisor's inbox the same way an upload does. A supplier invoice that nobody uploads still reaches the inbox, so you can file its Mensaje Receptor before the deadline.

The feature is on only when the deployment has an inbound domain. While it is off, the dashboard does not show an address.

Where to find the address

The Emisores page and Inbox → Upload supplier XML show each emisor's address with a copy button. Owners and admins can rotate it from the Emisores page. Rotation takes effect at once: mail to the old address is dropped without a bounce, so give suppliers the new one.

Set it in OVi

In Hacienda's Oficina Virtual (OVi), set the address as the emisor's Correo de recepción (the reception email). Suppliers read that field when they send you a comprobante, and Hacienda sends its respuesta to the same place. Give the address to suppliers that mail invoices by hand too.

What Sello reads from a mail

  • Only the recipient address picks the emisor. The sender, the subject and the XML never do.
  • Only XML attachments are read: a file whose name ends in .xml, or whose content type is application/xml, text/xml or ends in +xml. PDFs, images and the mail's body text are never stored.
  • At most 10 XML attachments per mail, at most 1,000,000 bytes each and 5 MiB in total.
  • A comprobante (factura, tiquete, nota de crédito or nota de débito) goes through the same checks as an upload: the XML signature and the receptor must match the emisor. A comprobante that fails them is not stored.
  • A MensajeHacienda is Hacienda's respuesta to the supplier's comprobante. It is stored on the matching received document, as described below.
  • The same clave by email and by upload gives one row.

The intake log

The Correo de recepción section on the Inbox page lists each mail the emisor received in the last 90 days: when it arrived, the sender, the subject, the SPF, DKIM and DMARC results the mail provider reported, and one outcome per attachment. Mails older than 90 days are deleted from the log.

OutcomeMeaning
ingestedA new comprobante is in the inbox.
duplicateThe inbox already held this clave; nothing changed.
bad_signatureThe comprobante's signature did not verify; nothing was stored.
not_for_this_emisorThe XML names another receptor; nothing was stored.
malformed_xmlThe XML could not be read, or a respuesta's clave or Mensaje is invalid.
unsupported_rootThe XML is neither a comprobante nor a MensajeHacienda.
not_xmlThe attachment is not XML and was not downloaded.
too_largeThe XML is over 1,000,000 bytes.
over_limitThe mail passed 10 XML attachments or 5 MiB in total.
respuesta_attachedThe respuesta was stored on its received document.
respuesta_pendingThe respuesta arrived before its comprobante and is waiting for it.
respuesta_duplicateThe document (or the waiting list) already had a respuesta; the first one is kept.

The supplier's respuesta is not verified

A supplier often attaches Hacienda's respuesta (MensajeHacienda) next to the comprobante. Sello reads its Clave, its receptor and its Mensaje code, and stores it on the received document with that clave as the supplier supplied it. Sello does not verify Hacienda's signature on it, so treat it as a hint, not as proof.

  • The receptor in the respuesta must be the emisor, and the document must belong to the same emisor. A respuesta for another emisor's document waits under the emisor whose address received it.
  • The first respuesta sticks. A second one changes nothing and is logged as respuesta_duplicate with its code.
  • A respuesta that arrives before its comprobante waits up to 30 days. When the comprobante arrives, by email, upload or the API, the respuesta moves onto it. After 30 days a waiting respuesta is deleted.
  • The inbox shows "Respuesta de Hacienda adjunta por el proveedor (no verificada): aceptado" for Mensaje 1 and the same text ending in "rechazado" for Mensaje 3. For a rechazado, the document page also warns that, if the respuesta is authentic, the comprobante has no fiscal validity (Res. MH-DGT-RES-0027-2024 art. 9).
  • The respuesta changes nothing else: the document's status, its Mensaje Receptor deadline and the respond form stay as they were. The /v1 API does not return it.

On this page