> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Invitation onboarding

> How an invited customer activates their account: legal documents, identity, one payment method per service and password.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** (behind a feature flag) |
| Route | `/{locale}/onboarding` |
| Menu | Outside the menu: entered from the invitation e-mail |
| Feature flag | `portal-customer-onboarding` (default: off) |
| Who sees it | Invited customers: primary user of a personal account or legal representative of a company |
| Last verified | 2026-11-10 against `develop` (`c10d24f33d`) |

## What it is for

The onboarding activates the account of a customer Maihue already knows (for example, migrated from another system) who was invited by e-mail. In a few minutes they accept the legal documents, validate their identity, leave a current payment method for each service and create their password. Until they finish, the portal only shows the sections that help them finish it.

## How to get there

1. The customer receives the invitation e-mail and opens the link (see [Activate the invitation](https://docs.bbrands.io/portal-customer/onboarding/activate-invitation.md)).
2. The link opens their session and takes them to `/{locale}/onboarding`.
3. If they enter the portal with the onboarding pending, any closed section brings them back to the wizard.

![Onboarding journey: invitation e-mail, link activation, Welcome, Validate ID, one Payment method per business unit and Create password, which leads to the success destination. Exit leads to the exit destination and progress is kept.](https://mintcdn.com/bbrands/w6DX1nTsRjzB7VQp/images/portal-customer-manual/onboarding-navigation.svg?fit=max\&auto=format\&n=w6DX1nTsRjzB7VQp\&q=85\&s=134dc85f30315cfd7f439f584a3787e2)

Onboarding journey

## What the customer sees

> [tab] Desktop
>
> ![Onboarding welcome with the Terms and conditions and Privacy policy boxes, the Continue button and Exit at the top right.](https://mintcdn.com/bbrands/faC9xD4-ppUP5Q_S/images/portal-customer-screens/onboarding/welcome.en.desktop.webp?fit=max\&auto=format\&n=faC9xD4-ppUP5Q_S\&q=85\&s=b7aac896011f0c714f53484c54a3853b)
>
> Welcome

> [tab] Mobile
>
> ![Onboarding welcome with the Terms and conditions and Privacy policy boxes, the Continue button and Exit at the top right.](https://mintcdn.com/bbrands/faC9xD4-ppUP5Q_S/images/portal-customer-screens/onboarding/welcome.en.mobile.webp?fit=max\&auto=format\&n=faC9xD4-ppUP5Q_S\&q=85\&s=75a0bc42c8467aad419e6934d940bd45)
>
> Welcome

| Element | What it does |
| - | - |
| Step bar | **Validate ID** → **Payment Method** → **Create Password** |
| "Activate your service" | Validate your identity, enroll a payment method and create your password. It only takes a few minutes. |
| Legal boxes | One per current legal document the customer has not accepted yet |
| **Exit** | Opens the exit confirmation |

## Step by step

**1. Accept the legal documents**

Ticks the boxes and taps **Continue**.

**2. Validate ID**

RUT and document number. See [Validate ID](https://docs.bbrands.io/portal-customer/onboarding/validate-id.md).

**3. Payment Method**

One payment method per service. See [Payment method](https://docs.bbrands.io/portal-customer/onboarding/payment-method.md).

**4. Create Password**

Creates their password and goes to the success destination. See [Create password](https://docs.bbrands.io/portal-customer/onboarding/create-password.md).

### Exit the wizard

With **Exit** they see "Do you want to exit the activation?": "Your progress is saved. You can pick it up again with the link in your email." **No, continue** carries on; **Exit** signs out and takes them to the exit destination.

> [tab] Desktop
>
> ![Exit confirmation with No, continue and Exit.](https://mintcdn.com/bbrands/faC9xD4-ppUP5Q_S/images/portal-customer-screens/onboarding/exit.en.desktop.webp?fit=max\&auto=format\&n=faC9xD4-ppUP5Q_S\&q=85\&s=bed957900c24b22e1b2da3c7e302fd36)

> [tab] Mobile
>
> ![Exit confirmation with No, continue and Exit.](https://mintcdn.com/bbrands/faC9xD4-ppUP5Q_S/images/portal-customer-screens/onboarding/exit.en.mobile.webp?fit=max\&auto=format\&n=faC9xD4-ppUP5Q_S\&q=85\&s=ada99d43832653d64c1678ac60049fc9)

## Business rules

| ID | Rule |
| - | - |
| R-01 | Only works with `portal-customer-onboarding` on; off, `/onboarding` leads to Home |
| R-02 | It must be done by the invited primary user of a personal account or legal representative of a company |
| R-03 | Accepting documents, validating identity and creating the password are done once and count for every open onboarding |
| R-04 | The payment method is confirmed per onboarding, that is, per business unit, oldest first |
| R-05 | Progress is kept: coming back, the wizard resumes the pending step |
| R-06 | When done it goes to the success destination (`portal-customer-onboarding-redirect-success`, `/home` by default); on exit, to the exit destination (`portal-customer-onboarding-redirect-fail`) |
| R-07 | While pending, only Account, Payment methods and Support open (see [Pending onboarding](https://docs.bbrands.io/portal-customer/onboarding/pending-onboarding.md)) |

## States and messages

| State | What the customer sees | Why | What to do |
| - | - | - | - |
| Loading | "Loading your activation…" | The onboarding state is being read | Wait |
| Invited | Welcome | `invited` | Start |
| In progress | The pending step | `in_progress` | Continue |
| Done | "All set. Redirecting you…" | Nothing left | — |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "We could not record your acceptance. Try again in a few moments." | The acceptance was not recorded | `POST /api/v3/portal/customer/onboarding/consent` | Retry |

Each step's errors are on its own page.

## Why it works this way

![Onboarding process: shared steps once (documents, identity), one payment method per business unit and the password, with the portal restriction while something is pending.](https://mintcdn.com/bbrands/w6DX1nTsRjzB7VQp/images/portal-customer-manual/onboarding-process.svg?fit=max\&auto=format\&n=w6DX1nTsRjzB7VQp\&q=85\&s=f2050298803041574f27781bc281dcf5)

Onboarding process

* **Existing customers.** Unlike the digital contract, the customer already has a service; the onboarding only completes what is missing to serve them in the portal and bill them correctly.
* **Soft block.** While something is missing, the portal only leaves open the sections that help finish, so the customer does not end up half-way without noticing.
* **One payment per service.** Each business unit bills separately, so it asks for a method for each one.

## Technical detail

| Aspect | Detail |
| - | - |
| Wizard | `app/components/screens/onboarding/onboarding-orchestrator.tsx`, `resolve-onboarding-step.ts` |
| State | `GET /api/v3/portal/customer/onboarding/state` (`onboardings[]`, `legal_pending`, `identity_step`, `payment_issue`, `redirect_*_url`) |
| Steps | `POST …/onboarding/consent`, `…/identity`, `…/payment/confirm`, `…/password` |
| Realtime | `private-account-<accountId>` (`app/lib/realtime/use-onboarding-channel.ts`) |
| Feature flags | `portal-customer-onboarding`, `-onboarding-payment-methods`, `-onboarding-redirect-success`, `-onboarding-redirect-fail` |
| Texts | `messages` › `onboarding` |
| Initiatives | `portal-customer/customer-onboarding`, `maihue/onboarding` |

## FAQ and support cases

> [accordion] The customer did not get the invitation
>
> Check spam. Sending invitations needs the flag on; it is resent from Horizon Enterprise.

> [accordion] They exited the wizard by mistake
>
> Their progress was kept; with the e-mail link (or by entering the portal) they resume where they left off.

> [accordion] How is it different from the digital contract?
>
> The digital contract is for new customers and ends with signing; the onboarding activates customers who already have a service and signs nothing.

## Related and history

* [Activate the invitation](https://docs.bbrands.io/portal-customer/onboarding/activate-invitation.md)
* [Digital contract](https://docs.bbrands.io/portal-customer/digital-contract/overview.md)

| Date | Change |
| - | - |
| 2026-11-10 | First version |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.