UK engineers and providers who want to include the Book of Dead slot to their sites need solid API documentation to begin. This guide describes the Book of Dead slot API. It outlines the endpoints, data structures, and how to implement it, all with the UK’s regulated market in mind. You’ll find out about authentication, simulating spins, and managing the game’s iconic Expanding Symbol function. The goal is a reliable, legally compliant implementation.
Grasping the Book of Dead API Architecture
The Book of Dead slot API is a REST-based service that uses JSON for sending and receiving data. Designed for high uptime, it maintains players entertained even during peak periods like major football matches. The architecture divides the game logic server from the client-side presentation. This separation assures that results, like reel stops and bonus triggers, are random and handled securely on the backend.
In a standard integration, your platform is the client. It begins sessions and sends player actions. An API gateway accepts these requests and directs them to the right game service. For UK operators, this system facilitates the audit trails and data separation the Gambling Commission requires. Grasping this process assists with debugging and incorporating custom features like tournaments or special promotions.
The API is stateless. Every request must include its own authentication and context. This strategy supports scalability and reliability, letting the service to manage traffic spikes. To maintain things fluid for users, even with network problems, you should implement retry logic and connection pooling on your end.
Verification and Safe Session Initialisation
Protection comes first. The Book of Dead API uses OAuth 2.0 client credentials for authorisation. You must have a unique `client_id` and `client_secret` from the provider. All transmission happens over HTTPS, with a bearer token placed in the `Authorization` header. Since this token runs out, your code must renew it automatically to avoid disrupting a player’s session.
To start a game session, send a POST request to `/session/start`. The payload must include the player’s unique ID (linked to your system), their currency (GBP), and language configuration. For UK compliance, you must also include the player’s current session ID from your responsible gambling tools. This allows the game connect with timeout and limit features. The response provides you a `game_session_token` for all further requests.
We use strict IP whitelisting for server-to-server calls from UK operators. Also, every spin and financial transaction gets a digital signature. Your integration must check these signatures with our public key to confirm data hasn’t been altered. This step is essential for legal UK operation and secures both you and the player from interference.
Main Gameplay Endpoints: Spin and Result
The key endpoint for play is `/game/spin`. A POST request here executes a single spin at the player’s chosen stake. The request must include the `game_session_token`, the `stake` in GBP, and an non-mandatory `feature_buy` flag if that is available. Your system needs to verify the player has enough funds before calling the API, because the API does not handle wallet balances.
The spin response returns a detailed JSON object. It holds a `reel_stops` array showing each reel’s position and a `symbols_matrix` for your client to animate. The `winning_lines` array details any payline wins, listing the line number, symbol, and payout. Critically, it indicates if the Free Spins bonus round was triggered, which takes place when three or more Book scatter symbols appear anywhere.
For the UK market, the response features required compliance fields. These include a `spin_timestamp` in UTC, a specific `round_id` for audits, and the `total_payout`. You need to store this data permanently for UKGC reporting and any customer disputes. A recommended approach is to log it synchronously as soon as you get the response, so nothing gets lost.
Handling the Free Spins Bonus and Growing Sign
When the Free Spins bonus activates, Book Of Dead Slot, a separate sequence begins. The original base game spin response signals the trigger. Your client then requests `/bonus/initiate` with the `round_id` from that spin. This provides the bonus data: how many free spins were granted and, most crucially, the randomly selected `expanding_symbol` for this session.
The Expanding Symbol is what makes Book of Dead thrilling. During free spins, one normal symbol changes into an expanding wild. If this symbol appears, it stretches to fill the whole reel, producing bigger wins. The API answer for each free spin explicitly indicates if an expansion occurred and the win factor that ensued. Your graphic should display this expansion clearly to match the game’s layout and what players look for.
You perform each free spin with a call to `/bonus/spin`. The sequence proceeds until all given spins are exhausted. The API tracks the bonus round status, so you only have to transmit the `bonus_round_id`. Wins build up, and the aggregate is given at the finish. Your user screen should show the count of free spins remaining and the current expanding symbol, ensuring the player aware.
Payment Integration and Transaction Reporting
Financial accuracy is critical. The Book of Dead API does not handle real money. It only computes win amounts. Your platform must remove the stake before invoking the spin endpoint, then apply the winnings after you obtain and validate the result. This needs solid, atomic transaction logic on your backend to circumvent race conditions or balance errors.
All money values in the API are in GBP, with two decimal places. The `payout` value in the response is the net win for that spin (the total win minus the stake). You allocate this amount to the player’s balance. UK operators also need to record `total_stake` and `total_wins` per player session to work out Gross Gambling Yield for regulatory reports.
We offer a `/transactions/history` endpoint for reconciliation. You can request it with a date range or a specific `round_id` to pull a signed record of all transactions. UK licensees typically conduct a daily reconciliation with this data. It checks that your financial records line up with the provider’s logs, building a clear audit trail.
Error Management and Compliance for the UK Market
Effective error handling ensures stability. The API utilizes standard HTTP status codes along with a specific `error_code` and `message` in the response body. Common errors consist of `INSUFFICIENT_BALANCE` (which you should catch before the request), `SESSION_EXPIRED`, and `BET_LIMIT_EXCEEDED`. Your code must process these gracefully, perhaps by sending the player to a deposit page or clarifying a limit breach, following UK responsible gambling rules.
UK-specific compliance errors require attention. If a player’s self-exclusion or timeout occurs during a game, the API might return a `PLAYER_SUSPENDED` error. Your integration must terminate the game session right away and redirect the player to a secure, non-gambling part of your site. Logging these events for your compliance team is mandatory. The same goes for age verification failures; gameplay must halt immediately.
Implement using a circuit breaker pattern for API calls. If you experience several timeouts or server errors (5xx statuses) in a row, your system should back off and degrade gracefully, maybe displaying a maintenance message. This boosts the user experience and prevents your servers from overloading. Set up monitoring to warn your tech team if 4xx or 5xx error rates increase, so they can look into quickly.
Testing and Modeling in a Sandbox Environment
Never go live without comprehensive testing in the sandbox. This environment emulates the live API but uses test money and doesn’t affect real finances. You’ll get sandbox-only `client_id` and `client_secret` credentials. It enables you to simulate the whole player experience, from signing up and depositing to playing and withdrawing, so you can resolve any edge cases.
UK developers should prioritize key test scenarios. Simulate the bonus round trigger often to check the Expanding Symbol animation works. Test large wins to confirm your balance updates and any manual review processes function. You must also test how your integration works with responsible gambling tools, like sending a timeout signal to verify gameplay stops properly. This is a compliance requirement.
The sandbox also includes tools to force specific outcomes, like triggering a bonus or a losing spin. This is extremely useful for building and testing features like game history logs, bonus buy options, and your own promotional messages. Build a comprehensive automated test suite for these scenarios. Run it consistently, especially before you update your platform or when a new API version is released.