Loyalty Program Connection
Consider the connection to the loyalty program by Grandbazar as an example.
To connect to the loyalty program, complete the following steps:
-
In your personal account on Grandbazar, get your values for the following system properties and enter them in the Value field of the corresponding entries in System Properties → All Properties:
- hrm.grandbazar_url – specify the link to the loyalty program;
- hrm.grandbazar_api_key – specify the API key for connecting to the loyalty program;
- hrm.grandbazar_project_uuid – specify the UUID identifier of the project in the loyalty program;
- hrm.grandbazar_collection_uuid – specify the UUID identifier of the collection to obtain loyalty card data.
-
Specify the name of the corporate currency of the loyalty program using message localization.
-
In the agent interface, navigate to Portal Structure → Widgets and open the Loyalty Card record.
-
In the Demo data field, specify the text of the source message created on step 2 in the following format: {"currency": "
source message"} and click Save or Save and exit to apply the changes. -
Activate the Sync balance for loyalty cards (every 10 minutes) scheduled script located at {your instance URL}/record/sys_schedule_script/174247400416018628. To do so, select the Active checkbox and click Save or Save and exit to apply the changes.
-
(optional) To disconnect from the loyalty program, deactivate the Sync balance for loyalty cards (every 10 minutes) scheduled script. To do so, clear the Active checkbox and click Save or Save and exit to apply the changes.