API reference · You call bhub

Operator API

Calls the operator makes to bhub (launch, catalog, rounds, feeds, reports, webhooks).

Version 1.0.0 OpenAPI 3.1.0 Download operator.v1.yaml

Servers

URLUse
https://api.bhts.devProduction
https://sandbox.bhts.devSandbox (simulator wallets and test-only games)

Conventions

  • Transport: HTTPS, JSON (application/json; charset=utf-8), UTF-8. Feeds and the daily report also answer text/csv when asked with Accept: text/csv.
  • Guides: https://bhubsystems.com/docs (this contract: docs/operator-api.md).
  • Amounts: decimal strings in the currency's minor-unit precision ("12.50" ZAR, "1500" UGX, "0.125" TND), never floats. The precision table is GET /v1/currencies.
  • Identifiers: at most 64 characters, [A-Za-z0-9._:-]. bhub ids are UUIDs.
  • Times: RFC 3339 UTC with Z. Business days (date) are in the jurisdiction's display time zone (SAST for ZA).
  • One tenant = one website: a key belongs to exactly one tenant and sees only its data.

Signing (HMAC-SHA256, per-tenant API key)

API keys are made by the tenant's admin on the portal (Team and keys, "Operator API"): a key id (opk_ + 24 hex) and a secret (64 hex characters, shown once). They are separate from the wallet signing keys. At most two keys are active, so you can rotate without a gap. Every request except the public ones (/v1/health, /v1/currencies, /v1/webhooks/keys) carries:

  • X-Bhub-Key-Id: the key id.
  • X-Bhub-Timestamp: Unix seconds. Outside +/-300 s of bhub's clock: STALE_TIMESTAMP.
  • X-Bhub-Signature: lowercase hex HMAC-SHA256, keyed with the secret's 64 characters, of timestamp + "\n" + METHOD + "\n" + path_and_query + "\n" + raw_body, where path_and_query is exactly as sent (/v1/games?limit=100) and raw_body is empty for GET. Every answer to a signed request is signed back with the same key: X-Bhub-Signature = hex HMAC-SHA256 of timestamp + "\n" + raw_response_body. A signed POST is accepted once: the identical signed request again is REPLAYED_REQUEST.

Allowed addresses

Requests are accepted only from the tenant's allowed addresses (single IPs or CIDR ranges, set on the go-live checklist). No addresses set means no calls are accepted.

Rate limits (token bucket per key)

  • API: 50 requests/second sustained, bursts of 100.
  • Feeds and reports: 5 requests/second, bursts of 10 (page with limit up to 1000 instead). Every signed answer carries X-RateLimit-Limit and X-RateLimit-Remaining; over the limit is HTTP 429 RATE_LIMITED with Retry-After (seconds).

Errors

HTTP 4xx/5xx with {"error": CODE, "message": "plain English", "retryable": bool, "details": {...}}. The code list is closed (ErrorCode). Retry only when retryable is true (RATE_LIMITED, WALLET_UNAVAILABLE, SERVICE_UNAVAILABLE, INTERNAL_RETRY); re-sign every retry.

Feeds (timepoint cursors)

Feeds list rows in the order they became durable. A cursor is an opaque position; resume from the last next_cursor at any time, it never expires and never skips a row (a row is served only after every transaction that started before it has finished). Rows that change (a round closing, a retry giving up) appear again later with their new state: keep the latest per id. has_more: false means you are at the head: poll again later from the same cursor. CSV answers carry X-Bhub-Next-Cursor and X-Bhub-Has-More headers.

Webhooks

bhub POSTs events to the tenant's message address (https only, set on Team and keys), signed with Ed25519: X-Bhub-Signature = base64url (no padding) signature of X-Bhub-Timestamp + "\n" + raw_body, by the key X-Bhub-Key-Id published at GET /v1/webhooks/keys. Answer 2xx within 10 s. Otherwise bhub retries after 1 min, 5 min, 15 min, 1 h, 2 h, 4 h, 8 h, 8 h, then gives up (about 24 h). Deliveries may repeat: deduplicate on X-Bhub-Webhook-Id (= event_id).

