Skip to main content
Every customer signer proves their identity before reading the contract summary. The check runs against Floid, which confirms with the Chilean civil registry that the identity card is valid for that RUT.

The identity step

The portal sends PATCH /api/v3/contract/{id}/identity with two fields:
  1. RUT format. The RUT is normalized and its check digit validated.
  2. Registered RUT. The RUT must match the one registered for the signer. In a person contract, the account holder matches the account’s RUT; other members (or a holder whose account has no RUT) match the RUT of their own person account or, failing that, the RUT registered before. A company administrator matches the RUT of their own person account (or, for contracts registered before that account existed, the RUT written at registration).
  3. Reuse. A verification is valid for twelve months, but contracting reuses it only if it happened after this contract started (POST …/start sets started_at). If the contract has not started yet, any current verification counts. In both cases Floid is not called.
  4. Floid. Otherwise the backend asks Floid whether the card serial is active for that RUT.
  5. Result. On a first verification the step answers a small patch: identity validated and stage: SUMMARY. A re-entry check answers the flags plus a new session, and a call by the account holder on a contract that already left draft answers the flags only.

What is stored

The identity card serial is never stored. When Floid is unavailable on a first verification, a pending verification is recorded with the reason provider-unavailable so the attempt is traceable.

Who sees the result

  • For the account holder on a draft contract, the patch is also published on private-contract-{id}, so other open tabs move to the summary.
  • A later company administrator is on their own step, so their result only goes back over HTTP and never moves the account holder’s wizard.

Re-entry challenge

When a customer comes back with a new one-time link after their identity was verified, the new session must prove the card serial again before it can request a signing code:
  • ContractState raises flags.require_signer_document_number.
  • The same PATCH /api/v3/contract/{id}/identity checks the serial with Floid and answers with a new session marked as re-verified. If Floid is unavailable it answers 503 without recording a pending row.
  • Until then, code, sign and reject requests answer 422 reentry-serial-required.
A session that never left the wizard keeps its original token and is not challenged. See Session and access.

Errors

Outside production

A stub can replace the live Floid calls in local and test environments. It refuses to start when the API points to the production host.

Code