Skip to content

Open app

Get valid free-round stakes for a game

GET
/games/{game_id}/stakes
curl --request GET \
--url 'https://api.aggregator.gg/v1/games/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/stakes?currency=example' \
--header 'Authorization: Bearer <token>'

The valid stakes you may use to issue free rounds on this game in a given currency (POST /v1/free-rounds). Stakes are per game, per currency. Branch on mode, not on provider:

  • enumerated - we hold the valid-stake list. Each entry carries an amount (and a coin_level when stake_field is coin_level); the operator picks one and sends it via stake_field. (TrueLabs always; Apparat for a currency we hold a bet-step ladder for, e.g. EUR.)
  • provider_validated - we have no list; submit a bet_amount and the provider validates it at issue time. stakes is empty. (Apparat for a currency with no ladder on file.)
  • unsupported - the provider exposes no free-round stake model.

A provider with pull-activated free rounds answers unsupported with stake_field: null: we hold no stake ladder for it and the provider does not validate the stake at issue time. Issue with bet_amount plus provider_params.betlevel/rate as described under POST /v1/free-rounds. A provider with no free-round issuance also answers unsupported, so issue only games with free_rounds_support: true.

A provider that requires access approval needs current support approval for the exact organization bound to the authenticated operator key. Unbound keys cannot infer an organization. A platform key takes no sub_operator_ref here and is evaluated as the platform account, admitted by its organization’s approval. The default catalog omits unapproved games (direct game/stakes lookup returns 404). Launches and launcher re-reads return PROVIDER_ACCESS_REQUIRED (403) on denial; storage uncertainty returns PROVIDER_ACCESS_UNAVAILABLE (503). Requests for other providers keep their existing access policy.

game_id
required
string format: uuid
currency
required
string
>= 3 characters <= 10 characters

ISO-4217 currency the stakes are quoted in (e.g. EUR). Stakes are per-currency.

Valid free-round stakes for the game in the requested currency.

Media typeapplication/json
object
game_id
required
string format: uuid
provider_code
required
string
currency
required
string
stake_field
required

Which field to send to POST /v1/free-rounds for this game. coin_level - pick a stakes entry and send its coin_level (e.g. TrueLabs). bet_amount - send a money amount; when stakes is non-empty pick one of its amount values, otherwise send any valid amount (e.g. Apparat). null for unsupported.

string
nullable
Allowed values: coin_level bet_amount
mode
required

enumerated - stakes lists the valid stakes; pick one and send it via stake_field. provider_validated - stakes is empty, send a bet_amount the provider validates at issue time. unsupported - the provider has no free-round stake model.

string
Allowed values: enumerated provider_validated unsupported
stakes
required

For enumerated, the valid stakes (pick one). Empty for the other modes.

Array<object>
object
coin_level

1-based level to send as coin_level. Present only when stake_field is coin_level.

integer
amount
required

The money stake, in currency. Send it as bet_amount when stake_field is bet_amount.

number

Example

{
"provider_code": "truelabs",
"currency": "EUR",
"stake_field": "coin_level",
"mode": "enumerated"
}

Invalid game_id or missing/invalid currency.

Media typeapplication/json
object
error
required
object
code
required

Machine-parseable error code. See https://hub.aggregator.gg/error-reference/.

string
/^(E[0-9A-F][0-9]{3}|PROVIDER_ACCESS_REQUIRED|PROVIDER_ACCESS_UNAVAILABLE)$/
message
required
string
request_id

Correlation ID for support escalation.

string
details
object
key
additional properties
any

Example

{
"error": {
"code": "E0001"
}
}

Missing, invalid, or revoked API key.

Media typeapplication/json
object
error
required
object
code
required

Machine-parseable error code. See https://hub.aggregator.gg/error-reference/.

string
/^(E[0-9A-F][0-9]{3}|PROVIDER_ACCESS_REQUIRED|PROVIDER_ACCESS_UNAVAILABLE)$/
message
required
string
request_id

Correlation ID for support escalation.

string
details
object
key
additional properties
any

Example

{
"error": {
"code": "E0001"
}
}

No game found with that ID.

Media typeapplication/json
object
error
required
object
code
required

Machine-parseable error code. See https://hub.aggregator.gg/error-reference/.

string
/^(E[0-9A-F][0-9]{3}|PROVIDER_ACCESS_REQUIRED|PROVIDER_ACCESS_UNAVAILABLE)$/
message
required
string
request_id

Correlation ID for support escalation.

string
details
object
key
additional properties
any

Example

{
"error": {
"code": "E0001"
}
}

Stakes temporarily unavailable (the provider stakes source was unreachable). Retry.

Media typeapplication/json
object
error
required
object
code
required

Machine-parseable error code. See https://hub.aggregator.gg/error-reference/.

string
/^(E[0-9A-F][0-9]{3}|PROVIDER_ACCESS_REQUIRED|PROVIDER_ACCESS_UNAVAILABLE)$/
message
required
string
request_id

Correlation ID for support escalation.

string
details
object
key
additional properties
any

Example

{
"error": {
"code": "E0001"
}
}

Provider access or session authorization storage is temporarily unavailable.

Media typeapplication/json
object
error
required
object
code
required

Machine-parseable error code. See https://hub.aggregator.gg/error-reference/.

string
/^(E[0-9A-F][0-9]{3}|PROVIDER_ACCESS_REQUIRED|PROVIDER_ACCESS_UNAVAILABLE)$/
message
required
string
request_id

Correlation ID for support escalation.

string
details
object
key
additional properties
any

Example

{
"error": {
"code": "E0001"
}
}