deleteFreeRounds
/v1/commandsdeleteFreeRoundsPersist the Idempotency-Key and exact request before dispatch. Reconcile unknown outcomes before retrying.
Signature
client.deleteFreeRounds(parameters: DeleteFreeRoundsParameters, options: MutationOptions): Promise<{ error: 0 }>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 }); await client.deleteFreeRounds( { user_username: 'player-1001', currency: 'USD', gameid: 'REPLACE_WITH_CATALOGUE_ID', }, { idempotencyKey: 'persisted-round-cancel-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}Cancel one player and game#
Cancel unused rounds for the original player, currency and game. Scope: proxy:deleteFreeRounds or proxy:*. Persist the request and Idempotency-Key before sending.
{ "method": "deleteFreeRounds", "gameid": "12/737", "user_username": "player-1001", "currency": "USD"}| Field | Required | Value |
|---|---|---|
user_username | Yes | Original grant's player, 1–128 characters, no control characters |
gameid | Yes | Original grant's exact catalogue ID, up to 255 characters |
currency | Yes | Original grant's entitled three-letter uppercase code |
Response#
{ "error": 0 }A cancellation does not reverse settled rounds. Reconcile an unknown outcome; do not create a new key to bypass it.
Unsupported operations#
getFreeRounds and deleteAllFreeRounds remain recognized compatibility methods but are not supported by the current connection. They return a nonzero numeric application error; do not rely on them to list or cancel grants.
Their compatibility header policies still apply: getFreeRounds rejects Idempotency-Key; deleteAllFreeRounds requires it. Exact-game restrictions also prohibit bulk deletion. Track your own grant acknowledgements and settlement records.
Build your server request
/v1/commandsdeleteFreeRoundsRequest 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.deleteFreeRounds({ "user_username": "player-1001", "currency": "USD", "gameid": "REPLACE_WITH_CATALOGUE_ID"}, { idempotencyKey });// Inspect result on your server. Keep launch URLs private.Response
Run the generated example on your server and inspect its response there.