Xtrempay Api Documentation
sharingFormula is set to CUSTOMtierOrder determines the priority (1 = highest tier)startPosition and endPosition define the range of positions in this tier (inclusive)prizeAmountAuthorization: ********************[
{
"tierName": "Gold",
"tierOrder": 1,
"startPosition": 1,
"endPosition": 3,
"prizeAmount": 3000
},
{
"tierName": "Silver",
"tierOrder": 2,
"startPosition": 4,
"endPosition": 10,
"prizeAmount": 1500
},
{
"tierName": "Bronze",
"tierOrder": 3,
"startPosition": 11,
"endPosition": 20,
"prizeAmount": 500
}
]curl --location --request POST 'https://mock.apidog.com/m1/918700-0-default/1/prize-tiers' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"tierName": "Gold",
"tierOrder": 1,
"startPosition": 1,
"endPosition": 3,
"prizeAmount": 3000
},
{
"tierName": "Silver",
"tierOrder": 2,
"startPosition": 4,
"endPosition": 10,
"prizeAmount": 1500
},
{
"tierName": "Bronze",
"tierOrder": 3,
"startPosition": 11,
"endPosition": 20,
"prizeAmount": 500
}
]'{
"timestamp": "2024-01-15T10:30:00Z",
"status": 200,
"success": true,
"message": "Prize tiers configured successfully",
"data": [
{
"id": 1,
"challengeId": 1,
"tierName": "Gold",
"tierOrder": 1,
"startPosition": 1,
"endPosition": 3,
"prizeAmount": 3000,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
},
{
"id": 2,
"challengeId": 1,
"tierName": "Silver",
"tierOrder": 2,
"startPosition": 4,
"endPosition": 10,
"prizeAmount": 1500,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
},
{
"id": 3,
"challengeId": 1,
"tierName": "Bronze",
"tierOrder": 3,
"startPosition": 11,
"endPosition": 20,
"prizeAmount": 500,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
]
}