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

# How do I set who can buy my membership (purchase rules)?

> Write the rules someone must meet to buy a shared membership, choose what happens when they do not, and decide which rules carry into next season.

> [!NOTE]
>
> **Must know**
>
> * **With no purchase rules, anybody can buy the membership.**
> * **Each top-level group decides what happens when it is not met:** block the cart, block payment, or advise only.
> * **Each rule chooses whether it carries into next season** when you roll your memberships.
> * **You need the Manage memberships permission.**

**How rules work.** Rules sit in groups, and every top-level group must be met. "A provincial or a national membership" is one group set to **Any one of them**.

**1. Open Purchase rules**

Go to **Athletes > Memberships**, open the shared membership and select **Edit**. Scroll to **Purchase rules**. With no rules it reads "Anybody can buy this."

**2. Add a group**

Select **Add rule group**. Under **How many of its rules have to be met**, choose **Any one of them**, **All of them** or **At least a number of them** (enter **How many**, 2 or more), then select **Add group**.

**3. Add rules**

Select **Add rule**, choose **What the rule is about** (table below) and **Which way it reads** (**They must meet it** or **They must NOT meet it**), fill in the details and select **Add rule**. In an **At least a number of them** group, select **Add rules** first; the group needs all its rules until you select **Done**.

**4. Choose what happens when it is not met**

On a top-level group, pick an option under **What happens when it is not met** (table below). New groups start at **Cannot be added to the cart**. A subgroup follows the group above it.

**5. Write your own message**

Under **What to tell them when it is not met**, type a sentence. It shows ahead of the standard wording, or alone if you tick **Show only your sentence, not the standard one**. Select **Save group**.

| What the rule is about | It is met when they |
| - | - |
| **Any membership of a kind** | Hold any membership with the attribute values you pick, including memberships you publish later. |
| **One named membership** | Hold that exact membership of yours. |
| **An age bound** | Are at least, or under, an age in years or months. |
| **A gender** | Have that gender on their own record. |
| **A level of yours** | Hold that level at the stage you pick under **How far through it they have to be**: working through it, or completed. |
| **An achievement of yours** | Have been awarded it. |
| **A credential of yours** (one of your certifications) | Hold it, and it has not lapsed. |
| **Who is buying** | Are **A family buying it themselves** or **A club invoicing it**. |
| **A signed document** | Have signed that waiver of yours. |

| What happens when it is not met | Result |
| - | - |
| **Cannot be added to the cart** | It does not go in the basket, and the family is told why. |
| **Can be added, cannot be paid for** | It goes in the basket, but payment is refused until the rule is met. |
| **Advisory only** | Nothing is stopped. The family is told and can carry on. |

**Next season.** Each rule has a **Next season** menu: **Carry into next season** (the default) or **Do not carry**. It saves as you change it. If a group would keep fewer rules than it asks for, the roll cannot include that membership until you change a **Next season** choice or lower the group's count.

**Also on the page.** **Add subgroup** nests a group, 3 deep at most. **Only for certain roles (optional)** limits a rule to some member types. A membership holds up to 100 rules and groups.

**What families and clubs see.** Families read the rules under **What this membership needs** when they buy online, and clubs under **What the federation requires** on an invoice.

**Related:** [How do I set the shares, markup and selling rules on a shared membership?](https://docs.uplifter.app/governing-bodies/memberships/shares-markup-and-selling-rules.md) · [How do I decide which level a membership places someone in?](https://docs.uplifter.app/governing-bodies/memberships/set-level-placement-rules.md) · [How do I roll my memberships into next season and set prices?](https://docs.uplifter.app/governing-bodies/memberships/roll-season-and-set-prices.md)


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