The function of Master Event service which is currently used for Qoin token top up websites, so the mechanism when topping up Qoin tokens is that the user has to select the previous event.
Action Master Event
Action method in Master Event :
- Create
- Get
- GetById
- Update
- Delete
Create
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": "event",
"SubjectIdentifier": "masterevent",
"Action": "create",
"ResourceType": "data",
"Resource": "data",
"ResourceId": "data",
"Data": {
"id": "0",
"code":"EVT001",
"name":"event 1",
"description":"sample of event",
"pic1":"http://localhost:8000/sample.jpg",
"pic2":"http://localhost:8000/sample.jpg",
"status":"1",
"loyaltyCode":"LYT-001",
"voucherCode":"VCR-001",
"gsnEnabled": 1,
"dateStart":"28/08/2023 11:00",
"dateEnd":"28/08/2023 12:00"
}
}
Update
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": "event",
"SubjectIdentifier": "masterevent",
"Action": "update",
"ResourceType": "data",
"Resource": "data",
"ResourceId": "data",
"Data": {
"id": "0",
"code":"EVT001",
"name":"event 1",
"description":"sample of event",
"pic1":"http://localhost:8000/sample.jpg",
"pic2":"http://localhost:8000/sample.jpg",
"status":"1",
"loyaltyCode":"LYT-001",
"voucherCode":"VCR-001",
"gsnEnabled": 1,
"dateStart":"28/08/2023 11:00",
"dateEnd":"28/08/2023 12:00"
}
}
Get
Payload Data
Name | Data Type |
---|---|
keyword | String |
current | String |
size | String |
status | String |
date | String |
Example Request
{
"Subject": "ewallet",
"SubjectType": "event",
"SubjectIdentifier": "masterevent",
"Action": "get",
"ResourceType": "data",
"Resource": "data",
"ResourceId": "data",
"Data": {
"keyword": "sample",
"current": 1,
"size": 10,
"status": "1",
"date": "2023-08-01:2023-08-31"
}
}
GetById
Payload Data
Name | Data Type |
---|---|
id | String |
Example Request
{
"Subject": "ewallet",
"SubjectType": "event",
"SubjectIdentifier": "masterevent",
"Action": "getbyid",
"ResourceType": "data",
"Resource": "data",
"ResourceId": "data",
"Data": {
"id": 33
}
}
Delete
Payload Data
Name | Data Type |
---|---|
id | String |
Example Request
{
"Subject": "ewallet",
"SubjectType": "event",
"SubjectIdentifier": "masterevent",
"Action": "delete",
"ResourceType": "data",
"Resource": "data",
"ResourceId": "data",
"Data": {
"id": 34
}
}