Free to Play Backend Integration
In order to facilitate the ability for your system to grant users rewards they have won via Free To Play matchups we have implemented a few backend webhooks subscriptions.
See how to subscribe to webhook events here.
Free To Play - Matchup Created: FtpMatchupCreated
FtpMatchupCreated{
"id": "7a986e7d-783c-4cdd-90f8-eac6c3967651", // Lucra matchup identifier
"event": "FtpMatchupCreated",
"createdByUserId": "6b186e7d-783c-4cdd-90f8-eac6c3967651", // Lucra user identifier
"type": "PROFESSIONAL_SPORTS_TEAM_STAT", // One of PROFESSIONAL_SPORTS_TEAM_STAT | PROFESSIONAL_SPORTS_PLAYER_STAT | RECREATIONAL_GAME
"isPublic": true,
"groups": [
{
"groupId": "5c286e7d-783c-4cdd-90f8-eac6c3967651", // Lucra matchup group identifier
"users": [
{
"userId": "6b186e7d-783c-4cdd-90f8-eac6c3967651", // Lucra user identifier
"tenantReward": {
"id": "6b186e7d-783c-4cdd-90f8-eac6c3967651", // Lucra tenant reward identifier
"intentId": "6b186e7d-783c-4cdd-90f8-eac6c3967651", // UUID passed in via SDK
"metadata": "{}" // Stringified JSON data passed in via SDK
}
}
],
"professionalTeamDetails": { // Optional depending on type
"team": "Philadelphia Eagles",
"schedule": "DAL vs PHI - 2024REG W10",
"metric": "FOOTBALL_SCORE"
},
"professionalPlayerDetails": { // Optional depending on type
"player": "Jalen Hurts",
"schedule": "DAL vs PHI - 2024REG W10",
"metric": "PASSING_TDS"
},
}
]
}Free To Play - Matchup Accepted: FtpMatchupAccepted
FtpMatchupAcceptedFree To Play - Matchup User Outcome: ContestUserOutcome
ContestUserOutcomeUser Redeemed Reward Endpoint
Last updated