verified, massive download uses it automatically.
Test mode is simulated. With ask_test_key, or on the sandbox issuer, nothing leaves this API: the password is not sent anywhere and the credential isverifiedimmediately. Use it to build the whole flow, webhooks included.
1. Save the credential
PATCH /v1/fiscal_profiles/:id, which is stored on the
profile for signing the manifiesto and for FIEL downloads.
Treat a 201 as “saved, not yet accepted”. Saving again replaces the previous credential and
revokes it. If you send an Idempotency-Key, the password is left out of its comparison, so use a
new key when correcting a password.
2. Wait for verification
The login check against SAT runs in the background. Subscribe to these webhooks, or pollGET /v1/fiscal_profiles/:id/sat_credential.
Only enable SAT features for a
verified credential. It is a point-in-time check of the login, not
a guarantee that every SAT service will accept the password later.
On rejected, ask the taxpayer to confirm their RFC and password before saving again: do not retry
the same password automatically. On inconclusive, save it again later. The remediation field
says the same thing for an agent.
With a verified credential you can request the constancia.
3. Renew before it expires
A credential lasts at most 90 days;expires_at is authoritative. There is no renewal call:
ask the taxpayer for their password and save it again.
4. Remove it
Errors
See the error reference for the full catalog.