Referral Programme for Your Booking Site

The referral programme lets members bring new clients through a personal link and earn a bonus for qualifying bookings. It is available on the Pro plan under the referral-programme licence key.

What it is and who it is for

A member shares https://site.com/?bbc_ref=<code>. When a visitor follows the link and makes a qualifying booking, the member receives the bonus.

  • Percent: a percentage of the counted order amount.
  • Fixed: a fixed amount for a qualifying booking.
  • Once: only the first order from each referred client.
  • Each: every qualifying order from that client.

Example: at 5% and a counted order amount of 200, the member earns 10.

Enable and configure the programme

Go to Baza Booking > General Settings > Referral > Settings.

  • Enable the referral programme. Default: off. Turning it off keeps all rows and metadata but stops links, cookies, bonuses and the account tab.
  • Bonus type and Bonus value. Default: percent and 5%. You can use a percentage or a fixed amount.
  • When the bonus is paid. Default: once, for the first order from each referred client. The alternative is every qualifying order.
  • Minimum order for a bonus. Default: 100. Orders below this amount do not earn a bonus.
  • Count only the slots of the order. Default: on. On uses booking_price, so extras and surcharges are excluded. Off uses the full amount from baza_bc_get_booking_total().
  • Minimum payout. Default: 100. A member cannot request a payout before the available balance reaches it.
  • Bonus lifetime. Default: 0, which means the bonus never expires. Set a number of days to limit it.
  • Fields of the application. The documented fields are email, phone and name.
  • Approve membership requests automatically. Default: off. Otherwise an administrator reviews each application in Members.
  • Hide the membership request on the site. Default: off. When it is on, clients cannot apply, and the Membership tab in the account is shown to members only, and to people whose application is already waiting. The programme keeps working: you make members yourself in the user card.
  • Tell members about every bonus. Default: on. A member can turn these emails off in the account.

Example: with slots-only enabled, slots worth 100 and extras worth 50 produce a counted amount of 100. With it disabled, the counted amount is 150.

Member journey

  • Open the Membership tab in the account.
  • A non-member sees the programme description and application form.
  • After approval, the member receives a personal link with a Copy button.
  • A valid link sets the bbc_ref cookie for 30 days.
  • The booking stores the member in bbc_referrer_id.
  • When the booking becomes booked or completed, the plugin checks all conditions and accrues the bonus.
  • A daily event expires bonuses whose lifetime has ended.

The cookie is not set for an administrator, a manager or a member, in admin or AJAX requests, or for the link of an inactive member. A member cannot earn from their own booking.

Example: a client follows the link, books within 30 days and the member receives the bonus after the booking is confirmed.

Button generator

Click “Generate a button”, then set the text, colours, border, corner radius and size. Copy the generated code and paste it where the button should appear on your site.

Example: enter “Book here”, adjust the design and paste the code into an HTML block.

Payouts

The member sees the available bonus, payout form and history. A request becomes available after the balance reaches Minimum payout.

  • pending: waiting for a decision.
  • approved: approved.
  • rejected: rejected.

Payout deductions use the oldest accruals first.

Example: with a minimum payout of 100 and an available balance of 120, the member can submit a request.

When a member sends a request, the sum is set aside at once: Available bonus shows the balance less the requests that wait, and the waiting sum is shown under it as Waiting for a payout. The balance itself is reduced only when you approve the request; a rejected request returns the sum to the available bonus. Approving does not send any money: you pay the member yourself, outside the plugin.

A payout is always approved by a person. There is no automatic approval. When a member sends a request, the administrator gets an e-mail, sent to the address in the Messages settings or, when it is empty, to the e-mail address of the site.

When you press Approve and the Accounting module is on, an expense Referral payout is written to the accounts with the description “Payout request #” and the number of the request. The author of the record is the administrator who pressed the button.

The Membership tab of the member shows three sums: Total bonus (earned and not yet paid out), Available (what can be asked for now) and Waiting for a payout (already asked for). A list Payout requests shows the date, the amount and the status: Waiting, Paid or Rejected. A rejected request returns the sum to the available bonus.

