# Link or unlink membership

**Mews Operations** uses the [Link or unlink membership](/loyalty-partner/api-operations/memberships.md#put-memberships-link) operation to link an existing membership from the partner loyalty system to a Mews customer profile, or to remove that link.

## Link during new customer creation

Front desk staff are creating a new customer profile in **Mews Operations**. The membership lookup in the partner system returns a matching membership. They select the appropriate membership and link the customer to it.

{% stepper %}
{% step %}

#### Create new customer

<div align="center" data-full-width="false"><figure><img src="/files/6a0sgRktv1BNyuigpcuP" alt="New customer creation form with fields for email, name, phone, membership number, and address" width="375"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

#### Select matching membership

<figure><img src="/files/MSDnuk18W22tZCsu0VFV" alt="List of matching members returned from the partner loyalty system, with customer details and a Confirm button" width="330"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Linked membership

<figure><img src="/files/QHMWWxSvzi1JOLfY6Ubu" alt="Customer profile showing the Loyalty panel with a successfully linked membership entry" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## Link from customer profile

Front desk staff view an existing customer profile without a linked membership. They open the lookup screen, which returns a list of matching memberships. They select the correct membership and link the customer to it.

{% stepper %}
{% step %}

#### Customer profile screen

<figure><img src="/files/G1zojySPlyNpj5TSiWIx" alt="Customer profile screen with a Loyalty panel warning that the customer is not enrolled in a loyalty program" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Select matching membership

<figure><img src="/files/5xIeCWaM6cLXY8IWC4Cv" alt="Customer profile screen with a membership lookup panel showing a list of matching members from the partner loyalty system" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Linked membership

<figure><img src="/files/QHMWWxSvzi1JOLfY6Ubu" alt="Customer profile showing the Loyalty panel with a successfully linked membership entry" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## Unlink

Front desk staff view an existing customer profile with a linked membership. They select the membership program and remove it, unlinking the membership from the customer profile.

{% stepper %}
{% step %}

#### Select membership

<figure><img src="/files/zJzGGSavZ1RgnoLC3x0N" alt="Customer profile showing the Loyalty panel with an active linked membership selected for removal" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Unlink membership

<figure><img src="/files/e5aKR2Llj2C1QQF84dWp" alt="Loyalty membership detail panel with the Delete button highlighted to confirm unlinking the membership" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions: 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:

```
GET https://docs.mews.com/loyalty-partner/workflows/link-or-unlink-membership.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
