Free rounds
Free rounds let a player play without staking their own money. You issue a grant over the API, the studio runs the rounds, and the winnings reach your wallet as callbacks. Issuing is the only new work: free rounds arrive on the callback endpoint you already built. If that endpoint does not exist yet, start with Callbacks.
The rule that matters most: never debit the player’s real-money balance for a bet callback where is_free is true. The grant funds the stake.
Two money units
Section titled “Two money units”This feature writes money in two units. Mixing them is the costliest mistake you can make here.
| Where | Field | Unit | 0.20 EUR is written as |
|---|---|---|---|
| Stakes call | stakes[].amount |
Major units | 0.2, or a string such as "0.20" |
| Issue request and response | bet_amount |
Major units | 0.2 |
| Wallet callback, and your response to it | amount, balance |
Minor units, integer | 20 |
- A stake is never in cents.
"bet_amount": 20asks for 20.00 EUR per round. bet_levelandcoin_levelare level numbers, not money. Never run a stake through your wallet conversion.
Before you call
Section titled “Before you call”Send calls to <API base URL>, the base URL shown in your cabinet. It already ends with /v1, the prefix written in the paths on this page. Every call needs Authorization: Bearer <your API key>.
Platform accounts only. A platform key acts for one brand per call, named with sub_operator_ref. An ordinary operator key must not send it (400 E6006). The full rules are in Platform accounts.
- Where: in the JSON body when you issue; in the query string on the three reads and on cancel. On the stakes call, send it in the query string for TrueLabs games.
- Format: 1 to 32 characters from
A-Z,a-z,0-9,-and_, starting and ending with a letter or digit. We trim spaces and lower-case it. - Same brand every time. A grant belongs to the brand it was issued for. Under another brand, the single-grant reads and cancel return
404grant_not_found. - Omit, never blank. Leaving the field out selects your default brand. Sending it empty returns
400(E6004).
Choose a stake
Section titled “Choose a stake”GET /v1/games/{game_id}/stakes?currency=EUR needs the read scope. Call it for each game, in the currency of the grant. Then branch on mode, not on the studio name.
{ "game_id": "5b0c3f0e-7d1a-4e2b-9c41-6a8f2d1e7b90", "provider_code": "truelabs", "currency": "EUR", "stake_field": "coin_level", "mode": "enumerated", "stakes": [ {"bet_level": 1, "coin_level": 1, "amount": 0.1}, {"bet_level": 2, "coin_level": 2, "amount": 0.2} ]}mode |
What the response holds | What you send when you issue |
|---|---|---|
enumerated |
stakes lists the valid levels. |
bet_level: the bet_level of the entry you picked. Levels can have gaps, so never count positions. |
provider_validated |
stakes is empty and stake_field is bet_amount. |
bet_amount: a positive number in major units. The studio accepts or refuses it when you issue. |
unsupported |
stakes is empty and stake_field is null. |
No stake comes from this call, and bet_level is refused. |
amountis the money stake of a level, in major units. It can be a number, a decimal string, ornullfor BubbleGaming, which prices the level itself.- A grant carries one stake. The level must be listed for every game in the grant and mean the same stake on each. If not, you get
422stake_not_offered: put those games in separate grants. - We resolve the level against the studio’s current list when you issue. That list can differ from an earlier stakes call.
- A listed stake does not make a game issuable. Check
free_rounds_supporton the game fromGET /v1/games. coin_levelandbet_amountare deprecated aliases ofbet_level, andstake_fieldnames the alias for the game. Send exactly one of the three.502stakes_unavailablemeans the studio’s list could not be read. Retry shortly.
Issue a grant
Section titled “Issue a grant”POST /v1/free-rounds needs the write or free_rounds.write scope and an Idempotency-Key header. One call issues rounds to one player, on one or more games of one studio. Create the key once per grant and store it before you send.
curl -X POST "<API base URL>/free-rounds" <<EOF \ --header @- \ -H "Idempotency-Key: ${AGGREGATOR_OPERATION_ID:?Set a persisted unique ID for this grant; reuse only for its retries}" \ -H "Content-Type: application/json" \ -d '{ "provider_code": "truelabs", "player_id": "player-42", "games": ["5b0c3f0e-7d1a-4e2b-9c41-6a8f2d1e7b90"], "count": 10, "bet_level": 2, "currency": "EUR", "country": "PT", "start_at": "2027-01-01T00:00:00Z", "end_at": "2027-01-10T00:00:00Z", "free_round_kind": "freespin" }'Authorization: Bearer ${AGGREGATOR_API_KEY:?Set the issued key in the protected environment}EOF| Field | Type | Required | Rules |
|---|---|---|---|
provider_code |
string | Yes | The studio’s code from the catalog, 1 to 64 characters. One studio per grant. |
player_id |
string | Yes | Your player identifier, 1 to 128 characters. |
games |
string[] | Yes | Catalog game UUIDs of that studio, without duplicates. At most 50 by default. |
count |
integer | Yes | Rounds per game, at least 1 and at most 1000 by default. Two games with count: 10 are 20 rounds. |
currency, country |
string | Yes | The currency has 3 to 10 characters, for example EUR. The player’s country has 2 letters and drives the jurisdiction and self-exclusion checks. |
bet_level |
integer | One of three | A level from the stakes call, 1 or higher. |
bet_amount |
number | One of three | The stake per round in major units, above 0. For provider_validated games. |
coin_level |
integer | One of three | Deprecated alias, 1 to 24. |
start_at, end_at |
string | Yes | ISO 8601 with an offset; use Z. end_at must be later. The window is at most 90 days by default. |
free_round_kind |
string | No | freespin, freeticket or voucher. The default is voucher. |
campaign_id, funded_by |
string | No | Labels. campaign_id has up to 128 characters. funded_by is operator or provider_promo. |
provider_params |
object | No | Studio-specific parameters. |
sub_operator_ref |
string | Platforms | The brand that owns the player. See Before you call. |
The limits on games, count and the window are defaults, and a refusal names the active value in message. By default you can issue 50 grants per player and game in 24 hours; after that the call returns 429 rate_limited. Each game passes the same checks as a launch: enabled for you, allowed in the player’s country, and available in the currency. A 201 means every game was issued:
{ "grant_id": "9d4e2a71-6c3b-4f58-a0e9-1b7c5d2f8e34", "status": "active", "provider_code": "truelabs", "player_id": "player-42", "currency": "EUR", "count_per_game": 10, "total_rounds": 10, "start_at": "2027-01-01T00:00:00+00:00", "end_at": "2027-01-10T00:00:00+00:00", "games": [ {"game_id": "5b0c3f0e-7d1a-4e2b-9c41-6a8f2d1e7b90", "provider_game_id": "example-slot", "count": 10, "provider_grant_ref": null, "status": "active", "error": null} ], "bet_level": 2, "coin_level": 2, "provider_grant_ref": "9d4e2a71-6c3b-4f58-a0e9-1b7c5d2f8e34"}- Store
grant_id. You read and cancel by it, and wallet callbacks carry it asfree_round_grant_id. bet_leveland the stake it resolved to (coin_levelorbet_amount) appear only when you sentbet_level.provider_grant_refis the studio’s reference. It sits on the grant for TrueLabs, and on each game for Apparat, SpinGO and BubbleGaming; the other place isnullor absent.- Step check: send the same request again with the same key. You get
200, the samegrant_idand"_replayed": true.
Retry and replay
Section titled “Retry and replay”Idempotency-Keyis required: 1 to 256 characters after we trim spaces. Case matters. Idempotency shows how to build and store keys.- One key is one grant. Retry with the same key and the same body. A new key is a new grant, so never use one to get past an unclear result.
- We compare parsed values: spacing and key order do not matter, but every value does. That includes the stake field, the order of
games, letter case and the date offset. - A replay never issues again. It returns the stored result as
200with"_replayed": true, whatever the first status was. - A replay still passes the current access checks. If your access changed, it can answer
403or503; read the grant by key instead.
| You got | It means | What to do |
|---|---|---|
207, grant active |
Partial issue. Some games are active, the others issue_failed. |
Keep the active games and never issue them again. Handle each failed game as described below. |
502 with a grant body, status: "issue_failed" |
No game was confirmed. Each game carries an error. |
Handle each failed game as described below. A corrected request needs a new key. |
200 with "_replayed": true |
This key and body were already processed. Nothing new was issued. | Read status and games in the body. The first answer may have been 201, 207 or 502. |
409 idempotency_in_progress |
A grant with this key exists and has no final result yet. | Wait a few seconds, then retry with the same key and body. If it does not clear, read the grant by key and treat it as an unknown outcome. |
409 idempotency_conflict |
This key was used with a different body. | Resend the original body. Use a new key only for a new grant. |
502 provider_error with a grant_id |
Unknown outcome. The studio’s answer was missing or unclear. The rounds may exist. | Do not issue again. Keep the grant_id and follow the unknown-outcome steps below. |
502 stakes_unavailable, 503 grant_persist_failed, a timeout or no response |
The studio was not asked to issue, or you cannot tell whether the request arrived. | Retry with the same key and body. After a timeout you can also read the grant by key. |
Any other 4xx |
Refused before anything was stored. | Fix the cause; see Error codes. The key is still unused. |
A failed game. An issue_failed game has an error text. It is written for a person, so do not parse it. If it is a clear refusal, fix the cause and issue that game in a new grant with a new key. If it reports a timeout or an incomplete call, the rounds may exist: treat that game as an unknown outcome.
Unknown outcome. 502 provider_error on issue does not prove a refusal: decide by the code, never by message. The grant is stored as issue_failed. The same key now answers 409 idempotency_in_progress, reads show only our stored state, and cancel refuses the grant. A new key could give the player a second set of rounds. Send support the grant_id, and issue again only after they confirm that the studio holds no rounds.
Read a grant
Section titled “Read a grant”All three reads need the read scope. They return what we have stored: they do not ask the studio and do not change the grant. The two single-grant reads return the body below, and the list returns the same objects.
| Call | Use it when | Notes |
|---|---|---|
GET /v1/free-rounds/{grant_id} |
You have the grant_id. |
A value that is not a UUID returns 400 invalid_grant_id. |
GET /v1/free-rounds/by-idempotency-key?idempotency_key=... |
You lost the issue response, or got a 409. |
URL-encode the key and send the parameter exactly once. |
GET /v1/free-rounds |
You need a player’s grants, or all grants in one status. | Filters: player_id, status. Paging: limit (default 50, maximum 200) and offset. Newest first. |
{ "grant_id": "9d4e2a71-6c3b-4f58-a0e9-1b7c5d2f8e34", "status": "active", "provider_code": "truelabs", "player_id": "player-42", "currency": "EUR", "count": 10, "rounds_used": 0, "start_at": "2027-01-01T00:00:00+00:00", "end_at": "2027-01-10T00:00:00+00:00", "created_at": "2026-12-28T09:15:00+00:00", "games": [ {"game_id": "5b0c3f0e-7d1a-4e2b-9c41-6a8f2d1e7b90", "provider_game_id": "example-slot", "count": 10, "rounds_used": 0, "provider_grant_ref": null, "status": "active"} ]}countis the total for the grant, thetotal_roundsof the issue response. Each game has its owncount.rounds_usedcounts the rounds recorded as used, for the grant and for each game. Studios report use at different moments. Treat it as progress, not as proof that a win was paid.statusis the stored value and is not recalculated from the clock. Comparestart_atandend_atwith the current time to know whether the window is open.- The list returns
{"grants": [...], "count": N}.countis the number of grants on this page, not a total. Page until a page is shorter thanlimit. - A missing grant and another operator’s grant both return
404grant_not_found.
Cancel a grant
Section titled “Cancel a grant”POST /v1/free-rounds/{grant_id}/cancel needs the write or free_rounds.write scope. It takes no body and no Idempotency-Key. It cancels the rounds the player has not used. It is not a refund: paid wins stay paid, and rounds already started can still pay out. An answer with a grant body carries grant_id, status and games; each game has game_id, status and error.
| You got | It means | What to do |
|---|---|---|
200, status: "cancelled" |
The unused rounds are cancelled. | Check each game: treat one that is not cancelled as still playable. A round that had already started can still pay out. |
502, status: "cancel_failed" |
Partial or failed. Some games may be cancelled; the others carry an error. |
Treat every game that is not cancelled as still playable. Call cancel again. If it keeps failing, contact support with the grant_id. |
502 provider_error or 503 provider_unavailable |
The studio call failed or could not start. The outcome can be unknown. | Call cancel again. If it keeps failing, contact support with the grant_id. |
409 not_cancellable |
The grant is cancelled, consumed, expired or issue_failed. grant_status says which. |
Nothing to do. A repeated cancel answers this way, with grant_status: "cancelled". |
501 cancel_unsupported |
Nothing was cancelled. | The rounds stay playable until they are used or expire. |
404 grant_not_found |
No such grant for this key or brand. | Check the grant_id and, for platforms, sub_operator_ref. |
Grant statuses
Section titled “Grant statuses”status of a grant, or of one game |
Meaning | Can you cancel it? |
|---|---|---|
pending_issue |
Stored. The studio has not confirmed the issue yet. | Wait. |
active |
Issued, and no round is used yet. A grant is active as soon as one of its games is. |
Yes |
partially_consumed |
Some rounds are used. | Yes |
consumed |
All rounds are used. | No |
issue_failed |
Not issued, or the outcome is unknown. | No |
pending_cancel |
A cancel is running. | Wait, then call cancel again. |
cancel_failed |
The last cancel did not complete. | Yes, call cancel again. |
cancelled |
The unused rounds were cancelled. | No |
expired |
The window ended with rounds unused. | No |
observed |
Reserved. It is not set on grants you issue. | Not applicable |
What your wallet receives
Section titled “What your wallet receives”Free rounds use the callback contract you already implement, with the same signature. Three fields mark them:
| Field | Type | Meaning |
|---|---|---|
is_free |
boolean | true on a free-round movement. Branch on this. Treat a missing value as false. |
free_round_grant_id |
string | The grant_id of the grant. For BubbleGaming it is that game’s provider_grant_ref, so match against both. A value that is empty or matches neither means the round belongs to no grant of yours. |
free_round_kind |
string or null | The kind you set when issuing. BubbleGaming callbacks do not carry it, so never require it. |
- Free
bet: do not debit the real-money balance. Answer200with the unchanged balance. - Free
win: creditamount, an integer in minor units, like any win. - The callbacks depend on the studio. From BubbleGaming you get both legs of each round, and from Apparat and SpinGO a
winonly for winning rounds. From TrueLabs you get onewinfor the whole grant. - Never require a free
betbefore a freewin. Do not count rounds from callbacks; readrounds_used. - A free
winfrom TrueLabs or BubbleGaming can haveamount: 0. A freewincan lackgame; the TrueLabs grant win also has nogame_idorround_id. - A free
wincan arrive after its grant is cancelled or expired, when its round had already started: credit it. - We send the TrueLabs grant win once. If your endpoint fails it, contact support; see Callbacks.
- A refund of a free
betmust not credit cash: no real-money debit was recorded. See Callbacks.
The example below is one win for a whole grant. Its "amount": 500 is 5.00 EUR in minor units; the same grant was issued at a stake of 0.2 EUR in major units. Treat transaction_id as opaque. Whether winnings become cash or bonus funds is your decision.
{ "action": "WIN", "transaction_type": "win", "is_free": true, "transaction_id": "freespin:9d4e2a71-6c3b-4f58-a0e9-1b7c5d2f8e34", "amount": 500, "currency": "EUR", "player_id": "player-42", "provider_code": "truelabs", "free_round_grant_id": "9d4e2a71-6c3b-4f58-a0e9-1b7c5d2f8e34", "free_round_kind": "freespin", "finished": true, "session_id": "c2a6f0b4-8e1d-4b7a-9f35-7d0e6c1a2b48"}Step check: run one grant against a test player. The real-money balance never decreases, every free win is credited once, and a repeated callback moves no money.
Error codes
Section titled “Error codes”Read the HTTP status first, then the code. Use the top-level code if there is one. Otherwise use error.code when error is an object, and error itself when it is a string. Never match on message.
| HTTP | Code | When | What to do |
|---|---|---|---|
400 |
missing_idempotency_key, invalid_idempotency_key |
The key is missing, sent twice, or longer than 256 characters. | Send one key. |
400 |
Validation failed. with details, invalid_window, duplicate_games |
A body field has a wrong type, length or value, the dates are out of order, or a game repeats. | Fix the request. details names the fields. |
400 |
invalid_stake, bet_amount_required |
Not exactly one stake field, or the studio needs a field you did not send, such as bet_level or bet_amount for Apparat. |
Send what the stakes call names. |
403 |
free_rounds_disabled, free_rounds_operator_disabled |
Free rounds are not enabled for this studio on your account. | Ask support to enable them. |
403 |
player_self_excluded |
The player is self-excluded. | Do not issue to this player. |
409 |
operator_not_configured |
Your account is not set up for this studio. | Enable the studio in the cabinet, or contact support. |
422 |
game_provider_mismatch, free_rounds_not_supported |
A game belongs to another studio, or has free_rounds_support: false. |
Remove the game. |
422 |
stake_not_offered, bet_below_min, bet_above_max |
The level is not listed for every game, or the stake is outside a game’s bet limits. | Read the stakes again and pick another stake. |
422 |
too_many_games, count_too_high, window_too_long |
A limit is exceeded; message names it. |
Split the grant. |
422 |
scheduling_unsupported |
start_at is in the future, and the studio issues immediately: Apparat, SpinGO or BubbleGaming. |
Send start_at at or before the current time. |
429 |
rate_limited |
Too many grants for this player and game in 24 hours. | Wait; see Rate limiting. |
503 |
provider_unavailable, grant_lookup_unavailable |
The provider_code is wrong, or the call could not complete. |
Check provider_code, then retry. |
The retry and cancel tables cover the other 409, 502 and 503 codes. 501 issuance_unsupported means nothing was issued for this studio: do not retry. Game, country and brand refusals are the launch checks with their E codes; see Error reference. A currency refusal carries its code in the top-level code, for example unsupported_currency. A wrong key returns 401 invalid_token, and a key without the scope returns 403 insufficient_scope.
Studio differences
Section titled “Studio differences”Branch on mode and on the codes above first. These remaining differences change what you send. For every studio, issue only on games with free_rounds_support: true.
| Studio | Stake | start_at |
Issue result |
|---|---|---|---|
| TrueLabs | bet_level from the list, levels 1 to 24. bet_amount alone fails with 502. |
May be in the future. | All games or none, never 207. One win callback per grant. |
| Apparat | bet_level where listed, otherwise bet_amount. coin_level is refused with 400. |
At or before the current time. | Per game; 207 is possible. |
| SpinGO | bet_level where listed, otherwise bet_amount. Listed amounts are decimal strings. coin_level alone fails with 502. |
At or before the current time. | Per game; 207 is possible. |
| BubbleGaming | bet_level 1 to 5, with amount: null. A bet_amount is read as EUR in any grant currency. |
At or before the current time. | Per game; 207 is possible. Callbacks carry the game’s provider_grant_ref as free_round_grant_id. |