Skip to content

Cancel a free-round grant

POST
/free-rounds/{grant_id}/cancel

Cancel a grant’s outstanding (unplayed) rounds. Already-played rounds are not reversed. Requires the write scope.

grant_id
required
string format: uuid
sub_operator_ref
string
brand-01

Platform accounts only. Which brand this call acts as — the same ref the session or grant was created with. Same format and error codes as sub_operator_ref on POST /v1/sessions: omit it to use your default brand, and note that sending it empty is a 400 (E6004), not a fallback.

Grant cancelled.

object
grant_id
string format: uuid
status
string
Allowed values: cancelled cancel_failed
games
Array<object>
object
game_id
string format: uuid
status
string
error
string
nullable

Missing, invalid, or revoked API key.

object
error
required
object
code
required

Machine-parseable error code. See https://docs.aggregator.gg/resources/error-codes/.

string
/^E[0-9A-F][0-9]{3}$/
E0001
type

Snake-case mnemonic for the code (e.g. game_blocked_jurisdiction, player_self_excluded). Branch on code; type is for readability.

string
game_blocked_jurisdiction
message
required
string
request_id

Correlation ID for support escalation.

string
details
object
key
additional properties
any

Grant not found.

object
error
required
object
code
required

Machine-parseable error code. See https://docs.aggregator.gg/resources/error-codes/.

string
/^E[0-9A-F][0-9]{3}$/
E0001
type

Snake-case mnemonic for the code (e.g. game_blocked_jurisdiction, player_self_excluded). Branch on code; type is for readability.

string
game_blocked_jurisdiction
message
required
string
request_id

Correlation ID for support escalation.

string
details
object
key
additional properties
any

Grant is in a terminal state and cannot be cancelled.

object
error
required
object
code
required

Machine-parseable error code. See https://docs.aggregator.gg/resources/error-codes/.

string
/^E[0-9A-F][0-9]{3}$/
E0001
type

Snake-case mnemonic for the code (e.g. game_blocked_jurisdiction, player_self_excluded). Branch on code; type is for readability.

string
game_blocked_jurisdiction
message
required
string
request_id

Correlation ID for support escalation.

string
details
object
key
additional properties
any