The service Reward Processor is used to manage registration, referrals, transactions, promos and daily check-in features in the backend. Data communication via service and Redis is forwarded to the mobile user.
Action Reward Processor Loyalty
Action method in Reward Processor Loyalty :
- Register Promo
- Register Referral
- Transaction Promo
- Transaction Referral
- Daily Check In
- Transaction Lucky Draw
Register Promo
Payload Data
Name | Data Type |
---|---|
id | Int |
command | String |
date | Date |
Example Request
{
"Subject": "reward",
"SubjectType": "transaction",
"SubjectIdentifier": "register",
"Action": "process",
"ResourceType": "data",
"Resource": "nik",
"ResourceId": "321231990",
"Data": {
"id": 461,
"command": "register",
"transaction": [
{
"date": "2022-02-25 10:26:11"
}
]
}
}
Register Referral
Payload Data
Name | Data Type |
---|---|
id-user-share | Int |
id-user-receive | Int |
command | String |
date | Date |
Example Request
{
"Subject": "reward",
"SubjectType": "transaction",
"SubjectIdentifier": "registerreferral",
"Action": "process",
"ResourceType": "data",
"Resource": "nik",
"ResourceId": "321231990",
"UserId": 660,
"MemberId": 571,
"TicketId": "12370001",
"Date": "2022-01-12 05:05:00",
"Data": {
"id-user-share": 462,
"id-user-receive": 463,
"command": "registerreferral",
"transaction": [
{
"date": "2022-03-28 10:26:11"
}
]
}
}
Transaction Promo
Payload Data
Name | Data Type |
---|---|
id | Int |
command | String |
date | Date |
amount | Int |
Example Request
{
"Subject": "reward",
"SubjectType": "transaction",
"SubjectIdentifier": "transactionpromo",
"Action": "process",
"ResourceType": "data",
"Resource": "nik",
"ResourceId": "321231990",
"Data": {
"id": 16659,
"command": "transactionpromo",
"transaction": [
{
"date": "2023-06-08 11:22:06",
"amount": 6843
}
]
}
}
Transaction Referral
Payload Data
Name | Data Type |
---|---|
id-user-share | Int |
id-user-receive | Int |
command | String |
date | Date |
product_id | Int |
Example Request
{
"Subject": "reward",
"SubjectType": "transaction",
"SubjectIdentifier": "transactionreferral",
"Action": "process",
"ResourceType": "data",
"Resource": "nik",
"ResourceId": "321231990",
"Data": {
"id_user_share": 462,
"command": "transactionreferral",
"transaction": [
{
"date": "2022-04-02 10:26:11",
"product_id": 10
},
{
"date": "2022-04-02 10:26:11",
"product_id": 12
}
]
}
}
Daily Check In
Payload Data
Name | Data Type |
---|---|
Id | String |
Command | String |
ClientId | String |
MemberId | String |
Date | String |
Example Request
{
"Subject": "reward",
"SubjectType": "transaction",
"SubjectIdentifier": "dailycheckin",
"Action": "dailycheckin",
"ResourceType": "data",
"Resource": "nik",
"ResourceId": "321231990",
"Data": {
"date": "2024-06-11 12:00:00"
}
}
Transaction Lucky Draw
Payload Data
Name | Data Type |
---|---|
Id | String |
Command | String |
ClientId | String |
MemberId | String |
Date | String |
Example Request
{
"Subject":"loyalty",
"SubjectType":"reward",
"SubjectIdentifier":"processor",
"Action":"luckydraw",
"ResourceType":"",
"Resource":"",
"ResourceId":"",
"Data":{
"id": 16659,
"command": "luckydraw",
"transaction": [
{
"date": "2024-02-08T11:22:06",
"amount": 1000
}
]
}
}