Service

Liveness and dependencies. Unsigned.

GET/v1/health

No signature needed. · operationId health

Responses

StatusMeaning
200

Up

application/json: Health

503

Degraded

application/json: Health

Supported currencies and their minor-unit precision. Unsigned.

GET/v1/currencies

No signature needed. · operationId currencies

Answer 200

FieldTypeDescription
currenciesrequiredarray of Currency

Responses

StatusMeaning
200

Currencies

application/json: object

Webhooks

Public keys that verify webhook deliveries (current, and previous during rotation). Unsigned; cache 5 min.

GET/v1/webhooks/keys

No signature needed. · operationId webhookKeys

Answer 200

FieldTypeDescription
keysrequiredarray of WebhookKey

Responses

StatusMeaning
200

Keys

application/json: object

Launch

Get a launch URL for a game, real money or demo.

POST/v1/launch

Signed (HMAC-SHA256). See Request signing. · operationId launch

real exchanges your launch token with your wallet (authenticate, seamless-wallet contract) and opens a game session; the wallet must answer for player_id in currency. demo never touches the wallet; every demo launch is logged (with player_id when you give one), the studio's reports add its rounds and free spins, and the counts appear in GET /v1/reports/daily-totals (demo). Demo play raises no significant event. A free-to-play account or game launches in demo only (details.reason: free_to_play). Games the tenant cannot offer are refused with GAME_UNAVAILABLE and details.reason: hidden (you hid it), stopped (a regulated change awaits the board), not_certified (not certified in your jurisdiction), not_enabled (studio has not enabled it), test_only (real money outside the sandbox), account_not_live, free_to_play, studio_not_connected (you have no active connection with the studio: add your studio account on the portal's Studio connections screen; bhub verifies and activates it; there is no fallback to any other account), not_in_contract (your connection does not enable this game) and studio_currency (your connection does not cover currency). The launch URL is valid until expires_at and opens one session.

Request body application/json, required

Schema LaunchRequest

FieldTypeDescription
moderequiredstringrealdemo
game_idrequiredstring (uuid)
player_idstring

Required for real. Optional for demo: your player reference, logged with the demo session.

at most 64 characters

tokenstring

Real: your launch token, sent to your wallet's authenticate.

at most 256 characters

currencyrequiredstring

pattern ^[A-Z]{3}$

languagerequiredstring

e.g. en, en-ZA, sw

platformstringdesktopmobile

default "desktop"

lobby_urlstring (uri)
cashier_urlstring (uri)
history_urlstring (uri)
reality_checkobject
reality_check.interval_minutesinteger

min 1 · max 1440

reality_check.elapsed_minutesinteger

min 0

ip_addressstring

The player's address, passed to the studio.

Responses

StatusMeaning
201

Launch URL

application/json: LaunchResponse

400

Error

application/json: Error

401

Error

application/json: Error

403

Error

application/json: Error

404

Error

application/json: Error

422

Error

application/json: Error

429

Error

application/json: Error

503

Error

application/json: Error

Games and free spins

The tenant's game catalog with availability, certification and studio facts.

GET/v1/games

Signed (HMAC-SHA256). See Request signing. · operationId listGames

Parameters

NameInTypeDescription
limitqueryinteger

default 100 · min 1 · max 500

cursorquerystring
updated_sincequerystring (date-time)

Only games changed at or after this time (catalog sync).

Answer 200

FieldTypeDescription
gamesrequiredarray of Game
next_cursorrequiredstring or null
jurisdictionrequiredstring
currenciesrequiredarray of string
as_ofrequiredstring (date-time)

Responses

StatusMeaning
200

One page, ordered by game_id.

application/json: object

400

Error

application/json: Error

getGame

GET/v1/games/{game_id}

Signed (HMAC-SHA256). See Request signing. · operationId getGame

Parameters

