Find the CFDI related to an invoice before canceling it, so you can check dependencies and avoid rejections.
View SDKsURLs
Select your active environment. The copy buttons and the code examples below are built with the base URL you choose here.
🔗 Endpoint
Four ways to authenticate the same query. Pick the one that matches what you have on hand and its full reference is built below.
Query by authenticating with the issuer’s CSD. Works for your CFDI regardless of which PAC stamped them.
Query with the taxpayer’s PFX file. It’s the equivalent alternative to CSD.
Query with just the RFC and the UUID. It’s the simplest option if your CFDI were stamped with SW.
Send a PeticionConsultaRelacionados request signed with your CSD (XML-DSig), without sharing your certificate or password.
Signature from your PFX with the Sign XML tool. Before signing, the XML must look like this:<PeticionConsultaRelacionados
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Uuid="{UUID}"
RfcEmisor="{RFC_EMISOR}"
RfcPacEnviaSolicitud=""
xmlns="http://cancelacfd.sat.gob.mx">
</PeticionConsultaRelacionados><?xml version="1.0" encoding="utf-8"?>
<PeticionConsultaRelacionados xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://cancelacfd.sat.gob.mx" Uuid="d003a391-8dc7-4a7d-a299-b3a6ed454959" RfcEmisor="EKU9003173C9" RfcPacEnviaSolicitud="">
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<Reference URI="">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue>8k0KaHNKbuehoDgp/3PpoD2Pjx4=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>N+SZvazfOxk47CMPmQ0iVYkKEJU/hubpmdW71IJH8y6t…</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>MIIFsDCCA5igAwIBAgIUMzAwMDEwMDAwMDA1MDAwMDM0MTYw…</X509Certificate>
<X509IssuerSerial>
<X509IssuerName>CN=AC UAT, O=SERVICIO DE ADMINISTRACION TRIBUTARIA, OU=SAT-IES Authority, …</X509IssuerName>
<X509SerialNumber>3330303031303030303030353030303033343136</X509SerialNumber>
</X509IssuerSerial>
</X509Data>
</KeyInfo>
</Signature>
</PeticionConsultaRelacionados>