Mx Verify Tfd
mx__verify_tfdParse a Timbre Fiscal Digital stamp from CFDI XML and optionally verify SelloSAT against a supplied PAC certificate to confirm cryptographic validity.
Instructions
Parse a Timbre Fiscal Digital 1.1 stamp and, optionally, verify SelloSAT.
Always returns the TFD's own attributes (UUID, FechaTimbrado,
RfcProvCertif, SelloCFD, NoCertificadoSAT, SelloSAT, ...) and the
recomputed cadena original (via cadenaoriginal_TFD_1_1.xslt, per
Anexo 20 Rubro III.B). If pac_certificado_der_b64 is supplied,
additionally verifies SelloSAT (SHA-256 + RSA-PKCS#1v1.5, the same
algorithm as the emisor's own Sello) against that certificate's public
key. Without it, sello_sat_verified is null — parsing succeeded but
cryptographic verification was not attempted, not "passed".
Returns a dict with:
found: False if noTimbreFiscalDigitalelement exists in xmlfields: the TFD's own attributescadena_original: the recomputed cadena original stringsello_sat_verified: True/False ifpac_certificado_der_b64was supplied, else null
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The sealed, PAC-stamped CFDI XML (with a TimbreFiscalDigital complement) | |
| pac_certificado_der_b64 | No | Base64-encoded DER certificate of the PAC/SAT that stamped this TFD, used to cryptographically verify SelloSAT. SAT does not embed this certificate in the TFD itself, so it is not available without the caller supplying it. Omit to parse fields and compute the cadena original without verifying SelloSAT. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||