Triggered when the verification flow finishes. If an aes_key was provided during Create Session, the extraction results inside the data payload will be delivered encrypted in aes::Base64(IV + Ciphertext + Tag) format.
If no aes_key was specified, the data payload is omitted (null), and you must retrieve the results manually using the session API.
The payload of this event carries is_closed: true. That field — not the arrival of any webhook, not the widget closing, not a WAITING status — is what tells you a session is over and its results are final.
If you also subscribe to On Partial Results, you will have seen the same session earlier with is_closed: false. Branch on that field and you cannot get it wrong.
Payload class discriminator — always this value for Spain Public Administration events.
The event type: ended.
Base status codes for widget flows Allowed values are:
READY: The flow is waiting for an inputWAITING: Flow is waiting for an external eventCOMPLETED: The flow has finalized successfullyFAILED: The flow has failedSYSTEM_CANCELLED: The flow has ben cancelled by the systemCLIENT_CANCELLED: The flow has been cancelled by the clientCUSTOMER_CANCELLED: The flow has been cancelled by the customerTIMED_OUT: The flow has timed outCONFIGURATION_ERROR: The flow has been rejected due to a configuration errorVerification results payload.
aes_key was provided during session creation, the results are delivered
encrypted. Please refer to the Payload Decryption section of the API introduction to
decrypt them into FlowResultsSchema.aes_key was specified, this field is not informed (null), and you must retrieve
the results manually using the session API.WebhookEndedErrorPayload.