Skip to main content
This page walks through the journey in order. Each step names the endpoint that drives it; the Architecture page explains the components.

The twelve steps

1

1. Registration

POST /api/v3/auth/register/contract creates or reuses the customer account, writes one contract signer per signer (in signing order), reuses the account’s subscription for that business unit or creates a pending one, creates a draft contract, and queues the one-time link email for the first signer.
2

2. One-time link and session

The customer opens /{locale}/contract/{id}?action_link=…. The portal exchanges the link once with POST /api/v3/contract/{id}/sessions and receives a contract session (an internal token for that user, scoped to the contract’s account, which the portal keeps bound to this contract; see Session and access) plus the current ContractState.
3

3. Welcome

The customer accepts the terms and privacy notice and starts the flow. POST /api/v3/contract/{id}/start records when the contract was started.
4

4. Identity

PATCH /api/v3/contract/{id}/identity verifies the RUT and the identity card with Floid. A valid verification is reused only if it happened after this contract started.
5

5. Summary

PATCH /api/v3/contract/{id}/summary records the acceptance of the contract summary and freezes it for this contract. Later company administrators confirm the same frozen summary with PATCH /api/v3/contract/{id}/signer-summary.
6

6. Payment method

The account holder enrolls a card or a bank-account mandate (PAC) with Fintoc, picks the billing period and confirms one method with PATCH /api/v3/contract/{id}/payment/confirm. Nothing is charged. The confirmation starts the signing pipeline.
7

7. Documents ready

Worker A renders the contract and annex PDFs; Worker B opens the signature group with the customer signers and Maihue’s representatives. The portal shows the documents as soon as they are ready.
8

8. Customer signature

Each signer reads the documents, requests a one-time code with POST /api/v3/signature/{id}/signer/{signer}/otp and signs every document at once with POST /api/v3/signature/{id}/signer/{signer}/sign. Company administrators sign one after another, in their signing order.
9

9. Password and portal

Right after their own signature, the portal shows the signed documents; when the signer continues, they create a portal password with PATCH /api/v3/contract/{id}/password and are handed off to the customer portal already signed in. A signer who already has a password goes straight to the portal. The customer’s part of the journey ends here.
10

10. Operations review

When the last customer signer signs, the contract waits in pending_review. Maihue operations approve or reject it with PATCH /api/v3/contract/{id}/review.
11

11. Maihue countersignature

Approval queues the enterprise worker, which applies the countersignature of Maihue’s representatives and seals the PDFs. The countersignature is unattended by default; attended representatives receive an email invitation and sign with a one-time code.
12

12. Activation

Worker C stores the sealed documents as a new version, activates the contract and the subscription, and queues the confirmation email to the customer.

Contract statuses

The diagram shows the main path. Cancel and abandon are possible from any status that is not final, not only from draft. The status catalogue and its columns are in the Contract status schema.

Operations review

With last workflows, the review is always a manual decision by Maihue operations, and customer signatures alone never activate a contract.
Each workflow defines whether Maihue signs after the customers (last, used by the seeded workflows) or before them (first). With first, Maihue’s countersignature runs when the signature group opens and the review step does not apply.

Company signers

A company contract has an ordered list of administrators. The first one is the account holder and the only one who enrolls the payment method.
  • Administrator N can request a code and sign only after administrator N−1 has signed; otherwise the API answers 409 prior-signer-pending.
  • When an administrator signs and the group is not complete, the next administrator receives their one-time link.
  • Later administrators go through Welcome, Identity, Summary (confirming the frozen summary) and Signature, then create their own password.

Exceptions

POST /api/v3/signature/{id}/signer/{signer}/sign with the reject action (optionally with a reason) marks the signer, the signature group and the contract as rejected. The portal does not offer this action: a customer who does not want to go on uses the Reject exit button, which cancels the registration (see the next item).
The exit button (Reject) is shown from the Identity step until Signature; it is not on Welcome or Password. It calls POST /api/v3/contract/{id}/cancel as the customer, which only the account holder may do: this registration is cancelled and the account stays. This business unit’s subscription is cancelled only when no other contract of the same account and business unit is still not cancelled, rejected or expired. When the account has no other contracted service, the Fintoc payment methods on the account are revoked; otherwise they are kept.
POST /api/v3/contract/{id}/cancel as an administrator does the same cleanup as the customer cancel: the contract, the signature group in progress, the subscription and the payment methods follow the same rules. Cancel works from any status that is not final; an active, cancelled, rejected or expired contract answers 409.
Before signing, the customer can look back from Signature to Payment or Summary. The portal shows those steps again on its own, without calling the backend. The contract only changes if the customer confirms a different payment method or period: the unsigned documents are discarded and the pipeline starts again. The API also exposes POST /api/v3/contract/{id}/rewind to move the contract back one step (refused once a customer has signed); the portal does not call it.
POST /api/v3/auth/register/contract/restart starts a new registration for a cancelled, rejected or expired contract and reuses the account. It is not public: only the Odoo API key or staff holding auth:register-contract-restart can call it.