addFreeRounds
/v1/commandsaddFreeRoundsPersist the Idempotency-Key and exact request before dispatch. Reconcile unknown outcomes before retrying.
Signature
client.addFreeRounds(parameters: AddFreeRoundsParameters, options: MutationOptions): Promise<SuccessResponse<FreeRoundsGrant>>Call examples
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.
{ "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.
{ "method": "addFreeRounds", "gameid": "12/737", "freespins": 10, "bet_level": 1, "total_bet": 4, "valid_days": 7, "user_username": "player-1001", "currency": "USD"}| Field | Required | Accepted value |
|---|---|---|
gameid | Yes | Current catalogue identifier, up to 255 characters |
user_username | Yes | Stable player identifier, 1–128 characters |
currency | Yes | Entitled three-letter uppercase code with provider/game support |
freespins | Yes | Integer from 1 to 10000 |
bet_level | Yes | Integer from 0 to 6 |
valid_days | Yes | Integer from 1 to 365 |
total_bet | No | Finite 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#
{ "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.
Build your server request
/v1/commandsaddFreeRoundsRequest parameters
Call example
import { AggregatorClient } from '@aggregator-network/sdk'; const client = new AggregatorClient({ apiKey: process.env.AGGREGATOR_API_KEY, baseUrl: 'https://aggregatornetwork.com',}); // Persist the key and exact request before dispatch.const idempotencyKey = process.env.AGGREGATOR_OPERATION_KEY;if (!idempotencyKey) throw new Error('Set persisted operation key'); const result = 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 });// Inspect result on your server. Keep launch URLs private.Response
Run the generated example on your server and inspect its response there.