Skip to main content

Incrementing A Player's Experience Points (SOFTCODE)

Whalepass.gg

Called when player completes a specific game action to update experience point To test specific DRAFT Battlepass, add X-Battlepass-Id header to request

Request:

POST https://api.whalepass.gg/players/{playerId}/progress/action
{
"gameId": "string",
"actionId": "string"
}

Expected Response:

{
"playerBattlepassProgress": {
"id": "string",
"playerId": "string",
"battlepassId": "string",
"currentExp": 0,
"lastCompletedLevel": 0,
"completedLevels": [
0
],
"completedChallenges": [
"string"
],
"createdAt": "2023-12-27T09:53:34.155Z",
"updatedAt": "2023-12-27T09:53:34.155Z"
},
"completedLevels": [
{
"id": "string",
"battlepassId": "string",
"level": 0,
"expRequired": 0,
"status": true,
"freeTierRewards": [
{
"id": "string",
"gameId": "string",
"battlepassId": "string",
"tokenId": "string",
"amount": 0,
"amountInDecimal": 0,
"createdAt": "2023-12-27T09:53:34.155Z",
"updatedAt": "2023-12-27T09:53:34.155Z"
}
],
"premiumTierRewards": [
{
"id": "string",
"gameId": "string",
"battlepassId": "string",
"tokenId": "string",
"amount": 0,
"amountInDecimal": 0,
"createdAt": "2023-12-27T09:53:34.155Z",
"updatedAt": "2023-12-27T09:53:34.155Z"
}
]
}
]
}