Administration

The Referral area contains Settings, Members and Payouts.

  • Members: approve or reject applications, block or unblock members, and remove them from the programme.
  • Payouts: approve or reject payout requests.

A blocked member can still make ordinary bookings but earns no new bonuses. This is not the client blacklist.

Example: review an application in Members and click “Approve” or “Reject”.

While the programme is enabled, the same lists are also on the Our Clients page, as the tabs Members and Payout requests. Every tab has its own address, ?page=baza-bc-clients&tab=members and ?page=baza-bc-clients&tab=payouts, so a reload or a shared link opens the same tab. Actions are icon buttons: hold the pointer over one to see its name.

The Users list gets a Referral column (Member or Blocked), and a user’s card gets a Referral programme block with the Member checkbox. Tick it to make a user a member without an application, clear it to remove the membership.

When the programme is switched off, these tabs, the column and the checkbox are hidden. The lists under Settings stay.

Make a member in the user card

You can make a member yourself, without an application. Open Clients, then Users, and edit the user. The Members section is above Blocking.

  1. Tick Referral programme member. The choice is saved at once.
  2. Choose a Promo code in the select that appears. Pick an existing one or choose New promo code, enter the code, the discount and the discount type, and create it.
  3. A star appears in the header of the card and beside the name in the Users list, and the row is highlighted.

The button Send the promo code by email in the same section sends the member a letter with the code and the discount.

The members list

Open Settings, then Referral, then Members. Each member has a row with these controls:

  • A select for the status, Member or Blocked.
  • A select for the Promo code. The choice is saved at once.
  • The Bonus column with the balance and, under it, Waiting with the sum of the payout requests that wait.
  • The button Payout history, which opens the history under the row: date, amount and status. A request that waits has the buttons Approve and Reject.
  • An envelope icon, Send the promo code by email, when the member has a promo code.
  • The name of the member leads to the user card on the Clients page.

The promo code of a member

A member has one promo code and a promo code has one member. In the account, the Membership tab shows the block Your promo code with a Copy button. A promo code works like the referral link:

  • A booking made with the code counts as brought by the member, but only when the code was really applied and gave a discount.
  • The bonus is added when the booking is confirmed, on the same conditions as for a link: the once or each mode, the minimum order, and no bonus for the member’s own bookings. A blocked member gets nothing.
  • The promo code has priority over the referral link in the cookie.
  • It works also when the promo code is put on a booking later.
  • You can link the code from the other side too: the promo code panel in Promo Coupons has a Referral programme member select. When you remove the membership, the promo code is unlinked.

Frequently asked questions

The programme and plan must be active, the member must be active and not blocked, the booking must belong to the referrer and not the member, the booking must be confirmed with booked or completed status, no bonus may already exist for it, the once or each rule must pass, the minimum order must be reached, and both the counted amount and filtered bonus must be above zero.

Example: in once mode, a second order from the same referred client does not create another bonus.

The member earns no new bonuses but may continue to book as a client.

All saved data remains, but links, cookies, bonuses, the account tab and other programme actions stop. Uninstalling the plugin removes the option, referral data and daily event.

Administrators manage settings, members, applications and payouts. The referral cookie is not set for administrators or managers.

For developers

  • baza_bc_referral_calculate: starts bonus calculation.
  • baza_bc_referral_accrue: adds the amount to the balance and writes the ledger row.
  • baza_bc_referral_deduct: deducts for expire or payout using baza_bc_referral_deduct( $user, $amount, 'expire'|'payout', $ref ).
  • baza_bc_referral_amount: filters the calculated bonus.
  • baza_bc_referral_cookie_days: filters the 30-day cookie lifetime.

Tables: {prefix}bbc_referral_ledger, {prefix}bbc_referral_balance and {prefix}bbc_referral_payouts. User meta: bbc_is_member, bbc_member_url, bbc_member_blocked, bbc_member_application and bbc_member_notify_off. Booking meta: bbc_referrer_id.

Example: use baza_bc_referral_cookie_days to change the default cookie lifetime.

Last Modified: 09.11.2026