curl --location 'https://api.aworld.cloud/app/v1/virtual-transactions/history/search' \
--header 'x-external-user-id;' \
--header 'x-user-id;' \
--header 'Content-Type: application/json' \
--data '{
"filter": {
"==": [
{
"var": "role"
},
"admin"
]
},
"sort": {
"field": "createdAt",
"order": "asc"
},
"limit": 20,
"nextToken": "string",
"fields": [
"rewardRule"
]
}'{
"items": [
{
"userId": "string",
"virtualCurrencyId": "string",
"virtualTransactionId": "string",
"virtualTransactionGroupId": "string",
"redemptionGroupId": "string",
"redemptionMode": "AUTO",
"state": "PENDING",
"direction": "CREDIT",
"initiatorType": "USER",
"initiator": "string",
"counterpartType": "USER",
"counterpart": "string",
"additionalData": {
"property1": "string",
"property2": "string"
},
"amount": 0,
"expiresAt": "2019-08-24T14:15:22.123Z",
"redeemedAt": "string",
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z",
"rewardRule": {
"rewardRuleId": "string",
"name": "string",
"version": 0,
"archived": true
},
"sourceEntity": {
"sourceType": "Activity",
"sourceId": "string",
"version": 0,
"archived": true,
"title": "string",
"defaultLang": "en"
},
"virtualCurrency": {
"virtualCurrencyId": "string",
"name": "string",
"icon": "string",
"archived": true,
"label": "string",
"defaultLang": "en"
},
"streakRule": {
"streakRuleId": "string",
"name": "string",
"version": 0,
"archived": true,
"kind": "REGULAR"
}
}
],
"nextToken": "eyJwayI6IndvcmtzcGFjZUlkI3pPR0JndVctQWoiLCJxdWl6SWQiOiItRktBdDZfbXM4M3RvSUZaLWVjeFQifQ=="
}