Operator API
Calls the operator makes to bhub (launch, catalog, rounds, feeds, reports, webhooks).
Servers
| URL | Use |
|---|---|
https://api.bhts.dev | Production |
https://sandbox.bhts.dev | Sandbox (simulator wallets and test-only games) |
Conventions
- Transport: HTTPS, JSON (
application/json; charset=utf-8), UTF-8. Feeds and the daily report also answertext/csvwhen asked withAccept: 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 isGET /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, oftimestamp + "\n" + METHOD + "\n" + path_and_query + "\n" + raw_body, wherepath_and_queryis exactly as sent (/v1/games?limit=100) andraw_bodyis empty for GET. Every answer to a signed request is signed back with the same key:X-Bhub-Signature= hex HMAC-SHA256 oftimestamp + "\n" + raw_response_body. A signed POST is accepted once: the identical signed request again isREPLAYED_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
limitup to 1000 instead). Every signed answer carriesX-RateLimit-LimitandX-RateLimit-Remaining; over the limit is HTTP 429RATE_LIMITEDwithRetry-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
Supported currencies and their minor-unit precision. Unsigned.
GET/v1/currencies
No signature needed. · operationId currencies
Answer 200
| Field | Type | Description |
|---|---|---|
currenciesrequired | array of Currency |
Responses
| Status | Meaning |
|---|---|
| 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
| Field | Type | Description |
|---|---|---|
keysrequired | array of WebhookKey |
Responses
| Status | Meaning |
|---|---|
| 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
| Field | Type | Description |
|---|---|---|
moderequired | string | realdemo |
game_idrequired | string (uuid) | |
player_id | string | Required for real. Optional for demo: your player reference, logged with the demo session. at most 64 characters |
token | string | Real: your launch token, sent to your wallet's authenticate. at most 256 characters |
currencyrequired | string | pattern |
languagerequired | string | e.g. |
platform | string | desktopmobiledefault |
lobby_url | string (uri) | |
cashier_url | string (uri) | |
history_url | string (uri) | |
reality_check | object | |
reality_check.interval_minutes | integer | min 1 · max 1440 |
reality_check.elapsed_minutes | integer | min 0 |
ip_address | string | The player's address, passed to the studio. |
Responses
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
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | default |
cursor | query | string | |
updated_since | query | string (date-time) | Only games changed at or after this time (catalog sync). |
Answer 200
| Field | Type | Description |
|---|---|---|
gamesrequired | array of Game | |
next_cursorrequired | string or null | |
jurisdictionrequired | string | |
currenciesrequired | array of string | |
as_ofrequired | string (date-time) |
Responses
| Status | Meaning |
|---|---|
| 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
| Name | In | Type | Description |
|---|---|---|---|
game_idrequired | path | string (uuid) |
Responses
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
| Name | In | Type | Description |
|---|---|---|---|
game_idrequired | path | string (uuid) | |
currency | query | string | Comma-separated; default your currencies. |
Responses
| Status | Meaning |
|---|---|
| 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
| Name | In | Type | Description |
|---|---|---|---|
game_id | query | string (uuid) | |
updated_since | query | string (date-time) |
Responses
| Status | Meaning |
|---|---|
| 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
| Name | In | Type | Description |
|---|---|---|---|
round_idrequired | path | string (uuid) |
Responses
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
| Name | In | Type | Description |
|---|---|---|---|
provider_round_idrequired | path | string | at most 64 characters |
studio | query | string | Studio code; needed only when two studios use the same id (AMBIGUOUS_ROUND). |
Responses
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 arollback(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.manualif your wallet does not confirm), and the round endscancelled. 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: 409FORCE_CLOSE_NOT_ALLOWED; the studio settles its own rounds.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
round_idrequired | path | string (uuid) |
Request body application/json, required
| Field | Type | Description |
|---|---|---|
reasonrequired | string | at least 3 characters · at most 500 characters |
Responses
Feeds
Every money movement (bet, win, rollback, adjustment...), in durable order.
GET/v1/feeds/transactions
Signed (HMAC-SHA256). See Request signing. · operationId feedTransactions
Parameters
| Name | In | Type | Description |
|---|---|---|---|
cursor | query | string | next_cursor from the previous page. |
since | query | string (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. |
limit | query | integer | default |
Responses
| Status | Meaning |
|---|---|
| 200 | Page application/json: TransactionPage text/csv: string Headers: |
| 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
| Name | In | Type | Description |
|---|---|---|---|
cursor | query | string | next_cursor from the previous page. |
since | query | string (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. |
limit | query | integer | default |
Responses
| Status | Meaning |
|---|---|
| 200 | Page application/json: RoundFeedPage text/csv: string Headers: |
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
| Name | In | Type | Description |
|---|---|---|---|
cursor | query | string | next_cursor from the previous page. |
since | query | string (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. |
limit | query | integer | default |
Responses
| Status | Meaning |
|---|---|
| 200 | Page application/json: FailedPage text/csv: string Headers: |
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
| Name | In | Type | Description |
|---|---|---|---|
daterequired | query | string (date) | Business day in your jurisdiction's time zone. |
Responses
| Status | Meaning |
|---|---|
| 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.
| Field | Type | Description |
|---|---|---|
ticket_norequired | string or null | Wire form, e.g. ZA-0009843601220. Null until numbered (seconds after the round commits) and always null for sandbox tenants. |
ticket_displayrequired | string or null | Grouped for printing, e.g. ZA-0009 843 601 220. |
operatorrequired | string | |
legal_entityrequired | string | |
licence_norequired | string or null | |
outletrequired | string or null | The licensed site (venue). |
provincerequired | string or null | |
terminalrequired | string | The player's platform. |
daterequired | string (date) | Round opened, jurisdiction local time. |
timerequired | string | HH:MM:SS, jurisdiction local time. |
time_zonerequired | string | e.g. SAST |
stakerequired | Amount | |
wager_typerequired | string | Game category, with _free_spin appended for free rounds. |
account_norequired | string | The player reference. |
eventrequired | object | |
event.game_id | string | |
event.game_name | string | |
event.studio | string | |
event.config_version | string or null | |
event.round_id | string | |
event.provider_round_id | string | |
event.bonus_ref | string or null | |
selectionrequired | string | game_outcome |
resultrequired | string | openwinno_wincancelled |
payoutrequired | Amount | |
free_textrequired | string | 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
| Field | Type | Description |
|---|---|---|
errorrequired | ErrorCode | |
messagerequired | string | |
retryablerequired | boolean | |
details | object |
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
| Field | Type | Description |
|---|---|---|
statusrequired | string | okdegraded |
timerequired | string (date-time) | |
versionrequired | string | |
componentsrequired | map of string |
Currency
| Field | Type | Description |
|---|---|---|
coderequired | string | pattern |
exponentrequired | integer | min 0 · max 3 |
namerequired | string | |
examplerequired | string | e.g. |
minor_unitrequired | string | e.g. |
WebhookKey
| Field | Type | Description |
|---|---|---|
key_idrequired | string | |
algrequired | string | EdDSA |
statusrequired | string | currentprevious |
ktyrequired | string | OKP |
crvrequired | string | Ed25519 |
xrequired | string | base64url public key (RFC 8037 JWK) |
public_key_hexrequired | string |
LaunchRequest
| Field | Type | Description |
|---|---|---|
moderequired | string | realdemo |
game_idrequired | string (uuid) | |
player_id | string | Required for real. Optional for demo: your player reference, logged with the demo session. at most 64 characters |
token | string | Real: your launch token, sent to your wallet's authenticate. at most 256 characters |
currencyrequired | string | pattern |
languagerequired | string | e.g. |
platform | string | desktopmobiledefault |
lobby_url | string (uri) | |
cashier_url | string (uri) | |
history_url | string (uri) | |
reality_check | object | |
reality_check.interval_minutes | integer | min 1 · max 1440 |
reality_check.elapsed_minutes | integer | min 0 |
ip_address | string | The player's address, passed to the studio. |
LaunchResponse
| Field | Type | Description |
|---|---|---|
launch_idrequired | string (uuid) | |
launch_urlrequired | string (uri) | bhub's play address; for Kerma Games real-money launches, the game address Kerma's launcher returned (one-time key inside). e.g. |
moderequired | string | realdemo |
game_idrequired | string (uuid) | |
player_idrequired | string or null | |
currencyrequired | string | |
jurisdictionrequired | string | |
expires_atrequired | string (date-time) |
Game
| Field | Type | Description |
|---|---|---|
game_idrequired | string (uuid) | |
provider_game_idrequired | string | |
namerequired | string | |
studiorequired | object | |
studio.coderequired | string | |
studio.namerequired | string | |
categoryrequired | string | slotscrashinstanttableliveother |
statusrequired | string | Launchable only when available (same derivation as the portal's Games screen). availablehiddenstoppednot_certifiedunavailable |
status_reasonrequired | string or null | |
test_onlyrequired | boolean | Simulator games; real money only in the sandbox. |
certificationrequired | object | |
certification.jurisdictionrequired | string | |
certification.statusrequired | string | certifiedpendingnot_certifiednot_required |
certification.versionrequired | string or null | |
certification.pending_versionrequired | string or null | |
rtprequired | string or null | Percent e.g. |
volatilityrequired | string or null | lowmediumhighvery_highnull |
max_win_multiplierrequired | integer or null | |
featuresrequired | array of string | |
free_spinsrequired | object | |
free_spins.supportedrequired | boolean | |
free_spins.levels_urlrequired | string | |
min_betrequired | map of Amount or null | Per tenant currency; null when the studio has not said. |
data_weight_kbrequired | integer or null | First-load download size. |
literequired | boolean or null | A low-data build exists. |
updated_atrequired | string (date-time) |
FreeSpinLevels
| Field | Type | Description |
|---|---|---|
game_idrequired | string | |
studiorequired | string | |
supportedrequired | boolean | |
checked_atrequired | string (date-time) or null (date-time) | Last successful sync with the studio. |
noterequired | string | |
currenciesrequired | array of object | |
currencies[].currencyrequired | string | |
currencies[].missingrequired | boolean | |
currencies[].sourcerequired | string or null | |
currencies[].levelsrequired | array of object | |
levels[].level_keyrequired | string or null | |
levels[].amountrequired | Amount |
AssetManifest
| Field | Type | Description |
|---|---|---|
cdn_baserequired | string (uri) | e.g. |
generated_atrequired | string (date-time) | |
gamesrequired | array of object | |
games[].game_idrequired | string | |
games[].updated_atrequired | string (date-time) | |
games[].assetsrequired | array of object | |
assets[].kindrequired | string | thumbnailbannericonbackground |
assets[].formatrequired | string | webpavif |
assets[].widthrequired | integer | |
assets[].heightrequired | integer | |
assets[].urlrequired | string (uri) | |
assets[].bytesrequired | integer or null | |
assets[].sha256required | string or null | |
assets[].placeholderrequired | boolean | Stand-in until the studio's artwork arrives. |
Round
| Field | Type | Description |
|---|---|---|
round_idrequired | string (uuid) | |
provider_round_idrequired | string | |
game_idrequired | string | |
provider_game_idrequired | string | |
game_namerequired | string | |
studiorequired | string | |
player_idrequired | string | |
currencyrequired | string | |
stakerequired | Amount | |
winrequired | Amount | |
statusrequired | string | openclosedcancelled |
is_freerequired | boolean | |
bonus_refrequired | string or null | The studio's free spins reference. |
platformrequired | string | |
opened_atrequired | string (date-time) | |
closed_atrequired | string (date-time) or null (date-time) | |
last_adjusted_atrequired | string (date-time) or null (date-time) | |
config_versionrequired | string or null | |
rtprequired | string or null | |
jurisdictionrequired | object | |
jurisdiction.code | string | |
jurisdiction.province | string or null | |
jurisdiction.venue | string or null | |
ticket_norequired | string 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_slip | BetSlip | |
replay_urlrequired | string or null | The studio's replay link for the round when the studio offers one (Kerma Games: per connection); null otherwise. |
round_detailsrequired | any | The studio's raw round fields, as sent. |
from_archive | boolean | The round is older than the 90-day hot window and was read from the archive. |
transactionsrequired | array of object | |
transactions[].tx_idrequired | string | |
transactions[].kindrequired | string | betwinbet_winrollbackend_roundpromo_creditadjustment |
transactions[].debitrequired | Amount | |
transactions[].creditrequired | Amount | |
transactions[].operator_tx_idrequired | string or null | |
transactions[].occurred_atrequired | string (date-time) |
FeedPage
| Field | Type | Description |
|---|---|---|
next_cursorrequired | string | Always present; unchanged on an empty page. |
has_morerequired | boolean |
TransactionPage
| Field | Type | Description |
|---|---|---|
next_cursorrequired | string | Always present; unchanged on an empty page. |
has_morerequired | boolean | |
itemsrequired | array of object | |
items[].tx_id | string | |
items[].round_id | string | |
items[].provider_round_id | string | |
items[].kind | string | |
items[].player_id | string | |
items[].game_id | string | |
items[].provider_game_id | string | |
items[].currency | string | |
items[].debit | Amount | |
items[].credit | Amount | |
items[].provider_tx_id | string | |
items[].operator_tx_id | string or null | |
items[].balance_after | Amount or null | |
items[].occurred_at | string (date-time) | |
items[].recorded_at | string (date-time) | |
items[].change_seq | integer |
RoundFeedPage
| Field | Type | Description |
|---|---|---|
next_cursorrequired | string | Always present; unchanged on an empty page. |
has_morerequired | boolean | |
itemsrequired | array of object | |
items[].round_id | string | |
items[].provider_round_id | string | |
items[].player_id | string | |
items[].game_id | string | |
items[].provider_game_id | string | |
items[].currency | string | |
items[].stake | Amount | |
items[].win | Amount | |
items[].status | string | openclosedcancelled |
items[].is_free | boolean | |
items[].bonus_ref | string or null | |
items[].platform | string | |
items[].opened_at | string (date-time) | |
items[].closed_at | string or null | |
items[].last_adjusted_at | string or null | |
items[].ticket_no | string or null | Set once numbered; the round is re-emitted on the feed when its ticket is issued. |
items[].change_seq | integer |
FailedPage
| Field | Type | Description |
|---|---|---|
next_cursorrequired | string | Always present; unchanged on an empty page. |
has_morerequired | boolean | |
itemsrequired | array of object | |
items[].tx_id | string | |
items[].round_id | string or null | |
items[].player_id | string or null | |
items[].operation | string | e.g. |
items[].currency | string | |
items[].amount | Amount | |
items[].state | string | pendingdonemanual |
items[].attempts | integer | |
items[].last_error | string or null | |
items[].next_try_at | string (date-time) or null (date-time) | |
items[].give_up_at | string (date-time) | |
items[].first_failure_at | string (date-time) | |
items[].updated_at | string (date-time) | |
items[].change_seq | integer |
DailyTotals
| Field | Type | Description |
|---|---|---|
daterequired | string (date) | |
time_zonerequired | string | e.g. |
jurisdictionrequired | string | |
totalsrequired | array of object | |
totals[].date | string (date) | |
totals[].studio | string | |
totals[].game_id | string | |
totals[].provider_game_id | string | |
totals[].game_name | string | |
totals[].currency | string | |
totals[].rounds | integer | |
totals[].turnover | Amount | |
totals[].wins | Amount | |
totals[].refunds | Amount | |
totals[].ggr | Amount | turnover - wins - refunds |
totals[].free_spins | integer | |
totals[].free_spin_wins | Amount | |
demorequired | array of object | Demo sessions launched on the business day, per game (JSON only, not in the CSV). No money. |
demo[].game_idrequired | string | |
demo[].launchesrequired | integer | |
demo[].sessions_reportedrequired | integer | sessions the studio reported on |
demo[].playersrequired | integer | distinct player_id values you gave |
demo[].roundsrequired | integer | |
demo[].free_spinsrequired | integer |
WebhookEnvelope
| Field | Type | Description |
|---|---|---|
event_idrequired | string (uuid) | Same as X-Bhub-Webhook-Id; deduplicate on it. |
typerequired | string | payout.failedpayout.manualround.force_closedgame.status_changed |
created_atrequired | string (date-time) | |
datarequired | PayoutEvent 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.
| Field | Type | Description |
|---|---|---|
tx_id | string | |
round_id | string or null | |
player_id | string or null | |
operation | string | |
currency | string | |
amount | Amount | |
attempts | integer | |
last_error | string or null | |
first_failure_at | string (date-time) | |
give_up_at | string (date-time) | |
next_try_at | string (date-time) | payout.failed only. |
manual_since | string (date-time) | payout.manual only. |
RoundForceClosedEvent
| Field | Type | Description |
|---|---|---|
round_id | string | |
provider_round_id | string | |
game_id | string | |
player_id | string | |
currency | string | |
stake | Amount | |
win | Amount | |
policy | string | close_as_isrefund_stake |
result | string | "refunded" when stakes were returned. closedrefunded |
refunded | Amount | |
refund_tx_ids | array of string | The rollback tx_ids sent to your wallet (empty when nothing was returned). |
closed_at | string (date-time) | |
closed_by | string | e.g. |
reason | string |
GameStatusChangedEvent
| Field | Type | Description |
|---|---|---|
game_id | string | |
provider_game_id | string | |
name | string | |
studio | string | |
previous_status | string or null | |
status | string | availablehiddenstoppednot_certified |
status_reason | string or null | |
changed_at | string (date-time) |