Coupons and promoters

How to invite a promoter and link a coupon to their slug

Invite promoters by email — the coupon carrying their slug is created automatically on the event.

On Baila, inviting a promoter to an event automatically creates a discount coupon whose code is the promoter's promoterSlug. That removes the manual work: the promoter comes out of the invite with a shareable link and a coupon already in place.

How the auto-coupon works

Every promoter has a unique slug (for example, joaopromo). If they do not have one yet, the slug is generated automatically from their name the first time the promoter is invited or accepts an invite. When you invite that promoter to an event:

  1. The system creates a row in EventPromoter tying the promoter to the event
  2. At the same time it creates a Coupon with code = joaopromo on that event
  3. All inside a single atomic transaction — if any part fails, nothing is written

Step by step to invite

In the dashboard, open the event and scroll down to the Promoters section. You will see the Invite a promoter by email form.

Type the promoter's email. If an account already exists, the system fills in the name and slug automatically. If it does not, the promoter receives an email to create the account (the redeemInvite flow).

Click Set up a discount (optional) and pick Percentage (%) or Fixed amount (R$), entering the value. If you leave it blank, the coupon is created with no discount — purely to track sales.

Below the form a Promoter link: preview appears with the event link (vaidebaila.app/events/.../?ref=joaopromo). To send the invite, click Invite.

If they are a new user, they get an email with a sign-up link plus automatic acceptance of the invite. If they already have an account, the promoter sees the event in their own dashboard right away.

The coupon that gets created is never changed if the promoter changes their slug later. That preserves historical sales attribution — if joaopromo becomes joaobigpromo, the older sales stay attributed through joaopromo.

Inviting the same promoter to several events

You can invite the same promoter to as many events as you like. The slug stays the same (joaopromo), but each event has its own sales counter and its own discount setup. The promoter's dashboard aggregates everything into a cross-event view.

How to invite a promoter and link a coupon to their slug | baila ajuda