> ## 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.

# Invite a friend

> The customer’s referral link per business unit, their guests’ status and the choice of their rewards.

## At a glance

| Field | Value |
| - | - |
| Status | **Preview**: real data, referral program not launched yet |
| Route | `/{locale}/invite` and `/{locale}/invite/rewards/{grant}` (choose a reward) |
| Menu | Rewards › **Invite a friend** |
| Feature flags | `portal-customer-invite` (the page) and `referral-enabled` (the API); both off by default |
| Who sees it | Every signed-in customer; only an account with an active plan or contract gets a link |
| Last verified | 2026-11-24 against `feature/horizon/referrals-rewards-part-1` (`2409457f97`); the reward choice was checked with test data, without the API routes deployed |

## What it is for

The customer gets their MaihueGO or Maihue Home referral link, shares it and follows each guest's status. They win their prize when the guest becomes a customer and, when the campaign offers options, choose which one they get. The full program is the `referrals/program` initiative.

## How to get there

Menu **Rewards › Invite a friend**, the **Invite and win!** banner on Account, or a Home highlight.

![Sections in preview or coming soon.](https://mintcdn.com/bbrands/w6DX1nTsRjzB7VQp/images/portal-customer-manual/preview-sections-navigation.svg?fit=max\&auto=format\&n=w6DX1nTsRjzB7VQp\&q=85\&s=052723ae1631cf742035c577aefc13db)

Sections in preview or coming soon

## What the customer sees

> [tab] Desktop
>
> ![Invite with the MaihueGO and Maihue Home tabs, the link maihuego.link/code/AnaGo7, the Primavera 2026 campaign with its terms, and Your referrals with Guest 4 to Guest 1 In progress, Active and Not completed.](https://mintcdn.com/bbrands/r80punn-ZK8nVNA-/images/portal-customer-screens/invite/overview.en.desktop.webp?fit=max\&auto=format\&n=r80punn-ZK8nVNA-\&q=85\&s=8a695a89e93a142cfbac81ae87428fb3)

> [tab] Mobile
>
> ![Invite with the MaihueGO and Maihue Home tabs, the link maihuego.link/code/AnaGo7, the Primavera 2026 campaign with its terms, and Your referrals with Guest 4 to Guest 1 In progress, Active and Not completed.](https://mintcdn.com/bbrands/r80punn-ZK8nVNA-/images/portal-customer-screens/invite/overview.en.mobile.webp?fit=max\&auto=format\&n=r80punn-ZK8nVNA-\&q=85\&s=14b9091c27d8d9927b4faabe31bdd6a8)

| Element | What it does |
| - | - |
| **MaihueGO** and **Maihue Home** tabs | Pick the business unit to invite to; each has its own link |
| Link | `maihuego.link/code/…`; copied with **Copy** |
| **Invite a friend** | On a phone it opens the share sheet with a message; on a computer it copies the link |
| Campaign | Name, end date and the **Terms and conditions** link |
| **Your referrals** | "Guest N", campaign, date and status: **In progress** (with the stage, such as "Esperando confirmación"), **Active** or **Not completed** |
| Reward (under each guest) | One line per reward: **Choose your reward** with its deadline ("by …"), "Applying on your … bill", "Applied on your … bill", **See it in your coupons**, "Reward on hold until you settle your pending payment" or "Reward not available" |
| Notice | "You win your prize when your referral becomes a customer. If they don't, it shows as Not completed." |

## Step by step

**1. Pick the business unit**

Pick **MaihueGO** or **Maihue Home**. The first time a tab opens its link is created; afterwards it is always the same one.

**2. Copy or share**

Copy the link (sees "Link copied") or tap **Invite a friend** to share it.

> [tab] Desktop
>
> ![Link copied toast.](https://mintcdn.com/bbrands/r80punn-ZK8nVNA-/images/portal-customer-screens/invite/copied.en.desktop.webp?fit=max\&auto=format\&n=r80punn-ZK8nVNA-\&q=85\&s=25a44b7c3db63030ca1442ea86ca14c6)

> [tab] Mobile
>
> ![Link copied toast.](https://mintcdn.com/bbrands/r80punn-ZK8nVNA-/images/portal-customer-screens/invite/copied.en.mobile.webp?fit=max\&auto=format\&n=r80punn-ZK8nVNA-\&q=85\&s=3df83794ced78a6ec878e4bfcaec98f1)

**3. Follow the guests**

Each person who completes the form shows up in **Your referrals** as "Guest N". Their name and data are never shown.

**4. Choose the reward**

When the guest becomes a customer, **Choose your reward** shows under their row with the deadline. The link opens **Choose your reward** with the options the campaign offers; the default option comes selected and tagged "Default":

* a plan discount: "15% off 2 monthly payments" and "Will apply to your December 2026 bill";
* an online shop code: "100% code for the online shop, valid for 30 days; not valid at venues";
* free monthly bills: "2 free monthly bills" and "Starting with your December 2026 bill";
* a Club Maihue coupon: "Club Maihue coupon added to My coupons, valid for 15 days" (or "valid for as long as the benefit runs").

The screen shows the deadline and which reward applies if the customer does not choose ("Choose by Dec 10, 2026. If you don't, you'll get Descuento en tu plan.", with the campaign's date and name), and the campaign's **Terms and conditions (version …)** link. **Confirm reward** shows "Applying…" and the row moves to "Applying on your … bill" or "Applying…" until it is confirmed.

**5. Use an online shop code**

When the code is ready, the row shows **See it in your coupons**. The code shows in [My coupons](https://docs.bbrands.io/portal-customer/club/my-coupons.md) with **Copy code**; it works only in the online shop.

## Business rules

| ID | Rule |
| - | - |
| R-01 | Only an account with an active plan or contract of any business unit gets a link; the link may be for another unit (BR-02) |
| R-02 | One link per campaign and business unit; created the first time and reused (BR-17) |
| R-03 | The campaign is the unit's live campaign with the highest priority (BR-16) |
| R-04 | With an overdue payment the customer can invite, but prizes are held (REQ-01.AC-2) |
| R-05 | The list never shows guest data; only "Guest N", campaign, date and status (BR-10) |
| R-06 | The prize is won when the guest becomes a customer (BR-04) |
| R-07 | One reward is chosen per choice group of the campaign; one invitation may give more than one (C2) |
| R-08 | Only options whose reward type is on are offered; with none, the screen says "Rewards are not available yet" (REQ-22) |
| R-09 | If the customer does not choose by the deadline, the default option applies (#41) |
| R-10 | The choice stores the bill month and the terms version the customer saw; if the month moved, the options reload (C12) |
| R-11 | Choosing the same option twice gives the same result; a double click makes one choice (T-RCE-22) |
| R-12 | The online shop code is not valid at venues (REQ-06.AC-2) |
| R-13 | Once applied, a plan discount or free bills reduce the bills from the month shown, for the number of bills of the reward; a Club coupon lands in the Club wallet and an online shop code in My coupons (D-66) |
| R-14 | If a Maihue executive signs your guest up with their own link while it is In progress, the guest becomes the executive's, stays in your list as the same "Guest N" and you keep your reward (REQ-11, D-36) |

## States and messages

| State | What the customer sees | Why | What to do |
| - | - | - | - |
| In progress | "In progress" and the stage ("Enviado", "Esperando confirmación", "En evaluación comercial") | The guest has not finished the process | Wait |
| Active | "Active" | The guest is a customer | — |
| Not completed | "Not completed" | The guest did not become a customer or the request could not be processed | — |
| No guests | "You have no guests yet. Share your link to get started." | Nobody completed the form | Share the link |
| Prizes held | "You have a pending payment: you can invite, but your prizes are held until you settle it." | Overdue debt | Pay the debt |
| To choose | **Choose your reward** "by …" | The guest became a customer and the campaign offers options | Choose before the deadline |
| Applying | "Applying on your … bill" (discount) or "Applying…" (code) | The reward was chosen and awaits confirmation | Wait |
| Applied | "Applied on your … bill" or **See it in your coupons** | The reward was granted | Use the code in the online shop |
| On hold | "Reward on hold until you settle your pending payment" | Overdue debt of the referrer | Pay the debt |
| Not available | "Reward not available" | Sold out, rejected, expired or cancelled | Check the reward in Horizon |
| No options | "Rewards are not available yet" | No reward type of the campaign is on | Come back later |

> [tab] Desktop
>
> ![Invite with the pending payment notice under the campaign.](https://mintcdn.com/bbrands/r80punn-ZK8nVNA-/images/portal-customer-screens/invite/rewards-on-hold.en.desktop.webp?fit=max\&auto=format\&n=r80punn-ZK8nVNA-\&q=85\&s=663dc7bd2ac1aa3087ebfe9f3cc054bd)

> [tab] Mobile
>
> ![Invite with the pending payment notice under the campaign.](https://mintcdn.com/bbrands/r80punn-ZK8nVNA-/images/portal-customer-screens/invite/rewards-on-hold.en.mobile.webp?fit=max\&auto=format\&n=r80punn-ZK8nVNA-\&q=85\&s=da5be7953130dce34cedd728d02545db)

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "To invite you need an active Maihue plan or contract." | The account has no active plan or contract (for example an additional user) | 403 `referral:not_a_holder` | Check the account's plan or contract |
| "There is no active referral campaign for Maihue Home right now." | The unit has no live campaign or is not in `referral-business-units` | 404 `referral:no_active_campaign`, `referral:business_unit_unavailable` or `referral:disabled` | Check the campaigns in Horizon and the flag |
| "We couldn't load your link. Please try again in a few minutes." | Unexpected error | 5xx | Check the horizon-api logs |
| "You already chose a reward for this invitation." | Another option was chosen before | 409 `referral:reward_already_chosen` | None: the first choice stands |
| "This reward can no longer be chosen." | The reward is no longer up for choosing (expired, applied or on hold) | 409 `referral:reward_not_choosable` | Check the reward's status in Horizon |
| "That option is no longer available. Choose another one." | The option stopped being offered | 422 `referral:reward_option_unavailable` | Choose another option |
| "The bill your reward lands on has changed. Review the updated options and confirm again." | The bill month moved since it was shown | 409 `referral:billing_period_changed` | Confirm again with the reloaded options |
| "We couldn't find this reward." | The reward belongs to another account or does not exist | 404 | Check the link the customer used |
| "We couldn't load your reward. Try again in a few minutes." / "We couldn't confirm your reward. Try again." | Unexpected error | 5xx | Check the horizon-api logs |

> [tab] Desktop
>
> ![Maihue Home tab with the no active campaign notice and the Invite a friend button off.](https://mintcdn.com/bbrands/r80punn-ZK8nVNA-/images/portal-customer-screens/invite/no-campaign.en.desktop.webp?fit=max\&auto=format\&n=r80punn-ZK8nVNA-\&q=85\&s=0792e436cc8bd6964aba220978b93dfd)

> [tab] Mobile
>
> ![Maihue Home tab with the no active campaign notice and the Invite a friend button off.](https://mintcdn.com/bbrands/r80punn-ZK8nVNA-/images/portal-customer-screens/invite/no-campaign.en.mobile.webp?fit=max\&auto=format\&n=r80punn-ZK8nVNA-\&q=85\&s=a9a058da022cb229705daa74291e3120)

## Why it works this way

The link carries an opaque token: it does not reveal who invites. It is shared as a `maihuego.link` short link so clicks are counted. Until the public form (`portal-lead`) is deployed, the program stays in preview with its flags off.

## Technical detail

| Aspect | Detail |
| - | - |
| Screen | `components/screens/portal/invite-screen.tsx`, `components/screens/portal/invite-reward-screen.tsx`, `components/portal/invite-banner.tsx`, `components/portal/referral-reward-line.tsx` |
| Data | `lib/services/v3/referral/` → `GET /api/v3/referral/me/link?businessUnit=`, `GET /api/v3/referral/me/referral` (with `rewards`), `GET /api/v3/referral/me/reward/{grant}` and `POST /api/v3/referral/me/reward/{grant}/choice` (`option`, `billing_period`, `terms_version_shown`) |
| Permissions | `referral-link:get-own`, `referral:find-own` (`bbrands-customer` role) |
| Initiative | `referrals/program` (T-03; rewards: PR6, D-62) |

## FAQ and support cases

> [accordion] The customer does not see their link
>
> Check they have an active plan or contract and that the unit has a live campaign. An additional user of a plan gets no link.

> [accordion] The customer wants a new link
>
> Staff can revoke the link through the referral API; the next time the customer opens the tab a new one is created.

> [accordion] The customer did not choose their reward in time
>
> When the deadline passes, the default option the screen showed applies ("If you don't, you'll get …").

> [accordion] The customer sees no options to choose from
>
> The options depend on the reward types that are on. With all of them off the screen says "Rewards are not available yet"; turning them on shows them without a new portal release.

> [accordion] The customer asks who a guest is
>
> The portal does not show it by design. Support sees it in Horizon with the referral permission.

## Related and history

* [Feature flags](https://docs.bbrands.io/portal-customer/reference/feature-flags.md)

| Date | Change |
| - | - |
| 2026-11-25 | Free monthly bills and the Club Maihue coupon as reward options; applied rewards reach the bill, the Club wallet or My coupons (D-66). No screenshots yet: they need the API's reward routes |
| 2026-11-24 | Referrer rewards: one line per reward in Your referrals, the Choose your reward screen and the online shop code in My coupons. No screenshots yet: they need the API's reward routes |
| 2026-11-23 | Real data: link per business unit, program statuses and notices |
| 2026-11-10 | First version |


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