The function of the Discount Limit service is currently used to give a discount limit to the user.
Action Discount Limit
Action method in Discount Limit :
- Active Limit
- Counter
- Get Config
- Set Config
Active Limit
Payload Data
Name | Data Type |
---|---|
Id | String |
Code | String |
Name | String |
Description | String |
Pic1 | String |
Pic2 | String |
Status | String |
LoyaltyCode | String |
VoucherCode | String |
gsnEnabled | String |
DateStart | String |
DateEnd | String |
Example Request
{
"Subject": "ewallet",
"SubjectType": "limit",
"SubjectIdentifier": "discountlimit",
"Action": "activelimit",
"ResourceType": "data",
"Resource": "data",
"ResourceId": "data",
"Data": null
}
Counter
Payload Data
Name | Data Type |
---|---|
Id | String |
Code | String |
Name | String |
Description | String |
Pic1 | String |
Pic2 | String |
Status | String |
LoyaltyCode | String |
VoucherCode | String |
gsnEnabled | String |
DateStart | String |
DateEnd | String |
Example Request
{
"Subject": "ewallet",
"SubjectType": "limit",
"SubjectIdentifier": "discountlimit",
"Action": "counter",
"ResourceType": "data",
"Resource": "data",
"ResourceId": "data",
"Data": {
"name": [
"limit discount"
]
}
}
GetConfig
Payload Data
Name | Data Type |
---|---|
keyword | String |
current | String |
size | String |
status | String |
date | String |
Example Request
{
"Subject": "ewallet",
"SubjectType": "limit",
"SubjectIdentifier": "discountlimit",
"Action": "getconfig",
"ResourceType": "data",
"Resource": "data",
"ResourceId": "data",
"Data": null
}
SetConfig
Payload Data
Name | Data Type |
---|---|
id | String |
Example Request
{
"Subject": "ewallet",
"SubjectType": "limit",
"SubjectIdentifier": "discountlimit",
"Action": "setconfig",
"ResourceType": "data",
"Resource": "data",
"ResourceId": "data",
"Data": {
"activeLimits": [
{
"name": "Test Promo Cashback Payday",
"promoId" : 1,
"promoPeriod": "",
"maxTransactionPerUser" :5,
"maxTransactionPerUserResetPeriod": "day",
"isActiveTransactionGeneral": true,
"isActiveTransactionPerUser": true,
"maxTransactionGeneral" :100
},
{
"name": "Test Promo Discount",
"promoId" : 0,
"promoPeriod": "",
"maxTransactionPerUser" :5,
"maxTransactionPerUserResetPeriod": "day",
"isActiveTransactionGeneral": true,
"isActiveTransactionPerUser": true,
"maxTransactionGeneral" :100
}
]
}
}