API Reference

# Get the 32-D compliance opinion from SAT with an e.firma or the SAT password

Send a taxpayer's e.firma or SAT password (CIEC) and get the Opinión del Cumplimiento (32-D) SAT issues at that moment: the PDF, SAT's verdict, and its folio.

POST

`/v1/opinion/generate`

Get a taxpayer's Opinión del Cumplimiento de Obligaciones Fiscales (the 32-D) from SAT, issued at that moment. Send the taxpayer's e.firma or SAT password (CIEC) and get back SAT's PDF with SAT's verdict (positivo or negativo), its folio, the taxpayer's name, and when it was issued. Completes in 5 to 8 seconds.

Use it when you act for the taxpayer: an accounting firm keeping its clients' 32-D current, a platform that must show a supplier is up to date with SAT before paying it, or a public-sector bid that asks for a positive opinion. Each call has SAT issue a new opinion with a new folio, as the taxpayer's own request on SAT's site does.

Either one lets you act as the taxpayer at SAT, and the e.firma stands in for their handwritten signature. They are used for this one request and then dropped: they are never stored, and the private key and the passwords never reach a log. Send them only for a taxpayer who has authorized you to.

## Request body

The same credentials as /csf/generate: either the three parts of the e.firma (certificate, private_key, password), as SAT delivered them, or the RFC and the SAT password (rfc, ciec). A seal certificate (CSD) is not an e.firma and is refused.

[See /csf/generate for each field.](/docs/endpoints/csf-generate)

## Example request

curl

```bash
curl -X POST https://rfccheck.com/v1/opinion/generate \
  -H "x-api-key: rfc_your_api_key" \
  -F certificate=@efirma.cer \
  -F private_key=@efirma.key \
  -F password="$EFIRMA_PASSWORD"
```

With the SAT password instead:

curl

```bash
curl -X POST https://rfccheck.com/v1/opinion/generate \
  -H "x-api-key: rfc_your_api_key" \
  --form-string rfc=ACME010101AAA \
  --form-string ciec="$SAT_PASSWORD"
```

## Response (200)

200 OK

```json
{
  "rfc": "ACME010101AAA",
  "found": true,
  "message": "SAT issued this opinion. The PDF is in pdf_base64.",
  "sentido": "positivo",
  "name": "ACME CONSULTORES",
  "folio": "26NA0000000",
  "issued_at": "2026-11-25T20:13:00",
  "pdf_base64": "JVBERi0xLjQKJ..."
}
```


| Field | Description |
| --- | --- |
| `rfc` | The RFC the e.firma or the password belongs to. |
| `sentido` | SAT's verdict, as SAT states it, in lowercase with words joined by _: positivo when the taxpayer is up to date with the obligations the opinion reviews, negativo when not. The PDF lists what is pending in a negative opinion. |
| `name` | The taxpayer's name as the opinion prints it. |
| `folio` | The opinion's folio. Its QR code takes anyone who scans it to SAT's own confirmation of this folio. |
| `issued_at` | When SAT issued the opinion, in Mexico City time. |
| `pdf_base64` | SAT's PDF, base64-encoded: the same opinion the taxpayer would download from SAT, with its QR code, cadena original, and SAT's seal. About 95 KB. |


## found


| `found` | Meaning |
| --- | --- |
| `true` | SAT issued the opinion: it is in pdf_base64, with its verdict in sentido. |
| `null` | SAT could not issue it right now. Every other field but rfc and message is null. Retry later; it is not charged. |


## Errors

The same as /csf/generate: credentials that are missing or do not fit are a 422 invalid_fields naming the field, an e.firma SAT refuses is a 422 efirma_rejected, and an RFC and password SAT refuses a 422 ciec_rejected, with SAT's reason. None is charged.

422 Unprocessable Entity

```json
{
  "error": "efirma_rejected",
  "message": "SAT says this e.firma has been revoked. Not charged."
}
```