Get valid free-round stakes for a game
const url = 'https://api.aggregator.gg/v1/games/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/stakes?currency=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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 anamount(and acoin_levelwhenstake_fieldiscoin_level); the operator picks one and sends it viastake_field. (TrueLabs always; Apparat for a currency we hold a bet-step ladder for, e.g. EUR.)provider_validated- we have no list; submit abet_amountand the provider validates it at issue time.stakesis 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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”ISO-4217 currency the stakes are quoted in (e.g. EUR). Stakes are per-currency.
Responses
Section titled “Responses”Valid free-round stakes for the game in the requested currency.
object
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.
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.
For enumerated, the valid stakes (pick one). Empty for the other modes.
object
1-based level to send as coin_level. Present only when stake_field is coin_level.
The money stake, in currency. Send it as bet_amount when stake_field is bet_amount.
Example
{ "provider_code": "truelabs", "currency": "EUR", "stake_field": "coin_level", "mode": "enumerated"}Invalid game_id or missing/invalid currency.
object
object
Machine-parseable error code. See https://hub.aggregator.gg/error-reference/.
Correlation ID for support escalation.
object
Example
{ "error": { "code": "E0001" }}Missing, invalid, or revoked API key.
object
object
Machine-parseable error code. See https://hub.aggregator.gg/error-reference/.
Correlation ID for support escalation.
object
Example
{ "error": { "code": "E0001" }}No game found with that ID.
object
object
Machine-parseable error code. See https://hub.aggregator.gg/error-reference/.
Correlation ID for support escalation.
object
Example
{ "error": { "code": "E0001" }}Stakes temporarily unavailable (the provider stakes source was unreachable). Retry.
object
object
Machine-parseable error code. See https://hub.aggregator.gg/error-reference/.
Correlation ID for support escalation.
object
Example
{ "error": { "code": "E0001" }}Provider access or session authorization storage is temporarily unavailable.
object
object
Machine-parseable error code. See https://hub.aggregator.gg/error-reference/.
Correlation ID for support escalation.
object
Example
{ "error": { "code": "E0001" }}