# Link or unlink membership

**Mews Operations** uses the [Link or unlink membership](https://docs.mews.com/loyalty-partner/api-operations/memberships#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 %}
