Skip to documentation
/

addFreeRounds

POST/v1/commandsaddFreeRounds

Persist the Idempotency-Key and exact request before dispatch. Reconcile unknown outcomes before retrying.

Signature

typescript example
.ts
client.addFreeRounds(parameters: AddFreeRoundsParameters, options: MutationOptions): Promise<SuccessResponse<FreeRoundsGrant>>

Call examples

typescript example
.ts
import { AggregatorClient } from '@aggregator-network/sdk'; const apiKey = process.env.AGGREGATOR_API_KEY;if (!apiKey) throw new Error('Set AGGREGATOR_API_KEY');const client = new AggregatorClient({ apiKey }); const grant = await client.addFreeRounds(  {    user_username: 'player-1001', currency: 'USD',    gameid: 'REPLACE_WITH_CATALOGUE_ID', freespins: 10,    bet_level: 1, total_bet: 4, valid_days: 7,  },  { idempotencyKey: 'persisted-round-grant-operation-001' },);
Persist the operation key and exact request before sending. Reserve funds where required. These examples run on your backend.

Response examples

Example responses. Request options are in Try it now.

json example
.json
{  "error": 0,  "response": {    "game_id": "provider/game",    "freespins": 10,    "freespins_wallet": 10,    "freespins_performed": 0,    "freespins_bet": 4,    "bet_level": 1,    "currency": "USD",    "valid_until": "2026-12-11T00:00:00Z",    "created_at": "2026-12-04T00:00:00Z",    "active": true  }}

Availability#

Supported PG, Pragmatic Play and JILI slots can accept free rounds. Confirm the exact game, currency and stake before granting. A capability flag alone is not acceptance.

Request#

Scope: proxy:addFreeRounds or proxy:*. Send a persisted Idempotency-Key. Replace the illustrative game ID with an entitled, supported game.

json example
.json
{  "method": "addFreeRounds",  "gameid": "12/737",  "freespins": 10,  "bet_level": 1,  "total_bet": 4,  "valid_days": 7,  "user_username": "player-1001",  "currency": "USD"}
FieldRequiredAccepted value
gameidYesCurrent catalogue identifier, up to 255 characters
user_usernameYesStable player identifier, 1–128 characters
currencyYesEntitled three-letter uppercase code with provider/game support
freespinsYesInteger from 1 to 10000
bet_levelYesInteger from 0 to 6
valid_daysYesInteger from 1 to 365
total_betNoFinite positive JSON number up to 1000000, stake per spin

Send an explicit total_bet to make the stake unambiguous. When omitted, the current connection uses max(1, bet_level) as the stake. Gateway bounds do not override narrower provider limits.

Response and settlement#

json example
.json
{  "error": 0,  "response": {    "id": 28,    "player_id": 28,    "game_id": "12/737",    "freespins": 10,    "freespins_wallet": 0,    "freespins_performed": 0,    "bet_level": 1,    "currency": "USD",    "operator_id": 0,    "valid_until": "2026-12-02T00:00:00.000Z",    "created_at": "2026-11-25T00:00:00.000Z",    "active": true,    "extra_data": { "bonus_code": "FR_28_737" }  }}

On success, error is 0 and response describes the grant, including game_id, freespins, currency, valid_until, and active. It is an acknowledgement, not a live report of consumed rounds.

Round settlements may include free_spin_bonus; preserve it as provider metadata and use credit_amount for the authoritative balance. Cancel unused rounds for the same player and game. List-all and cancel-all operations are currently unsupported.

Was this page helpful?