> For the complete documentation index, see [llms.txt](https://docs.b2copy.b2broker.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.b2copy.b2broker.com/admin-guide/manage-master-and-investment-accounts/assign-a-subscription-code-to-a-master-account.md).

# Assign a subscription code to a master account

Assign a subscription code to a master account to prevent investors who don't have the subscription code from viewing the account's trading statistics or subscribing to the account.

Each master account must have its own unique subscription code.

When a subscription code has been assigned to a master account that is hidden in the **Leaderboard**, investors can search for the account by its number, and then they must provide the code to view the account's trading statistics and to subscribe to the account.

When a subscription code has been assigned to a master account that is visible in the **Leaderboard**, the account is displayed to investors in the **Leaderboard**, however, they must provide the code to view the account's trading statistics and to subscribe to the account.

Assign a subscription code to a master account:

{% stepper %}
{% step %}
Go to **Investment Platform** and expand the required platform instance.
{% endstep %}

{% step %}
For copy-trading master accounts, go to **B2COPY** > **Masters**.\
For MAM master accounts, go to **Mam** > **Masters**.\
For PAMM master accounts, go to **Pamm** > **Masters**.
{% endstep %}

{% step %}
Select a master account, and click **Edit**.
{% endstep %}

{% step %}
On the **Properties** tab, go to **Accessibility properties**.
{% endstep %}

{% step %}
Click **Generate Code**. The generated code is displayed in the **Subscription code** field.

<figure><img src="/files/c9vqSPcLztYQSlJdqj1S" alt="Accessibility properties"><figcaption><p>Accessibility properties</p></figcaption></figure>
{% endstep %}

{% step %}
To replace the previously generated subscription code with a new subscription code, click **Generate Code**.
{% endstep %}

{% step %}
To copy the code to the clipboard, click **Copy code**.
{% endstep %}

{% step %}
To remove the code, click **Delete code**.
{% endstep %}

{% step %}
Сlick **Save** to apply the changes.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.b2copy.b2broker.com/admin-guide/manage-master-and-investment-accounts/assign-a-subscription-code-to-a-master-account.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
