The Transaction History Service is used to get notifications and history details when carrying out the voucher purchase transaction process and displays the reward history provided by external parties that have been integrated with SaaS. In the service, each payload endpoint is differentiated by Subject, SubjectType and SubjectIdentifier which will affect the fields in the message in section.
Here's the detail of service action in History Transaction :
History - Get
Payload Data
Name | Data Type |
---|---|
page | String |
pageSize | String |
maxPage | String |
trxDateFrom | String |
trxDateTo | String |
Example Request
{
"Subject":"transaction",
"SubjectType":"transaction",
"SubjectIdentifier":"history",
"Action":"get",
"ResourceType":"data",
"Resource":"data",
"ResourceId":"data",
"Data":{
"page":1,
"pageSize":10,
"maxPage":10,
"trxDateFrom":"",
"trxDateTo":""
}
}
History - Get Master
Payload Data
Name | Data Type |
---|---|
page | String |
pageSize | String |
maxPage | String |
trxDateFrom | String |
trxDateTo | String |
trxStatus | String |
Example Request
{
"Subject":"transaction",
"SubjectType":"transaction",
"SubjectIdentifier":"history",
"Action":"getmaster",
"ResourceType":"data",
"Resource":"data",
"ResourceId":"data",
"Data":{
"page":1,
"pageSize":5,
"maxPage":0,
"trxDateFrom":"",
"trxDateTo":"",
"trxStatus":1
}
}
History - Get Details
Payload Data
Name | Data Type |
---|---|
trxId | String |
Example Request
{
"Subject":"transaction",
"SubjectType":"transaction",
"SubjectIdentifier":"history",
"Action":"getdetails",
"ResourceType":"data",
"Resource":"data",
"ResourceId":"data",
"Data":{
"trxId":3966958
}
}
History - Delete
Payload Data
Name | Data Type |
---|---|
trxId | String |
Example Request
{
"Subject":"transaction",
"SubjectType":"transaction",
"SubjectIdentifier":"history",
"Action":"delete",
"ResourceType":"data",
"Resource":"data",
"ResourceId":"data",
"Data":{
"trxId":[
4294
]
}
}
History - Get Voucherss Details
Payload Data
Name | Data Type |
---|---|
trxType | String |
Example Request
{
"Subject":"transaction",
"SubjectType":"transaction",
"SubjectIdentifier":"history",
"Action":"getvoucherssdetails",
"ResourceType":"data",
"Resource":"data",
"ResourceId":"data",
"Data":{
"trxType":"96"
}
}
History - Get Reward
Payload Data
Name | Data Type |
---|---|
page | String |
pageSize | String |
maxPage | String |
trxPointTypeCode | String |
Example Request
{
"Subject": "transaction",
"SubjectType": "transaction",
"SubjectIdentifier": "history",
"Action": "getreward",
"ResourceType": "data",
"Resource": "data",
"ResourceId": "data",
"Data": {
"page": 1,
"pageSize": 10,
"maxPage": 10,
"trxPointTypeCode": [
"LD",
"PTS",
"VCR"
]
}
}
History - Get History Notif
Payload Data
Name | Data Type |
---|---|
page | String |
pageSize | String |
maxPage | String |
Example Request
{
"Subject":"transaction",
"SubjectType":"transaction",
"SubjectIdentifier":"history",
"Action":"gethistorynotif",
"ResourceType":"data",
"Resource":"data",
"ResourceId":"data",
"Data":{
"page":1,
"pageSize":1,
"maxPage":10
}
}
History - Get Lucky Draw
Payload Data
Name | Data Type |
---|---|
page | String |
pageSize | String |
maxPage | String |
search | String |
Example Request
{
"Subject":"transaction",
"SubjectType":"transaction",
"SubjectIdentifier":"history",
"Action":"getluckydraw",
"ResourceType":"data",
"Resource":"data",
"ResourceId":"data",
"Data":{
"page":1,
"pageSize":1,
"maxPage":10,
"search":"LD123"
}
}
History - Read Notif
Payload Data
Name | Data Type |
---|---|
IdNotif | String |
Example Request
{
"Subject": "transaction",
"SubjectType": "transaction",
"SubjectIdentifier": "history",
"Action": "readnotif",
"ResourceType": "data",
"Resource": "data",
"ResourceId": "data",
"Data": {
"IdNotif": [
4294
]
}
}
History - Read All Notif
Example Request
{
"Subject":"transaction",
"SubjectType":"transaction",
"SubjectIdentifier":"history",
"Action":"readallnotif",
"ResourceType":"data",
"Resource":"data",
"ResourceId":"data",
"Data":{}
}