---
schema_version: "1"
id: ee2bbf8e45e8c860264ff3bfd5abd39320217fc34efc98c7f15321001f1e0f42
title: Overview of the Debit Points from Members 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_debit_points_process_template.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.bapi_overview_debit_points_process_template.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8b17d78f417bd80499f77998b9c34d21dcf7333a270f51dae0ca053d8617ee96
description: Learn about the Debit Points from Members process template and its components. Also, understand how you can use the template to create loyalty program processes based on your requirements and execute the processes.
products:
  - Loyalty Management
release: "264"
---
# Overview of the Debit Points from Members Process Template

Learn about the Debit Points from Members process template and its components. Also, understand how you can use the template to create loyalty program processes based on your requirements and execute the processes.

### 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 set of parameters. The Debit Points from Members rule has only one rule step: Debits Points. The parameters store values that the rule uses to debit points.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d44781e85">Rule Step Name</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d44781e88">What Does the Rule Step Do?</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d44781e91">Parameters used in the Step</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d44781e94">What Does the Parameter Do?</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d44781e97">Examples of Customization</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Rule Step Name" class="slds-cell-wrap" rowspan="3" style="vertical-align:top;" headers="d44781e85 ">Debit Points</td>

            <td data-label="What Does the Rule Step Do?" class="slds-cell-wrap" rowspan="3" style="vertical-align:top;" headers="d44781e88 ">Redeems points for transactions and debits points from the points balance
              of the Loyalty Program Member based on the details provided in the input parameters.</td>

            <td data-label="Parameters used in the Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d44781e91 ">CurrencyName</td>

            <td data-label="What Does the Parameter Do?" class="slds-cell-wrap" style="vertical-align:top;" headers="d44781e94 ">The input parameter stores the loyalty program currency in which points are debited
              from the member for redeeming their transactions.</td>

            <td data-label="Examples of Customization" class="slds-cell-wrap" rowspan="3" style="vertical-align:top;" headers="d44781e97 ">If you have multiple currencies such as Non-Qualifying Points and
              Qualifying Points and when you want to debit points calculated in external systems, you can
              clone the template and select the currency to debit. This creates a separate API for each
              currency. In the payload for the API, you can specify the precalculated points from the
              external system to be debited from the member’s points balance in Loyalty
              Management.</td>

          </tr>
          <tr class="">
            <td data-label="Parameters used in the Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d44781e91 ">PointsToDebit</td>

            <td data-label="What Does the Parameter Do?" class="slds-cell-wrap" style="vertical-align:top;" headers="d44781e94 ">The input parameter stores the number of points to be debited from the member.</td>

          </tr>
          <tr class="">
            <td data-label="Parameters used in the Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d44781e91 ">PointsDebited</td>

            <td data-label="What Does the Parameter Do?" class="slds-cell-wrap" style="vertical-align:top;" headers="d44781e94 ">The output parameter stores the number of points debited from the member.</td>

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

## How Can You Execute the Processes Created Using the Debit Points from Member Process Template?

You can clone the Debit Points from Members process template to debit points from members for redeeming their points.

Loyalty Management provides a Business API to execute processes created by cloning loyalty program process templates. The [DebitPointsFromMember API](https://developer.salesforce.com/docs/atlas.en-us.loyalty.meta/loyalty/connect_resources_debit_points_to_members.htm) can be integrated with an external system to ensure that it’s executed when a member redeems precalculated points in an external system. If members redeems points on your ecommerce site, integrate the site with the API when members’ redeem points.

In the API, you must specify these values before executing the API for your cloned process:

- In the API endpoint, specify the API name of your cloned process.
- In the API request, specify the values for the parameters that are used in the Debit Points rule.
    
    Ensure that you specify the Loyalty Program Currency in which points must be debited from the member and the date from which the rule must start processing transaction journals and debit points.

When you execute the API, it runs the loyalty program process and updates the Points Balance using the values provided in the API request.

## Examples of How You Can Use the Template

You can clone and extend the template based on your requirements. Here are a few ways 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="d44781e198">Use Case</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d44781e201">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="d44781e198 ">A loyalty program has Reward Points as Non-Qualified Points and Tier Points as
              Qualified Points. The Loyalty Program Admin wants to create separate APIs for debiting
              Reward Points and Tier Points.</td>

            <td data-label="How to Achieve the Use Case?" class="slds-cell-wrap" style="vertical-align:top;" headers="d44781e201 ">
              <p>From the cloned process, go to the Debit Points rule and select the Currency as Reward Points.</p>
              <ul>
                <li>Clone the template.</li>
                <li>Select Reward Points as currency and specify the rule start date.</li>
                <li>When executing the API, specify the externally calculated points as an input to ensure
                  that the exact number of points are debited from the member.</li>
              </ul>
            </td>

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