- Overview
- Introduction
- Hosts
- Global Headers
- Common HTTP Error Codes
- API Permits
- Authorization
- API Contexts
- Common Concepts
- Common Models
- Reference
- API Structure
- Public API
- Introduction
- Loyalty Club
- Member
- Offers
- Rewards
- Games
- CMS Content
- Management API
- Introduction
- Core
- Applications
- Privacy Policy
- Cookie Policy
- Terms
- Domains
- Domain Email Configs
- Domain Web Configs
- TLS Certificates
- Links
- Fonts
- Subunits
- Subunits Scopes
- SMS Sender Identities
- Contacts
- Translations
- Promotions Policy
- Tracker
- Social Logins
- Billing
- Members
- Listing Members
- Member Profile
- Imports
- Groups
- Programs
- Benefits
- Cars
- Webhooks
- Misc
- Receipts
- Stores
- Offers
- Rewards
- Triggerer
- CMS
- Introduction
- Pages
- Components
- Website
- Website Domains
- Venue Info
- Landing Pages
- Landing Page Templates
- Articles
- Events
- Events Groups
- Job Postings
- Press Releases
- Tags
- Service Messages
- Content Prototypes
- ContentPrototype Model
- List Content Prototypes
- Show Content Prototype
- Create Content Prototype
- Update Content Prototype
- Destroy Content Prototype
- List Organization Content Prototypes
- Show Organization Content Prototype
- Create Organization Content Prototype
- Update Organization Content Prototype
- Destroy Organization Content Prototype
- Mixed Content
- Attachments
- Events
- Games
- Scraper
- Files
- Receipts
- Users API
- Operations API
- Introduction
- Manager API
- Tenant API
- Messaging API
- Data API
- ML API
- Introduction
- Predict Sending KPI v1
- Explain Sending KPI Prediction v1
- Predict Sending KPI In Date Range v1
- Predict Sending Popularity v2
- Predict Sending Text Popularity v2
- Predict Sending Time Series Popularity v2
- Explain Sending Popularity Prediction v2
- Explain Sending Text Popularity Prediction v2
- Explain Sending Time Series Popularity Prediction v2
- Recommend sending time v2
- Generate Image
- Generate Text
- Generate Sending Text
- (Draft) Reporting API
- Other
Introduction
Flow#
Additional info#
redeem_before_new_ticket
flag is set, no new ticket will be generated till the previous ticket's prize redeemedConfiguration#
Config | Description | Type |
---|---|---|
attempts | how many tickets player can receive / per day | int |
chance_to_win | chance to win in percentage | int |
day_start_time | hour when day starts and resets ticket counts | hour (H:i:s) |
prize_limit | prize limit per game | int |
redeem_before_new_ticket | prize must be used before new game | bool |
revoke_unredeemed_prize | revoke unredeemed prize | bool |
days_to_prize_revoked | days the prize will be revoked after | int |
show_prizes | show prizes in game rules | bool |
start_date | start game campaign | date |
end_date | end game campaign | date |
active | is game active (manual flag) | bool |
setup_finished | is game configured (auto flag) | bool |
Scratchcard - Implementation#
Game details endpoint returns:
{
"type": "game type",
"background_image": "background image for game",
"foreground_image": "foreground image for game",
"design_image": "t3",
"inactive_image": "image to show when is active flag is set to false",
"is_active": true
}
When in game, ask for ticket.
When click play, endpoint returns:
{
"symbols": [
"symbol_image1",
"symbol_image5",
"symbol_image2",
"symbol_image3",
"symbol_image2",
"symbol_image4",
"symbol_image3",
"symbol_image4",
"symbol_image1"
],
"prize": {
"name": "100 NOK !"
}
}
Symbols should be placed on game's foreground image.
If prize has been won, the symbol list contains 3 same symbols and
the prize name can be displayed with link to prize issue
Wheel of fortune - Implementation#
Game details endpoint returns:
{
"type": "wof",
"background_image": "background image for game",
"wheel_image": "wheel image",
"arrow_image": "arrow image",
"inactive_image": "image to show when is active flag is set to false",
"is_active": true
}
When in game, ask for ticket.
When click play, endpoint returns:
{
"degree": 65,
"prize": null
}
Endpoint returns degree, where the wheel must stop on.
If prize has been won, the arrow should point to prize on wheel.
the prize name can be displayed with link to prize issue
Modified at 2024-04-22 22:18:06