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.
pending document:
fiscal_document.ready webhook, or poll. A live
request can take several minutes; in test mode it takes about 15 seconds.
ready.
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.