Skip to main content
Get a taxpayer’s constancia de situación fiscal as a PDF, using only their RFC and a saved CIEC. You don’t need a FIEL. The constancia de situación fiscal is the SAT document that states a taxpayer’s registered fiscal details. The CIEC is the password the taxpayer uses to sign in to the SAT portal.
Test mode is simulated. With a sk_test_ key, or on the sandbox issuer, nothing reaches the SAT and any password is accepted. The PDF you get is clearly marked as not being a SAT document. The steps below work as written with a test key.

From request to PDF

Set $API_KEY to your key and $FP_ID to a fiscal profile in the same mode. 1. Save the CIEC. Skip this if the profile already has a verified credential. With a live key, wait for verified first, as described in SAT credentials.
2. Request the constancia. You get an answer right away, and the work continues in the background.
The response is a pending document:
3. Wait for it. Subscribe to the fiscal_document.ready webhook, or poll. A live request can take several minutes; in test mode it takes about 15 seconds.
A finished document also carries the PDF’s location, checksum and deletion date:
4. Download the PDF once the status is ready.
In live mode, one constancia per RFC is free each calendar quarter (Mexico City time). Only a delivered PDF uses it up; test mode is never limited. We keep the PDF encrypted for 30 days, then delete it (pdf_expires_at). Store your own copy, or request a new one. A live constancia that reaches ready is recorded in GET /v1/usage as sat_constancia; failed requests are free.

Statuses

Common errors

The error reference lists every code. To try a failure in test mode, see Testing.