Retrieve list of Reward
Merchant able to retrieve list of rewards.
API Endpoint
POST https://api.thegamify.club/api/player/gamehistory?page=1&pageSize=20&sort=-createdAt
Request Params
| Property | Type | Description |
|---|---|---|
page | Number | Page number. |
pageSize | Number | Size of a page. |
sort | String | Sorted fields. Default is created at |
HEADERS
{
"Content-Type": "application/json",
"Authorization": [Player Token]
}
Example
GET /api/player/gamehistory
curl https://api.thegamify.club/api/player/gamehistory?page=1&pageSize=20&sort=-createdAt \
-X GET \
-H "Content-Type: application/json" \
-H "Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwbGF5ZXJJZCI6IjY1NjViN2Q0YWIzOTIwNmRkNTM0ZjQ0MyIsImdhbWVJZCI6IjY1NjU2MWM0NTA4OGM3ZGYwZDA3Zjc3OSIsImlhdCI6MTcwMzIzNDc2MX0.XBbKf5_3AuoEkPZZ2a0jylzTOIdTpLXyY4j4hOPEyVw" \
RESPONSE
Type: Object - List of found entities and count.
Read more about The Reward object.