API Reference

Look up a SAT certificate by its number

Send a certificate number, such as the one an invoice names, and get whose it is, whether it is a CSD or an e.firma, the dates it covers, and its status at SAT.

POST /v1/certificate/lookup

Look up a certificate SAT issued by its 20-digit number: the seal certificate (CSD) an invoice names in NoCertificado, or an e.firma. Get back whose it is, whether it is a CSD or an e.firma, the dates it covers, its status at SAT (activo, revocado, or caduco), and the certificate itself. Completes in 1 to 2 seconds.

Use it to learn who signed an invoice and whether that certificate is still current, or to check an e.firma's number before asking the taxpayer for it. To check every certificate behind an invoice at once, upload its XML to /cfdi/verify.

Request body

Field Type Required Description
number string Yes The certificate number: 20 digits, as a CFDI's NoCertificado or NoCertificadoSAT gives it.

Try it

POST /v1/certificate/lookup
Try it

Sign in to send a real request from this page.

New accounts get a $5 USD signup credit, no card required.

Example request

curl bash
curl -X POST https://rfccheck.com/v1/certificate/lookup \
  -H "x-api-key: rfc_your_api_key" \
  -H "content-type: application/json" \
  -d '{"number": "00001000000500000000"}'

Response (200)

200 OK json
{
  "number": "00001000000500000000",
  "found": true,
  "message": "SAT issued this certificate.",
  "rfc": "ACM010101AAA",
  "name": "ACME CONSULTORES",
  "type": "csd",
  "valid_from": "2024-06-01T02:35:54Z",
  "valid_until": "2028-06-01T02:35:54Z",
  "status": "activo",
  "certificate_base64": "MIIGrTCCBJWgAwIBAgIU..."
}
Field Description
found true with the certificate, false when SAT has no certificate with this number, and null when SAT's repository could not be reached (retry; not charged).
rfc The RFC the certificate was issued to.
name The holder's name as the certificate carries it. SAT cuts long company names at 64 characters.
type csd for a seal certificate, which signs invoices, or efirma for an e.firma (FIEL), which stands in for the taxpayer's signature.
valid_from, valid_until The dates the certificate covers, in UTC.
status Its status in the list SAT publishes of the RFC's certificates: activo, revocado, or caduco (expired). Null when that list could not be read; the rest of the answer still stands.
certificate_base64 The certificate itself (.cer), base64-encoded.

Errors

A number that is not 20 digits is a 422 and is not charged:

422 Unprocessable Entity json
{
  "error": "invalid_fields",
  "fields": ["number"],
  "message": "number is a certificate number: 20 digits, e.g. 00001000000500003416."
}