Worker Service Manager who works to get information from transaction rewards. This service process is differentiated by four actions, namely "transaction", "luckydraw", "refferal" and "register" which will affect the data entry and message in section.

Flow Loyalty Reward Task
How To Create Signature ?
= using RSA SHA256 1024 bit + Private Key from SaaS=
Notes:
Dari SaaS harus menyediakan Private Key dan Public Key untuk di get oleh service ini
Link generator online: https://8gwifi.org/rsasignverifyfunctions.jsp
{
"trxId": 0,
"refference": "ref123",
"memberId": 2784,
"memberName": "Fares",
"userFromStatus": 0,
"userId": 92479,
"userIdShare": 0,
"deviceType": "android",
"installId": "S21+",
"data": [
{
"trxAmount": 2000,
"trxDate": "2024-04-28 10-30-00"
}
]
}
Here's the detail of service action in Loyalty Reward Task :
Loyalty Reward - Transaction
Payload Data
Name | Data Type |
---|---|
trxId | String |
memberId | String |
memberName | String |
refference | String |
userFromStatus | String |
userId | String |
userIdShare | String |
deviceType | String |
installId | String |
signature | String |
trxAmount | String |
trxDate | String |
Example Request
{
"Subject":"loyalty",
"SubjectType":"reward",
"SubjectIdentifier":"task",
"Action":"transaction",
"ResourceType":"null",
"Resource":"null",
"ResourceId":"null",
"ScopeSource":"",
"Data":{
"trxId":0,
"memberId":123,
"memberName":"agung",
"refference":"ref123",
"userFromStatus":0,
"userId":123,
"userIdShare":456,
"deviceType":"android",
"installId":"installId",
"signature":"sssss",
"data":[
{
"trxAmount":10000,
"trxDate":""
}
]
}
}
Loyalty Reward - Lucky Draw
Payload Data
Name | Data Type |
---|---|
trxId | String |
memberId | String |
memberName | String |
refference | String |
userFromStatus | String |
userId | String |
userIdShare | String |
deviceType | String |
installId | String |
signature | String |
trxAmount | String |
trxDate | String |
Example Request
{
"Subject":"loyalty",
"SubjectType":"reward",
"SubjectIdentifier":"task",
"Action":"luckydraw",
"ResourceType":"null",
"Resource":"null",
"ResourceId":"null",
"ScopeSource":"",
"Data":{
"trxId":0,
"memberId":123,
"memberName":"agung",
"refference":"ref123",
"userFromStatus":0,
"userId":123,
"userIdShare":456,
"deviceType":"android",
"installId":"installId",
"signature":"sssss",
"data":[
{
"trxAmount":10000,
"trxDate":""
}
]
}
}
Loyalty Reward - Register
Payload Data
Name | Data Type |
---|---|
trxId | String |
memberId | String |
memberName | String |
refference | String |
userFromStatus | String |
userId | String |
userIdShare | String |
deviceType | String |
installId | String |
signature | String |
trxAmount | String |
trxDate | String |
NotesThe registration process is carried out during the first New Member process, and ensure that the Membership service is integrated with the Loyalty Reward Task service.
Example Request
{
"Subject":"loyalty",
"SubjectType":"reward",
"SubjectIdentifier":"task",
"Action":"register",
"ResourceType":"null",
"Resource":"null",
"ResourceId":"null",
"ScopeSource":"",
"Data":{
"trxId":0,
"memberId":123,
"memberName":"agung",
"refference":"ref123",
"userFromStatus":0,
"userId":123,
"userIdShare":456,
"deviceType":"android",
"installId":"installId",
"signature":"sssss",
"data":[
{
"trxAmount":10000,
"trxDate":""
}
]
}
}
Loyalty Reward - Register Referral
Payload Data
Name | Data Type |
---|---|
trxId | String |
memberId | String |
memberName | String |
refference | String |
userFromStatus | String |
userId | String |
userIdShare | String |
deviceType | String |
installId | String |
signature | String |
trxAmount | String |
trxDate | String |
Example Request
{
"Subject": "loyalty",
"SubjectType": "reward",
"SubjectIdentifier": "task",
"Action": "registerreferral",
"ResourceType": "null",
"Resource": "null",
"ResourceId": "null",
"Data": {
"data": [
{
"trxAmount": 1000,
"trxDate": "2024-04-30 10:30:00"
}
],
"deviceType": "android",
"installId": "S21+",
"memberId": 2784,
"memberName": "Fares",
"memberQtagPhone": "Q12345",
"refference": "ref123",
"signature": "Q5PR7cAbCq8JGyQknqhSSVa0ElbASVbg6olfavCmszTtk27IP1JWIRFKuQFOjqEiT0QFvWcqGdchIjl+11ZQqce8vuRfPvmZeaM0nrkRr/kGHWtBf0CWgTJCAPKmddTw0sZUHrwg/8bl41VpQjcxGdPOqRbllTMsTViychxAFVY=",
"trxId": 0,
"userFromStatus": 0,
"userId": 92479,
"userIdShare": 0
}
}
Loyalty Reward - Transaction Referral
Payload Data
Name | Data Type |
---|---|
trxId | String |
memberId | String |
memberName | String |
refference | String |
userFromStatus | String |
userId | String |
userIdShare | String |
deviceType | String |
installId | String |
signature | String |
trxAmount | String |
trxDate | String |
productID | String |
Example Request
{
"Subject": "loyalty",
"SubjectType": "reward",
"SubjectIdentifier": "task",
"Action": "transactionreferral",
"ResourceType": "null",
"Resource": "null",
"ResourceId": "null",
"Data": {
"data": [
{
"trxAmount": 1000,
"trxDate": "2024-04-30 10:30:00",
"product_id": 10
}
],
"deviceType": "android",
"installId": "S21+",
"memberId": 2784,
"memberName": "Fares",
"memberQtagPhone": "Q12345",
"refference": "ref123",
"signature": "Q5PR7cAbCq8JGyQknqhSSVa0ElbASVbg6olfavCmszTtk27IP1JWIRFKuQFOjqEiT0QFvWcqGdchIjl+11ZQqce8vuRfPvmZeaM0nrkRr/kGHWtBf0CWgTJCAPKmddTw0sZUHrwg/8bl41VpQjcxGdPOqRbllTMsTViychxAFVY=",
"trxId": 0,
"userFromStatus": 0,
"userId": 92479,
"userIdShare": 0
}
}
Loyalty Reward - Daily Check In
Payload Data
Name | Data Type |
---|---|
trxAmount | String |
trxDate | String |
deviceType | String |
installId | String |
memberId | String |
memberName | String |
refference | String |
signature | String |
trxId | String |
userFromStatus | String |
userId | String |
userIdShare | String |
Date | String |
Example Request
{
"Subject": "loyalty",
"SubjectType": "reward",
"SubjectIdentifier": "task",
"Action": "dailycheckin",
"ResourceType": "null",
"Resource": "null",
"ResourceId": "null",
"Data": {
"data": [
{
"trxAmount": 0,
"trxDate": "2024-04-30 10-30-00"
}
],
"deviceType": "android",
"installId": "S21+",
"memberId": 2784,
"memberName": "Fares",
"refference": "ref123",
"signature": "Q5PR7cAbCq8JGyQknqhSSVa0ElbASVbg6olfavCmszTtk27IP1JWIRFKuQFOjqEiT0QFvWcqGdchIjl+11ZQqce8vuRfPvmZeaM0nrkRr/kGHWtBf0CWgTJCAPKmddTw0sZUHrwg/8bl41VpQjcxGdPOqRbllTMsTViychxAFVY=",
"trxId": 0,
"userFromStatus": 0,
"userId": 92479,
"userIdShare": 0
}
}