CEP — the shape of a sealed SPEI receipt, with a dummy seal
One in the shape Banco de México serves it, laid out one attribute to a line so that each field can be pointed at. There are three elements and twenty attributes, and every fact is in an attribute — nothing in this document is element text, which is why an address here names an element and an attribute together. Beneficiario comes before Ordenante, as it does in the receipts read for this page: the document opens with who was paid.
Now read cadenaCDA against everything above it. It is the same payment written a second time, as one string with a pipe character between its parts. Those parts are the payment type, two dates, a time, the institution key, then the ordering party's bank, name, account type, account and identifier, then the same five for the beneficiary. Last come the concept, the tax amount and the amount. Sixteen of its parts repeat an attribute you can already see, character for character. That is not duplication for its own sake: the string is the thing that was sealed, and the attributes are a parsed convenience laid beside it.
sello is where the seal goes. In a real CEP it is 344 characters of base64, which is 256 bytes, which is the size of a 2,048-bit RSA signature. The certificate serial number that identifies the signing key is in numeroCertificado, and both of them appear again at the tail of cadenaCDA itself. Here it is 344 characters that decode to the words THIS IS NOT A DIGITAL SIGNATURE, repeated. Decode the sample and the sample tells you what it is.
Last, claveRastreo: the tracking key the sending institution invented for this payment, and what you type into the portal to fetch the receipt at all. It is an attribute of the receipt, and it appears nowhere inside cadenaCDA — so whatever part of that string was sealed, the tracking key is not in it.
SYNTHETIC / TRAINING ONLY. Constructed attribute by attribute; no receipt like this was ever issued, and the real CEPs read for this page are Banco de México's own test-environment documents and are deliberately not reproduced. Four values are chosen so that nothing here can clash with anything real. Both account numbers end in 0 where the check digit of a CLABE would have to be 9 and 5, so neither is a number any Mexican bank will accept. A CLABE is the Clave Bancaria Estandarizada, Mexico's standardised account number, and the algorithm weights the first seventeen digits by 3, 7 and 1 in turn. The institution codes in front of them, 998 and 999, are not in the open Mexican institution-code list read for this page. The certificate serial is twenty zeros, which no authority issues. The seal is the length of a real one and is base64 of a sentence saying it is not a signature. Nothing was computed over anything here, and this page does not hold a key that could sign a CEP or a certificate that could check one. Both tax identifiers are ND, which is the value the published schema names for an identifier that is not available. The parties are this site's registered fictional cast. Not validated against any schema, and it could not be — see the record for what happens when this document meets the one schema that describes its fields.
Sources for this sample — 3 sources
- Official requirement
Complemento de SPEI de Tercero a Tercero — the CFDI complement schema for SPEI receipt data ↗ — Servicio de Administración Tributaria (SAT), Mexico · the published complement schema for this field set, read in full through four byte-identical open redistributions — the three elements, the twenty attributes this sample carries, their types and maxima, and the annotation naming
NDas the value for an identifier that is not availableVerification boundary, and it is a stronger one than this entry used to record.
sat.gob.mxanswers a refusal to CONNECT, so the publisher's own page was not opened. The schema text itself was read in full through open redistributions instead, and four of them — taken from four unrelated projects — are byte-identical: 10,583 bytes, the same SHA-256, which opensb35a7b35f90d0f16. A text four strangers pass on identically is the publisher's text, which is what makes it safe to quote an annotation from it.A correction is recorded here on purpose. This entry previously described the tax authority as the publisher of the CEP itself, and the topic that cites it said the receipt's XML structure is published by the tax authority. That is the wrong institution for the artefact: the CEP is Banco de México's, and what the tax authority publishes is a complement schema for carrying its fields into an invoice. The mistake is an easy one because the digital-seal machinery in the receipt resembles the one Mexican tax documents use, which is exactly why it is written down rather than quietly fixed.
No version or publication date is claimed for the schema. The file carries none, the publisher's own page was not opened, and the redistributions agree on the bytes without dating them.
- Market practice
cep-python — an open client for Banco de México's CEP portal, with fourteen recorded receipts ↗ — Cuenca (open source) · tests/cassettes/test_validar_transferencia_tipo_*.yaml — fourteen CEP documents recorded from Banco de México's own test portal, which is where this sample's element order, attribute order, pipe-delimited CDA string and 344-character seal length come from
These are Banco de México's own test-environment documents, not customer data: every exchange is against the
cep-betahost, the parties are named for the test cases, and the amounts and references are generated. That is what makes it safe to read them closely, and none of them is reproduced anywhere on this site.They are also a corpus with a shape, and the shape bounds what may be claimed from them. All fourteen share one receiving institution and one operating day, and all fourteen carry one certificate serial. So a value that is constant across them is constant across one receiver on one afternoon — which is a pattern, not a rule, and the record says so on the two rows where the distinction changes the answer.
The library's own reading of the sealed string is narrow and is cited as such: it takes three parts out of it by index, for the payment type and the credit date and time, and names none of the others. The order of the remaining forty-four parts was read off the documents for this site rather than taken from the library.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: Constructed rather than captured, and deliberately unusable. The two account numbers carry a check digit the CLABE algorithm does not produce, so neither can be credited. The certificate serial is twenty zeros. The seal is base64 of a sentence saying it is not a signature, because a teaching page that carried a real seal beside a real cadena would be republishing a real payment. One attribute to a line is this site's layout and not the publisher's. The fourteen real documents behind the field order are Banco de México's test-environment CEPs and all fourteen share one receiving institution, so what this sample shows as the ordinary case is the ordinary case in that corpus. Nothing here was validated against a schema — the only schema for these fields belongs to a different institution and to a different document, and this shape is not an instance of it.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.