NameInTypeDescription
game_idrequiredpathstring (uuid)

Responses

StatusMeaning
200

Game

application/json: Game

404

Error

application/json: Error

The studio's free spin bet levels per currency (read only; bhub runs no campaigns).

GET/v1/games/{game_id}/free-spin-levels

Signed (HMAC-SHA256). See Request signing. · operationId freeSpinLevels

Use these values when you grant free spins in the studio's back office. A currency the studio does not cover is listed with missing: true and no levels; it is never converted.

Parameters

NameInTypeDescription
game_idrequiredpathstring (uuid)
currencyquerystring

Comma-separated; default your currencies.

Responses

StatusMeaning
200

Levels

application/json: FreeSpinLevels

404

Error

application/json: Error

Artwork

Artwork per game (thumbnail, banner, icon, background; webp/avif) on the CDN.

GET/v1/assets/manifest

Signed (HMAC-SHA256). See Request signing. · operationId assetManifest

Parameters

NameInTypeDescription
game_idquerystring (uuid)
updated_sincequerystring (date-time)

Responses

StatusMeaning
200

Manifest

application/json: AssetManifest

Rounds

Round information (the bet slip) with its transactions.

GET/v1/rounds/{round_id}

Signed (HMAC-SHA256). See Request signing. · operationId getRound

Parameters

NameInTypeDescription
round_idrequiredpathstring (uuid)

Responses

StatusMeaning
200

Round

application/json: Round

404

Error

application/json: Error

The same, looked up by the studio's round id.

GET/v1/rounds/by-provider-round/{provider_round_id}

Signed (HMAC-SHA256). See Request signing. · operationId getRoundByProviderRound

Parameters

NameInTypeDescription
provider_round_idrequiredpathstring

at most 64 characters

studioquerystring

Studio code; needed only when two studios use the same id (AMBIGUOUS_ROUND).

Responses

StatusMeaning
200

Round

application/json: Round

404

Error

application/json: Error

409

Error

application/json: Error

Force-close an open round, per the studio's policy.

POST/v1/rounds/{round_id}/close

Signed (HMAC-SHA256). See Request signing. · operationId forceCloseRound

