> For the complete documentation index, see [llms.txt](https://docs.mews.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mews.com/loyalty-partner/workflows/link-or-unlink-membership.md).

# Link or unlink membership

**Mews Operations** uses the [Link or unlink membership](https://docs.mews.com/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="https://3946584615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXX5WlJYsdpRtizxNDPz%2Fuploads%2Fgit-blob-c18401b10d7d35025d2879e1b957a842731d1c30%2Fcreate-customer-screen.png?alt=media" 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="https://3946584615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXX5WlJYsdpRtizxNDPz%2Fuploads%2Fgit-blob-ff31dca65812ce31ea69dbef5c58e8f06b20d1ec%2Fselect-matching-membership.png?alt=media" 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="https://3946584615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXX5WlJYsdpRtizxNDPz%2Fuploads%2Fgit-blob-31deeb1566ac42e53a62f79041be0dd9b9328583%2Flinked-membership.png?alt=media" 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="https://3946584615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXX5WlJYsdpRtizxNDPz%2Fuploads%2Fgit-blob-9d8d1f41d93d55b4f9c4eef42f60f554fd57d72c%2Fcustomer-profile-screen.png?alt=media" 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="https://3946584615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXX5WlJYsdpRtizxNDPz%2Fuploads%2Fgit-blob-e9d82f473a96b09cada3bd47c99c452bd3f4e47c%2Fselect-matching-membership-screen.png?alt=media" 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="https://3946584615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXX5WlJYsdpRtizxNDPz%2Fuploads%2Fgit-blob-31deeb1566ac42e53a62f79041be0dd9b9328583%2Flinked-membership.png?alt=media" 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="https://3946584615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXX5WlJYsdpRtizxNDPz%2Fuploads%2Fgit-blob-2887c04e16796b45b753791fb9b3b8f9021df715%2Funlink-select-membership.png?alt=media" 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="https://3946584615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXX5WlJYsdpRtizxNDPz%2Fuploads%2Fgit-blob-9234cb00492060878b218c906f708aac1465b178%2Funlink-delete.png?alt=media" alt="Loyalty membership detail panel with the Delete button highlighted to confirm unlinking the membership" width="563"><figcaption></figcaption></figure>
{% 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
