Performs a live authentication attempt against the government portal
using the stored credentials. Updates state and last_validated_at
based on the result.
This call is synchronous but may take a few seconds depending on portal response times. The result reflects the portal’s actual response — not just format validation.
Use this:
state transitions to invalid and credentials have
been renewed by the merchantA successful validation sets state to valid. A failed attempt
sets it to invalid and includes the portal’s error message in
validation_error.
Platform API key sent as Authorization: Bearer ofk_platform_....
Platform integrators also pass OpenFiskal-Organization: org_xxx
to act on behalf of a merchant.
Merchant organization ID. Required for platform integrators acting on behalf of a specific merchant. Omit when using an organization-scoped API key directly.
Validation attempt completed (check state for outcome)
"fpc_01HXYZ"
"fiscal_portal_credential"fisconline, entratel, finanz_online IT, AT Lifecycle state of the credentials.
unvalidated — provisioned but not yet tested against the portal.
Fiscal transmission will be attempted but may fail.valid — last validation succeeded. Credentials are working.expiring_soon — credentials are valid but the password expiry
is within the warning window (14 days for Fisconline/Entratel,
30 days for FinanzOnline). Renew at the government portal and
rotate via PATCH.expired — password has passed its expiry date. Fiscal
transmission is blocked. Merchant must renew at the portal
and rotate via PATCH.invalid — last validation failed (wrong credentials, account
locked, or portal-side issue). Transmission blocked. Investigate
via validation_error.unvalidated, valid, expiring_soon, expired, invalid Masked representations of the stored credential fields. Never contains raw secret values. Useful for confirming which values are on file without requiring re-entry.
Projected credential expiry date, calculated from the last
validation timestamp and the known rotation period for this
portal type (Fisconline/Entratel: 60 days; FinanzOnline: 365 days).
null if the credential has never been validated.
Timestamp of the most recent successful validation attempt against the government portal.
Human-readable error message from the last failed validation
attempt. null if the last validation succeeded.
"PIN or password incorrect (AdE error code: 401)"