Recorded as a significant event (RESULT_AMENDED) and in the audit trail, and sent as the round.force_closed webhook. The studio's policy decides:

  • close_as_is: the round closes with what was booked.
  • refund_stake: when the round has no wins, every stake not yet reversed is returned to the player as a rollback (same path as bhub's stuck-round sweeper): it shows in the round's transactions at once, is sent to your wallet through bhub's durable credit retry queue (payout.failed / payout.manual if your wallet does not confirm), and the round ends cancelled. A round with wins closes as is (stakes are never returned on top of wins). A later rollback of the same bet by the studio is a no-op, so the stake is never returned twice.
  • not_allowed: 409 FORCE_CLOSE_NOT_ALLOWED; the studio settles its own rounds.

Parameters

NameInTypeDescription
round_idrequiredpathstring (uuid)

Request body application/json, required

FieldTypeDescription
reasonrequiredstring

at least 3 characters · at most 500 characters

Responses

StatusMeaning
200

Closed round

application/json: Round

404

Error

application/json: Error

409

Error

application/json: Error

Feeds

Every money movement (bet, win, rollback, adjustment...), in durable order.

GET/v1/feeds/transactions

Signed (HMAC-SHA256). See Request signing. · operationId feedTransactions

Parameters

NameInTypeDescription
cursorquerystring

next_cursor from the previous page.

sincequerystring (date-time)

First request only: start at rows recorded at or after this time. Without it the feed starts at the oldest row kept online.

limitqueryinteger

default 500 · min 1 · max 1000

Responses

StatusMeaning
200

Page

application/json: TransactionPage

text/csv: string

Headers: description, schema

400

Error

application/json: Error

406

Error

application/json: Error

Rounds, again each time one changes (closes, is adjusted). Keep the latest per round_id.

GET/v1/feeds/rounds

Signed (HMAC-SHA256). See Request signing. · operationId feedRounds

Parameters

NameInTypeDescription
cursorquerystring

next_cursor from the previous page.

sincequerystring (date-time)

First request only: start at rows recorded at or after this time. Without it the feed starts at the oldest row kept online.

limitqueryinteger

default 500 · min 1 · max 1000

Responses

StatusMeaning
200

Page

application/json: RoundFeedPage

text/csv: string

Headers: description, schema

Credits your wallet has not confirmed, with their retry state (pending, done, manual).

GET/v1/feeds/failed-transactions

Signed (HMAC-SHA256). See Request signing. · operationId feedFailedTransactions

pending: bhub is retrying (1 min, 10 min, then hourly) until give_up_at (72 h after the first failure). done: delivered late. manual: bhub gave up; settle it by hand (also sent as the payout.manual webhook).

Parameters

NameInTypeDescription
cursorquerystring

next_cursor from the previous page.

sincequerystring (date-time)

First request only: start at rows recorded at or after this time. Without it the feed starts at the oldest row kept online.

limitqueryinteger

default 500 · min 1 · max 1000

Responses

StatusMeaning
200

Page

application/json: FailedPage

text/csv: string

Headers: description, schema

Reports

One business day's totals per studio, game and currency, from bhub's meters. Test-only games excluded. JSON also lists demo play per game.

GET/v1/reports/daily-totals

Signed (HMAC-SHA256). See Request signing. · operationId dailyTotals

Parameters

NameInTypeDescription
daterequiredquerystring (date)

Business day in your jurisdiction's time zone.

Responses

StatusMeaning
200

Totals

application/json: DailyTotals

text/csv: string

400

Error

application/json: Error

Schemas

BetSlip

Electronic bet slip (SANS 1718-4 6.10.2). Operator, licence and outlet details are those on file when the ticket was issued.

FieldTypeDescription
ticket_norequiredstring or null

Wire form, e.g. ZA-0009843601220. Null until numbered (seconds after the round commits) and always null for sandbox tenants.

ticket_displayrequiredstring or null

Grouped for printing, e.g. ZA-0009 843 601 220.

operatorrequiredstring
legal_entityrequiredstring
licence_norequiredstring or null
outletrequiredstring or null

The licensed site (venue).

provincerequiredstring or null
terminalrequiredstring

The player's platform.

daterequiredstring (date)

Round opened, jurisdiction local time.

timerequiredstring

HH:MM:SS, jurisdiction local time.

time_zonerequiredstring

e.g. SAST

stakerequiredAmount
wager_typerequiredstring

Game category, with _free_spin appended for free rounds.

account_norequiredstring

The player reference.

eventrequiredobject
event.game_idstring
event.game_namestring
event.studiostring
event.config_versionstring or null
event.round_idstring
event.provider_round_idstring
event.bonus_refstring or null
selectionrequiredstringgame_outcome
resultrequiredstringopenwinno_wincancelled
payoutrequiredAmount
free_textrequiredstring

The operator's ticket text, else a line naming the game, studio and studio round.

at most 500 characters

Amount

Decimal string at the currency precision.

string

pattern ^-?[0-9]+(\.[0-9]+)?$

Error

FieldTypeDescription
errorrequiredErrorCode
messagerequiredstring
retryablerequiredboolean
detailsobject

ErrorCode

Non-retryable: BAD_REQUEST, BAD_CURSOR, INVALID_SIGNATURE, STALE_TIMESTAMP, REPLAYED_REQUEST, IP_NOT_ALLOWED, NOT_FOUND, GAME_NOT_FOUND, ROUND_NOT_FOUND, GAME_UNAVAILABLE, CURRENCY_NOT_SUPPORTED, LAUNCH_REFUSED, AMBIGUOUS_ROUND, ROUND_NOT_OPEN, FORCE_CLOSE_NOT_ALLOWED, NOT_ACCEPTABLE. Retryable: RATE_LIMITED, WALLET_UNAVAILABLE, SERVICE_UNAVAILABLE, INTERNAL_RETRY.

string

BAD_REQUESTBAD_CURSORINVALID_SIGNATURESTALE_TIMESTAMPREPLAYED_REQUESTIP_NOT_ALLOWEDNOT_FOUNDGAME_NOT_FOUNDROUND_NOT_FOUNDGAME_UNAVAILABLECURRENCY_NOT_SUPPORTEDLAUNCH_REFUSEDAMBIGUOUS_ROUNDROUND_NOT_OPENFORCE_CLOSE_NOT_ALLOWEDNOT_ACCEPTABLERATE_LIMITEDWALLET_UNAVAILABLESERVICE_UNAVAILABLEINTERNAL_RETRY

Health

FieldTypeDescription
statusrequiredstringokdegraded
timerequiredstring (date-time)
versionrequiredstring
componentsrequiredmap of string

Currency

FieldTypeDescription
coderequiredstring

pattern ^[A-Z]{3}$

exponentrequiredinteger

min 0 · max 3

namerequiredstring
examplerequiredstring

e.g. 12.50

minor_unitrequiredstring

e.g. 0.01

WebhookKey

FieldTypeDescription
key_idrequiredstring
algrequiredstringEdDSA
statusrequiredstringcurrentprevious
ktyrequiredstringOKP
crvrequiredstringEd25519
xrequiredstring

base64url public key (RFC 8037 JWK)

public_key_hexrequiredstring

LaunchRequest

FieldTypeDescription
moderequiredstringrealdemo
game_idrequiredstring (uuid)
player_idstring

Required for real. Optional for demo: your player reference, logged with the demo session.

at most 64 characters

tokenstring

Real: your launch token, sent to your wallet's authenticate.

at most 256 characters

currencyrequiredstring

pattern ^[A-Z]{3}$

languagerequiredstring

e.g. en, en-ZA, sw

platformstringdesktopmobile

default "desktop"

lobby_urlstring (uri)
cashier_urlstring (uri)
history_urlstring (uri)
reality_checkobject
reality_check.interval_minutesinteger

min 1 · max 1440

reality_check.elapsed_minutesinteger

min 0

ip_addressstring

The player's address, passed to the studio.

LaunchResponse

FieldTypeDescription
launch_idrequiredstring (uuid)
launch_urlrequiredstring (uri)

bhub's play address; for Kerma Games real-money launches, the game address Kerma's launcher returned (one-time key inside).

e.g. https://play.bhts.dev/play/0193...

moderequiredstringrealdemo
game_idrequiredstring (uuid)
player_idrequiredstring or null
currencyrequiredstring
jurisdictionrequiredstring
expires_atrequiredstring (date-time)

Game

FieldTypeDescription
game_idrequiredstring (uuid)
provider_game_idrequiredstring
namerequiredstring
studiorequiredobject
studio.coderequiredstring
studio.namerequiredstring
categoryrequiredstringslotscrashinstanttableliveother
statusrequiredstring

Launchable only when available (same derivation as the portal's Games screen). unavailable carries status_reason, for example when you have no active connection with the studio (studio_not_connected) or your contract does not include the game (not_in_contract).

availablehiddenstoppednot_certifiedunavailable
status_reasonrequiredstring or null
test_onlyrequiredboolean

Simulator games; real money only in the sandbox.

certificationrequiredobject
certification.jurisdictionrequiredstring
certification.statusrequiredstringcertifiedpendingnot_certifiednot_required
certification.versionrequiredstring or null
certification.pending_versionrequiredstring or null
rtprequiredstring or null

Percent

e.g. 96.50

volatilityrequiredstring or nulllowmediumhighvery_highnull
max_win_multiplierrequiredinteger or null
featuresrequiredarray of string
free_spinsrequiredobject
free_spins.supportedrequiredboolean
free_spins.levels_urlrequiredstring
min_betrequiredmap of Amount or null

Per tenant currency; null when the studio has not said.

data_weight_kbrequiredinteger or null

First-load download size.

literequiredboolean or null

A low-data build exists.

updated_atrequiredstring (date-time)

FreeSpinLevels

FieldTypeDescription
game_idrequiredstring
studiorequiredstring
supportedrequiredboolean
checked_atrequiredstring (date-time) or null (date-time)

Last successful sync with the studio.

noterequiredstring
currenciesrequiredarray of object
currencies[].currencyrequiredstring
currencies[].missingrequiredboolean
currencies[].sourcerequiredstring or null
currencies[].levelsrequiredarray of object
levels[].level_keyrequiredstring or null
levels[].amountrequiredAmount

AssetManifest

FieldTypeDescription
cdn_baserequiredstring (uri)

e.g. https://cdn.bhts.dev/games

generated_atrequiredstring (date-time)
gamesrequiredarray of object
games[].game_idrequiredstring
games[].updated_atrequiredstring (date-time)
games[].assetsrequiredarray of object
assets[].kindrequiredstringthumbnailbannericonbackground
assets[].formatrequiredstringwebpavif
assets[].widthrequiredinteger
assets[].heightrequiredinteger
assets[].urlrequiredstring (uri)
assets[].bytesrequiredinteger or null
assets[].sha256requiredstring or null
assets[].placeholderrequiredboolean

Stand-in until the studio's artwork arrives.

Round

FieldTypeDescription
round_idrequiredstring (uuid)
provider_round_idrequiredstring
game_idrequiredstring
provider_game_idrequiredstring
game_namerequiredstring
studiorequiredstring
player_idrequiredstring
currencyrequiredstring
stakerequiredAmount
winrequiredAmount
statusrequiredstringopenclosedcancelled
is_freerequiredboolean
bonus_refrequiredstring or null

The studio's free spins reference.

platformrequiredstring
opened_atrequiredstring (date-time)
closed_atrequiredstring (date-time) or null (date-time)
last_adjusted_atrequiredstring (date-time) or null (date-time)
config_versionrequiredstring or null
rtprequiredstring or null
jurisdictionrequiredobject
jurisdiction.codestring
jurisdiction.provincestring or null
jurisdiction.venuestring or null
ticket_norequiredstring or null

WRS ticket number (SANS 1718-4), gap-free per tenant, e.g. ZA-0009843601220. Null for a few seconds after the round commits, and always for sandbox tenants.

bet_slipBetSlip
replay_urlrequiredstring or null

The studio's replay link for the round when the studio offers one (Kerma Games: per connection); null otherwise.

round_detailsrequiredany

The studio's raw round fields, as sent.

from_archiveboolean

The round is older than the 90-day hot window and was read from the archive.

transactionsrequiredarray of object
transactions[].tx_idrequiredstring
transactions[].kindrequiredstringbetwinbet_winrollbackend_roundpromo_creditadjustment
transactions[].debitrequiredAmount
transactions[].creditrequiredAmount
transactions[].operator_tx_idrequiredstring or null
transactions[].occurred_atrequiredstring (date-time)

FeedPage

FieldTypeDescription
next_cursorrequiredstring

Always present; unchanged on an empty page.

has_morerequiredboolean

TransactionPage

FieldTypeDescription
next_cursorrequiredstring

Always present; unchanged on an empty page.

has_morerequiredboolean
itemsrequiredarray of object
items[].tx_idstring
items[].round_idstring
items[].provider_round_idstring
items[].kindstring
items[].player_idstring
items[].game_idstring
items[].provider_game_idstring
items[].currencystring
items[].debitAmount
items[].creditAmount
items[].provider_tx_idstring
items[].operator_tx_idstring or null
items[].balance_afterAmount or null
items[].occurred_atstring (date-time)
items[].recorded_atstring (date-time)
items[].change_seqinteger

RoundFeedPage

FieldTypeDescription
next_cursorrequiredstring

Always present; unchanged on an empty page.

has_morerequiredboolean
itemsrequiredarray of object
items[].round_idstring
items[].provider_round_idstring
items[].player_idstring
items[].game_idstring
items[].provider_game_idstring
items[].currencystring
items[].stakeAmount
items[].winAmount
items[].statusstringopenclosedcancelled
items[].is_freeboolean
items[].bonus_refstring or null
items[].platformstring
items[].opened_atstring (date-time)
items[].closed_atstring or null
items[].last_adjusted_atstring or null
items[].ticket_nostring or null

Set once numbered; the round is re-emitted on the feed when its ticket is issued.

items[].change_seqinteger

FailedPage

FieldTypeDescription
next_cursorrequiredstring

Always present; unchanged on an empty page.

has_morerequiredboolean
itemsrequiredarray of object
items[].tx_idstring
items[].round_idstring or null
items[].player_idstring or null
items[].operationstring

e.g. win, rollback, end_round, promo_credit

items[].currencystring
items[].amountAmount
items[].statestringpendingdonemanual
items[].attemptsinteger
items[].last_errorstring or null
items[].next_try_atstring (date-time) or null (date-time)
items[].give_up_atstring (date-time)
items[].first_failure_atstring (date-time)
items[].updated_atstring (date-time)
items[].change_seqinteger

DailyTotals

FieldTypeDescription
daterequiredstring (date)
time_zonerequiredstring

e.g. Africa/Johannesburg

jurisdictionrequiredstring
totalsrequiredarray of object
totals[].datestring (date)
totals[].studiostring
totals[].game_idstring
totals[].provider_game_idstring
totals[].game_namestring
totals[].currencystring
totals[].roundsinteger
totals[].turnoverAmount
totals[].winsAmount
totals[].refundsAmount
totals[].ggrAmount

turnover - wins - refunds

totals[].free_spinsinteger
totals[].free_spin_winsAmount
demorequiredarray of object

Demo sessions launched on the business day, per game (JSON only, not in the CSV). No money.

demo[].game_idrequiredstring
demo[].launchesrequiredinteger
demo[].sessions_reportedrequiredinteger

sessions the studio reported on

demo[].playersrequiredinteger

distinct player_id values you gave

demo[].roundsrequiredinteger
demo[].free_spinsrequiredinteger

WebhookEnvelope

FieldTypeDescription
event_idrequiredstring (uuid)

Same as X-Bhub-Webhook-Id; deduplicate on it.

typerequiredstringpayout.failedpayout.manualround.force_closedgame.status_changed
created_atrequiredstring (date-time)
datarequiredPayoutEvent or RoundForceClosedEvent or GameStatusChangedEvent

PayoutEvent

payout.failed: a credit your wallet has not confirmed (bhub keeps retrying). payout.manual: bhub gave up; settle by hand.

FieldTypeDescription
tx_idstring
round_idstring or null
player_idstring or null
operationstring
currencystring
amountAmount
attemptsinteger
last_errorstring or null
first_failure_atstring (date-time)
give_up_atstring (date-time)
next_try_atstring (date-time)

payout.failed only.

manual_sincestring (date-time)

payout.manual only.

RoundForceClosedEvent

FieldTypeDescription
round_idstring
provider_round_idstring
game_idstring
player_idstring
currencystring
stakeAmount
winAmount
policystringclose_as_isrefund_stake
resultstring

"refunded" when stakes were returned.

closedrefunded
refundedAmount
refund_tx_idsarray of string

The rollback tx_ids sent to your wallet (empty when nothing was returned).

closed_atstring (date-time)
closed_bystring

e.g. api-key:opk_...

reasonstring

GameStatusChangedEvent

FieldTypeDescription
game_idstring
provider_game_idstring
namestring
studiostring
previous_statusstring or null
statusstringavailablehiddenstoppednot_certified
status_reasonstring or null
changed_atstring (date-time)

Talk to bhub

Tell us about your platform and the markets you serve.

We use these details only to answer you. Nothing is shared or sold. Read our privacy notice.