Skip to documentation
/

deleteFreeRounds

POST/v1/commandsdeleteFreeRounds

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

Signature

typescript example
.ts
client.deleteFreeRounds(parameters: DeleteFreeRoundsParameters, options: MutationOptions): Promise<{ error: 0 }>

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 }); 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.

json example
.json
{  "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.

json example
.json
{  "method": "deleteFreeRounds",  "gameid": "12/737",  "user_username": "player-1001",  "currency": "USD"}
FieldRequiredValue
user_usernameYesOriginal grant's player, 1–128 characters, no control characters
gameidYesOriginal grant's exact catalogue ID, up to 255 characters
currencyYesOriginal grant's entitled three-letter uppercase code

Response#

json example
.json
{ "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.

Was this page helpful?