---
schema_version: "1"
id: b1187ae1c824759a71af3365dbf82cb0bc3613eb0ededeaeb7d7c944fbb7c13f
title: Overview of the Unenroll Member Process Template
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/bapi_overview_unenroll_member_process_template.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.bapi_overview_unenroll_member_process_template.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ba2820a162e5dda4c1e02d1a9335a37fe434f6788a6624d218641b410b24771b
description: Learn about the Unenroll Member process template and its components. Also, understand how you can use the template to create a loyalty program process and execute the process.
products:
  - Loyalty Management
release: "264"
---
# Overview of the Unenroll Member Process Template

Learn about the Unenroll Member process template and its components. Also, understand how you can use the template to create a loyalty program process and execute the process.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience in&nbsp;<strong>Enterprise</strong>,&nbsp;<strong>Performance</strong>, <strong>Unlimited</strong>, and&nbsp;<strong>Developer</strong>&nbsp;Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Orgs that have the B2C - Loyalty, B2C - Loyalty Plus, B2B - Loyalty, Loyalty Management - Growth, or Loyalty Management - Advanced license enabled</td></tr></tbody></table>

## What Does the Template Contain?

The template contains a rule and parameters. The Unenroll Member rule has one rule step to update the status of loyalty member in the Loyalty Program Member record. The parameters stores MemberID value that the rule uses to update the status of the member.

   
| Rule Step Name | What Does the Rule Step Do? | Parameters used in the Step | What Does the Parameter Do? |
| --- | --- | --- | --- |
| Change Member status | Updates the Loyalty Program Member record for the Inactive status based on the input parameter. | MemberStatus | The input parameter stores the member’s status as Inactive. |

## How Can You Execute the Processes Created Using the Unenroll Member Process Template?

Loyalty Management provides a Business API to execute processes created by cloning loyalty program process templates. You can integrate the external system and Loyalty Management with the [Unenroll Member API](https://developer.salesforce.com/docs/atlas.en-us.loyalty.meta/loyalty/connect_resources_unenroll_member.htm) by executing it when members leave the loyalty program.

- The API is invoked from an external system when members leave the loyalty program.
- The members’ status change is provided in the API request.

In the API, you must specify these values to execute the API for your cloned process:

- In the API endpoint, specify the API name of your cloned process.
- In the API request, specify the value for the parameter that’s used in the Change Member Status rule.
    
    You must specify the ID or Number of the Loyalty Program Member record that must be updated for the member’s status, the ID allows the process to identify which member’s status must be changed to Inactive.

When you execute the API, it runs the loyalty program process and the process updates the Loyalty Program Member record using the value provided in the API request. If the process contains the Change Member Status rule step, the process selected in the step is automatically run to change the status of the member to Inactive.

## Examples of How You Can Use the Template

You can clone and extend the template based on your requirements. Here’s a way you can use the template:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d31364e178">Use Case</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d31364e181">How to Achieve the Use Case?</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Use Case" class="slds-cell-wrap" style="vertical-align:top;" headers="d31364e178 ">A loyalty program may have various channels to unenroll from the loyalty program. It
              can be on the website, app, or an option on the point of sale terminal. You may want to know
              channel-wise unenrollment of members.</td>

            <td data-label="How to Achieve the Use Case?" class="slds-cell-wrap" style="vertical-align:top;" headers="d31364e181 ">
              <p>To track the unenrollment of members by channel, you can create a separate clone of
                the API for each channel. For example:</p>
              <ul>
                <li>Unenroll API for POS</li>
                <li>Unenroll API for App</li>
                <li>Unenroll API for website</li>
              </ul>
              <p style="margin-bottom:0;">You can connect these separate APIs with the channel's Unenroll button.</p>
            </td>

          </tr>
        </tbody>
      </table>