Loyalty Accounts
Last updated
Was this helpful?
Last updated
Was this helpful?
This document provides a comprehensive guide on how to create loyalty accounts within a sales channel and transfer store credit between these accounts.
Before creating a loyalty account, make sure the user for whom you intend to create a loyalty account already has a registered account in the sales channel.
Registered accounts can be viewed in Omnitron on the Sales Channels > Users page.
The first step is to enable the LOYALTY_MONEY_ENABLED dynamic setting for making loyalty money enabled for payment transactions.
To enable loyalty money for payment transactions, follow these steps:
Follow the Sales Channels > Sales Channel Settings sidebar and click the Dynamic Settings page.
Among the existing dynamic settings, locate the LOYALTY_MONEY_ENABLED setting and click on it.
Set its Value to Yes, click the Save button. This will enable the loyalty money transaction for the relevant sales channel.
To create loyalty accounts, follow these steps:
Follow the Sales Channels > Sales Channel Settings sidebar and click the Loyalty Accounts page.
Click the + New Loyalty Account button located in the upper right corner of the page.
When you click the add button, a form will open for entering account details. The fields in this form and their explanations are as follows:
Account ID: This field is optional and can be left blank.
User PK: This field will automatically populate after selecting the next field, User Email.
User Email: After typing the complete user’s email address that is registered in the sales channel, this address will be filtered. Select the filtered email address.
Balance: Enter the amount of store credit to be assigned to the loyalty account.
Debit Card Allowed: Choose whether the balance assigned to the account will go into a negative value when it runs out. (To avoid any potential balance issues, it is recommended to select “Yes”.)
Currency: Enter the currency for the loyalty account.
NOTE: Multiple accounts for the same user cannot be created with the same currency. However, you can create multiple accounts for the same user with different currencies.
After entering all fields correctly (these cannot be edited later), click the OK button to create the account.
Store credit can be transferred between the loyalty accounts that you have created. The recommended scenario is to create a primary account for distributing store credit and then transfer from this primary account to customer accounts.
Store credit can only be transferred between accounts with the same currency. Accounts with different currencies would not be displayed during the transfer process.
To transfer store credit between loyalty accounts, follow these steps:
Filter and locate the loyalty account from which you want to make the transfer, as created in the previous step. Click on the corresponding row to go to the Loyalty Account Detail page.
At the top of this page, you will find summary information about the account on the Account Information section. From here, you can check the account balance.
In the second section of the page, you will find the Create Transfer section, where the transfer will take place.
Transfer To (Account ID): Select the loyalty account to which the transfer will be made from the list.
Transfer Amount: Enter the amount of store credit you want to transfer in the specified currency.
Click the Save button to complete the transfer.
When you click Save, you will see a notification message at the top of the page. The transfer is completed successfully once the message disappears, and the transfer transaction will be reflected in the Account Activities section at the bottom of the page.
To enable the transfer process, there must be at least one transfer transaction in the loyalty account. This transaction can be either incoming or outgoing transfer. All previous transactions are listed in the Account Activities section at the bottom of the page.
After selecting a payment method with LoyaltyMoneyRule, we will examine the steps to understand if the request to LoyaltyMoneyUsagePage does not work as expected. Follow the all steps outlined in this page to perform these actions, then review the relevant scenarios.
GET
Sending Request to LoyaltyMoney Usage PageA request is sent to the LoyaltyMoneyUsagePage with the intention of using LoyaltyMoney for a partial amount of the order.
Path: https://{storefront_url}/orders/checkout/?page=LoyaltyMoneyUsagePage
Request Body
Response
POST
Loyalty Money UsageA request is sent to the LoyaltyMoneyUsagePage, specifying the amount of LoyaltyMoney the user intends to use.
Path: https://{storefront_url}/orders/checkout/?page=LoyaltyMoneyUsagePage
Request Body
Response
POST
Complete Loyalty Money PaymentA request is sent to the LoyaltyMoneyPage for the completion of the order with LoyaltyMoney as the payment method.
Path: https://{storefront_url}/orders/checkout/?page=LoyaltyMoneyPage
Request Body
Response
LoyaltyMoney Usage Request:
A request is made to the LoyaltyMoneyUsagePage to use LoyaltyMoney for a portion of the order amount.
Consequently, the CreditCard payment option becomes selectable again.
CreditCard Flow:
Progress is made up to the InstallmentSelectionPage.
LoyaltyMoney Usage Request (Full Amount):
A request is sent to the LoyaltyMoneyUsagePage to pay the entire order amount using LoyaltyMoney.
Consequently, the CreditCard payment option becomes inactive, and an error occurs when attempting to send a request to the InstallmentSelectionPage, returning an error message.