Trueplay
  • 🚀getting started
    • What is Trueplay?
    • FAQ
    • Specifications
  • ⚙️TECH
    • Loyalty Integration
    • Copystake Integration
    • FNC Integration
  • 🍬MARKETING
    • Onboarding
      • Welcome Newsletter
      • Social Media
      • Registration Bonuses
      • Welcome Staking
      • Website Navigation
      • Event Types
    • Content Hub
  • đź’ŽFEATURES
    • Play to Earn
    • Hold to Earn
    • CopyStake
    • Marketing Campaigns
  • 🪙FINANCE
    • Fees
Powered by GitBook
On this page
  • Event Types
  • Events data for developers
  1. MARKETING
  2. Onboarding

Event Types

Trueplay events are notifications that the operator receives when users make changes to their loyalty balance. For example, when the holding period expires, Trueplay notifies the operator and the user’s loyalty page.

To notify users about their rewards and other activities with notification emails, you need to set up automatic mailing customized for specific events.

Event Types

  • Play to Earn: A user receives a Play to Earn reward. This can be set as the initial reward event for a user. Send them an invitation to visit the Loyalty page to earn additional rewards.

  • Hold to Earn: A user receives a Hold to Earn reward. Notify the user and encourage them to hold more tokens to increase their bonus.

  • Balance change: The user’s balance has changed, excluding the Play to Earn and Hold to Earn events.

    Transaction types that included in the "Balance Change" event:

    • CASINO_REWARD - For rewards given by the casino.

    • WITHDRAW / CRYPTO_WITHDRAW - For withdrawals from the widget made by the user.

    • DEPOSIT / CRYPTO_DEPOSIT - For deposits made by the user.

    • TRANSFER_IN / TRANSFER_OUT - For transfers that increase or decrease the user’s balance.

    • PROMO (PROMO_CAMPAIGN_REWARD / DAILY_CASHBACK / WEEKLY_CASHBACK, PROMO_DEPOSIT_REWARD) - For promotional rewards credited to the user’s balance.

    • STAKE / UNSTAKE -For the start and finish of a staking program (“hold to earn”).

    • BURN - For any balance deductions specified as burning points or tokens.

Events data for developers

This functionality sends an event with the necessary data to the operator.

Request body structure:

METHOD
POST

URL

https://{operatorbaseurl}/player-event

BODY

{

"requestId":"uuid",

"operatorUserId":"john12345",

"createdAt":"2022-08-18 06:42:45",

"type":"EVENT_TYPE",

"data": {

"eventParam":"eventValue"

}

}

HEADERS

X-REQUEST-SIGNATURE:SIccPXmsq6XdaCd9t82ghl1bny54yVnwpjXNo0t0vLkPgtkUIQtt+1OoXp8FQfak0JyjK6FhayLHrO6RPAIIDg== Content-Type: application/json

DETAILS

X-REQUEST-SIGNATURE - Request signature, Base64(HmacSHA512(SecretKey, MD5(request body))) Event "data" is individual for each request

Supported Events:

Event type
Description
Event data

PLAY_TO_EARN

Once a user receives a Play To Earn Reward

{

"type": "PLAY_TO_EARN",

"data": {

"amount": 10

"balance": 10, "tokenPriceUsdt": 0.005,

"gameType": SLOT // Any game type sent by operator

}

} List of current game types: VIDEO_POKER, LIVE_ROULETTE, ROULETTE, BINGO, BLACK_JACK, CASUAL_GAMES, HI_LO, INSTANT_WIN_GAMES, KENO, LIVE_BLACK_JACK, LIVE_DEALER, LIVE_DICE, LIVE_GAMES, LOTTERY, OTHER, POKER, SCRATCH_CARDS, SIC_BO, SPORTS_BOOK, TABLE_GAMES, VIDEO_BINGO, V_SPORT, WHEEL_OF_FORTUNE, BACCARAT, CARD, CRAPS, CRASH, LIVE_BACCARAT, LIVE_LOTTERY

HOLD_TO_EARN

When a user receives a Hold to Earn reward

{

"type": "HOLD_TO_EARN",

"data": {

"amount": 10, //h2e reward

"reward": 10, //h2e reward

"balance": 10,

"tokenPriceUsdt": 0.005

}

}

BALANCE_CHANGE

Once the user balance has been changed. Except P2E and H2E events.

{

"type": "BALANCE_CHANGE",

"transactionType: "BURN"

"data": {

"amount": 5 ,

"balance": 10 ,

"tokenPriceUsdt": 0.005

}

}

CRYPTO_DEPOSIT_SUCCESS

When tokens are successfully deposited from user crypto wallet

{

"type":"CRYPTO_DEPOSIT_SUCCESS",

"data": {

"amount": 10.023

}

}

CRYPTO_WITHDRAWAL_SUCCESS

When tokens are successfully withdrawn to user crypto wallet

{

"type":"CRYPTO_WITHDRAWAL_SUCCESS",

"data": {

"amount": 10.023

}

}

PROMO_REWARD

When a user receives reward for registration/kyc or for a custom marketing campaigns.

{

"type": "PROMO_REWARD",

"data": {

"amount": 10,

"p2eMultiplier": 10.023,

"stakingLimitCoefficient": 10.2,

"balance": 10,

"tokenPriceUsdt": 0.005

}

}

DAILY_CASHBACK

When a user receives token reward in the form of daily cashback

{

"type": "DAILY_CASHBACK",

"data": {

"amount": 10, //daily_cashback

"balance": 10,

"tokenPriceUsdt": 0.005

}

}

WEEKLY_CASHBACK

When a user receives token reward in the form of weekly cashback

{

"type": "WEEKLY_CASHBACK",

"data": {

"amount": 10, //weekly_cashback

"balance": 10,

"tokenPriceUsdt": 0.005

}

}

DEPOSIT_VOLUME

When user receives reward with tokens for replenishing your deposit at the casino.

{

"type": "DEPOSIT_VOLUME",

"data": {

"amount": 10, //deposit_volume

"balance": 10,

"tokenPriceUsdt": 0.005

}

}

PreviousWebsite NavigationNextPlay to Earn

Last updated 1 month ago

🍬