operator API / Sandbox wallet
Open a hosted-wallet session token for a test player
/api/v1/operator/sandbox-wallet/players/{player_id}/sessionFor a sandbox account whose wallet URL is SPILVON's hosted reference wallet (https://<sandbox wallet host>/<your operator id>/wallet). Returns a session token for the test player; pass it as token to createSession and the hosted wallet will accept that player's bets. Tokens live 12 hours; at most 2,000 unexpired tokens per sandbox account (409 SESSION_LIMIT_REACHED). A new test player starts with the hosted wallet's start balance in each currency; at most 1,000 distinct test players per account (409 PLAYER_LIMIT_REACHED). The three hosted-wallet endpoints together allow 120 calls per minute per sandbox account (429 RATE_LIMITED).
Signed with your sandbox API credentials like every Operator API call. SPILVON forwards it to the hosted wallet signed with its own Ed25519 wallet key; the hosted wallet's player endpoints refuse anything not sent this way. Sending an empty body (signing the empty string) is allowed.
Authentication
X-Spilvon-Operator + X-Spilvon-Timestamp + X-Spilvon-Signature
Parameters
player_idpath · required- Your id for the test player (1-64 of A-Z a-z 0-9 _ . @ : -).{ "type": "string", "minLength": 1, "maxLength": 64, "pattern": "^[A-Za-z0-9_.@:-]+$", "description": "Your stable id for the player.", "examples": [ "u-48213" ] }
Request body
currencyallOf- Play-money currency (default USD; required for a top-up).
Schema (resolved)
{
"type": "object",
"additionalProperties": false,
"properties": {
"currency": {
"allOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9]{2,8}$",
"description": "Currency enabled for your operator account: USD, EUR, GBP, TRY, USDT, USDC, TRX, BTC, ETH, LTC, SOL, DOGE, and the display units mBTC, uBTC, mETH, uETH, mLTC, uLTC (same money as the base coin, scaled; the session, wallet calls and reports then all use the unit code and its decimals).",
"examples": [
"USD",
"USDT",
"BTC"
]
}
],
"description": "Play-money currency (default USD; required for a top-up)."
}
}
}{}Responses
201 Token issued.
Token issued.
tokenstring · required- Pass as
tokento createSession. expires_atinteger · required- Epoch milliseconds (12 hours after issue).
Schema (resolved)
{
"type": "object",
"required": [
"token",
"expires_at"
],
"properties": {
"token": {
"type": "string",
"pattern": "^sbx_[0-9a-f]{32}$",
"description": "Pass as `token` to createSession."
},
"expires_at": {
"type": "integer",
"description": "Epoch milliseconds (12 hours after issue)."
}
}
}{
"token": "sbx_4f0c9a1e2b3d4c5e6f708192a3b4c5d6",
"expires_at": 1767268800000
}400 INVALID_PARAMETER (player id, currency, or a top-up without currency and am
INVALID_PARAMETER (player id, currency, or a top-up without currency and amount), INVALID_JSON, INVALID_AMOUNT (top-up amount malformed or out of range), CURRENCY_MISMATCH (unknown currency), INVALID_REQUEST.
errorobject · requiredrequest_idstring
Schema (resolved)
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable, machine-readable. Branch on this, never on `message`.",
"enum": [
"INVALID_SIGNATURE",
"TIMESTAMP_OUT_OF_RANGE",
"REPLAYED_REQUEST",
"IP_NOT_ALLOWED",
"OPERATOR_SUSPENDED",
"RATE_LIMITED",
"BODY_TOO_LARGE",
"INVALID_BODY",
"INVALID_JSON",
"INVALID_PARAMETER",
"INVALID_AMOUNT",
"NOT_FOUND",
"METHOD_NOT_ALLOWED",
"GAME_NOT_FOUND",
"GAME_DISABLED",
"REAL_PLAY_NOT_ALLOWED",
"JURISDICTION_NOT_ALLOWED",
"JURISDICTION_REQUIRED",
"JURISDICTION_NOT_CONFIGURED",
"GAME_NOT_AVAILABLE_IN_JURISDICTION",
"DEMO_NOT_AVAILABLE_IN_JURISDICTION",
"PLAYER_AGE_BAND_REQUIRED",
"HISTORY_URL_REQUIRED",
"BET_STEP",
"GAME_NOT_ELIGIBLE",
"CURRENCY_NOT_SUPPORTED",
"BET_OUT_OF_RANGE",
"IDENTITY_MISMATCH",
"ROUND_NOT_FOUND",
"REFERENCE_CONFLICT",
"CAMPAIGN_CANCELLED",
"REFERENCE_NOT_FOUND",
"AWARD_NOT_FOUND",
"AWARD_NOT_ACTIVE",
"INTERNAL_ERROR",
"WRONG_HOST",
"DEMO_NOT_AVAILABLE",
"SANDBOX_LIMIT_REACHED",
"SANDBOX_NOT_ALLOWED",
"SANDBOX_ONLY",
"NOT_ON_HOSTED_WALLET",
"HOSTED_WALLET_NOT_CONFIGURED",
"HOSTED_WALLET_UNAVAILABLE",
"HOSTED_WALLET_ERROR",
"PLAYER_LIMIT_REACHED",
"SESSION_LIMIT_REACHED",
"CURRENCY_MISMATCH",
"INVALID_REQUEST",
"POOL_NOT_FOUND",
"OPERATOR_NOT_FOUND",
"INVALID_GAME_CONFIG",
"STALE_GAME_CONFIG",
"APPROVAL_PENDING",
"APPROVAL_REQUIRED",
"OFFLINE_CHANGE_REQUIRED",
"MATH_BUILD_CHANGED",
"RTP_VARIANT_NOT_CERTIFIED",
"NO_PLAYABLE_STAKE"
]
},
"message": {
"type": "string",
"description": "Human-readable detail for your logs."
}
}
},
"request_id": {
"type": "string",
"format": "uuid"
}
}
}401 Authentication failed: INVALID_SIGNATURE (unknown operator, missing/malform
Authentication failed: INVALID_SIGNATURE (unknown operator, missing/malformed headers or a wrong signature, deliberately indistinguishable), TIMESTAMP_OUT_OF_RANGE (check your clock), REPLAYED_REQUEST (this exact signed request was already received: sign again).
errorobject · requiredrequest_idstring
Schema (resolved)
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable, machine-readable. Branch on this, never on `message`.",
"enum": [
"INVALID_SIGNATURE",
"TIMESTAMP_OUT_OF_RANGE",
"REPLAYED_REQUEST",
"IP_NOT_ALLOWED",
"OPERATOR_SUSPENDED",
"RATE_LIMITED",
"BODY_TOO_LARGE",
"INVALID_BODY",
"INVALID_JSON",
"INVALID_PARAMETER",
"INVALID_AMOUNT",
"NOT_FOUND",
"METHOD_NOT_ALLOWED",
"GAME_NOT_FOUND",
"GAME_DISABLED",
"REAL_PLAY_NOT_ALLOWED",
"JURISDICTION_NOT_ALLOWED",
"JURISDICTION_REQUIRED",
"JURISDICTION_NOT_CONFIGURED",
"GAME_NOT_AVAILABLE_IN_JURISDICTION",
"DEMO_NOT_AVAILABLE_IN_JURISDICTION",
"PLAYER_AGE_BAND_REQUIRED",
"HISTORY_URL_REQUIRED",
"BET_STEP",
"GAME_NOT_ELIGIBLE",
"CURRENCY_NOT_SUPPORTED",
"BET_OUT_OF_RANGE",
"IDENTITY_MISMATCH",
"ROUND_NOT_FOUND",
"REFERENCE_CONFLICT",
"CAMPAIGN_CANCELLED",
"REFERENCE_NOT_FOUND",
"AWARD_NOT_FOUND",
"AWARD_NOT_ACTIVE",
"INTERNAL_ERROR",
"WRONG_HOST",
"DEMO_NOT_AVAILABLE",
"SANDBOX_LIMIT_REACHED",
"SANDBOX_NOT_ALLOWED",
"SANDBOX_ONLY",
"NOT_ON_HOSTED_WALLET",
"HOSTED_WALLET_NOT_CONFIGURED",
"HOSTED_WALLET_UNAVAILABLE",
"HOSTED_WALLET_ERROR",
"PLAYER_LIMIT_REACHED",
"SESSION_LIMIT_REACHED",
"CURRENCY_MISMATCH",
"INVALID_REQUEST",
"POOL_NOT_FOUND",
"OPERATOR_NOT_FOUND",
"INVALID_GAME_CONFIG",
"STALE_GAME_CONFIG",
"APPROVAL_PENDING",
"APPROVAL_REQUIRED",
"OFFLINE_CHANGE_REQUIRED",
"MATH_BUILD_CHANGED",
"RTP_VARIANT_NOT_CERTIFIED",
"NO_PLAYABLE_STAKE"
]
},
"message": {
"type": "string",
"description": "Human-readable detail for your logs."
}
}
},
"request_id": {
"type": "string",
"format": "uuid"
}
}
}{
"error": {
"code": "INVALID_SIGNATURE",
"message": "authentication failed"
},
"request_id": "6f1c2a54-5b1e-4a8e-9a43-3f3e8b8f9d10"
}403 SANDBOX_ONLY (a real-money account), IP_NOT_ALLOWED or OPERATOR_SUSPENDED.
SANDBOX_ONLY (a real-money account), IP_NOT_ALLOWED or OPERATOR_SUSPENDED.
errorobject · requiredrequest_idstring
Schema (resolved)
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable, machine-readable. Branch on this, never on `message`.",
"enum": [
"INVALID_SIGNATURE",
"TIMESTAMP_OUT_OF_RANGE",
"REPLAYED_REQUEST",
"IP_NOT_ALLOWED",
"OPERATOR_SUSPENDED",
"RATE_LIMITED",
"BODY_TOO_LARGE",
"INVALID_BODY",
"INVALID_JSON",
"INVALID_PARAMETER",
"INVALID_AMOUNT",
"NOT_FOUND",
"METHOD_NOT_ALLOWED",
"GAME_NOT_FOUND",
"GAME_DISABLED",
"REAL_PLAY_NOT_ALLOWED",
"JURISDICTION_NOT_ALLOWED",
"JURISDICTION_REQUIRED",
"JURISDICTION_NOT_CONFIGURED",
"GAME_NOT_AVAILABLE_IN_JURISDICTION",
"DEMO_NOT_AVAILABLE_IN_JURISDICTION",
"PLAYER_AGE_BAND_REQUIRED",
"HISTORY_URL_REQUIRED",
"BET_STEP",
"GAME_NOT_ELIGIBLE",
"CURRENCY_NOT_SUPPORTED",
"BET_OUT_OF_RANGE",
"IDENTITY_MISMATCH",
"ROUND_NOT_FOUND",
"REFERENCE_CONFLICT",
"CAMPAIGN_CANCELLED",
"REFERENCE_NOT_FOUND",
"AWARD_NOT_FOUND",
"AWARD_NOT_ACTIVE",
"INTERNAL_ERROR",
"WRONG_HOST",
"DEMO_NOT_AVAILABLE",
"SANDBOX_LIMIT_REACHED",
"SANDBOX_NOT_ALLOWED",
"SANDBOX_ONLY",
"NOT_ON_HOSTED_WALLET",
"HOSTED_WALLET_NOT_CONFIGURED",
"HOSTED_WALLET_UNAVAILABLE",
"HOSTED_WALLET_ERROR",
"PLAYER_LIMIT_REACHED",
"SESSION_LIMIT_REACHED",
"CURRENCY_MISMATCH",
"INVALID_REQUEST",
"POOL_NOT_FOUND",
"OPERATOR_NOT_FOUND",
"INVALID_GAME_CONFIG",
"STALE_GAME_CONFIG",
"APPROVAL_PENDING",
"APPROVAL_REQUIRED",
"OFFLINE_CHANGE_REQUIRED",
"MATH_BUILD_CHANGED",
"RTP_VARIANT_NOT_CERTIFIED",
"NO_PLAYABLE_STAKE"
]
},
"message": {
"type": "string",
"description": "Human-readable detail for your logs."
}
}
},
"request_id": {
"type": "string",
"format": "uuid"
}
}
}409 NOT_ON_HOSTED_WALLET (your sandbox's wallet URL is not the hosted reference
NOT_ON_HOSTED_WALLET (your sandbox's wallet URL is not the hosted reference wallet; the message names the URL to set), HOSTED_WALLET_NOT_CONFIGURED (this environment has no hosted wallet), PLAYER_LIMIT_REACHED, SESSION_LIMIT_REACHED, REPLAYED_REQUEST.
errorobject · requiredrequest_idstring
Schema (resolved)
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable, machine-readable. Branch on this, never on `message`.",
"enum": [
"INVALID_SIGNATURE",
"TIMESTAMP_OUT_OF_RANGE",
"REPLAYED_REQUEST",
"IP_NOT_ALLOWED",
"OPERATOR_SUSPENDED",
"RATE_LIMITED",
"BODY_TOO_LARGE",
"INVALID_BODY",
"INVALID_JSON",
"INVALID_PARAMETER",
"INVALID_AMOUNT",
"NOT_FOUND",
"METHOD_NOT_ALLOWED",
"GAME_NOT_FOUND",
"GAME_DISABLED",
"REAL_PLAY_NOT_ALLOWED",
"JURISDICTION_NOT_ALLOWED",
"JURISDICTION_REQUIRED",
"JURISDICTION_NOT_CONFIGURED",
"GAME_NOT_AVAILABLE_IN_JURISDICTION",
"DEMO_NOT_AVAILABLE_IN_JURISDICTION",
"PLAYER_AGE_BAND_REQUIRED",
"HISTORY_URL_REQUIRED",
"BET_STEP",
"GAME_NOT_ELIGIBLE",
"CURRENCY_NOT_SUPPORTED",
"BET_OUT_OF_RANGE",
"IDENTITY_MISMATCH",
"ROUND_NOT_FOUND",
"REFERENCE_CONFLICT",
"CAMPAIGN_CANCELLED",
"REFERENCE_NOT_FOUND",
"AWARD_NOT_FOUND",
"AWARD_NOT_ACTIVE",
"INTERNAL_ERROR",
"WRONG_HOST",
"DEMO_NOT_AVAILABLE",
"SANDBOX_LIMIT_REACHED",
"SANDBOX_NOT_ALLOWED",
"SANDBOX_ONLY",
"NOT_ON_HOSTED_WALLET",
"HOSTED_WALLET_NOT_CONFIGURED",
"HOSTED_WALLET_UNAVAILABLE",
"HOSTED_WALLET_ERROR",
"PLAYER_LIMIT_REACHED",
"SESSION_LIMIT_REACHED",
"CURRENCY_MISMATCH",
"INVALID_REQUEST",
"POOL_NOT_FOUND",
"OPERATOR_NOT_FOUND",
"INVALID_GAME_CONFIG",
"STALE_GAME_CONFIG",
"APPROVAL_PENDING",
"APPROVAL_REQUIRED",
"OFFLINE_CHANGE_REQUIRED",
"MATH_BUILD_CHANGED",
"RTP_VARIANT_NOT_CERTIFIED",
"NO_PLAYABLE_STAKE"
]
},
"message": {
"type": "string",
"description": "Human-readable detail for your logs."
}
}
},
"request_id": {
"type": "string",
"format": "uuid"
}
}
}421 WRONG_HOST (421 Misdirected Request): this host does not serve this path; t
WRONG_HOST (421 Misdirected Request): this host does not serve this path; the message names the right host.
errorobject · requiredrequest_idstring
Schema (resolved)
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable, machine-readable. Branch on this, never on `message`.",
"enum": [
"INVALID_SIGNATURE",
"TIMESTAMP_OUT_OF_RANGE",
"REPLAYED_REQUEST",
"IP_NOT_ALLOWED",
"OPERATOR_SUSPENDED",
"RATE_LIMITED",
"BODY_TOO_LARGE",
"INVALID_BODY",
"INVALID_JSON",
"INVALID_PARAMETER",
"INVALID_AMOUNT",
"NOT_FOUND",
"METHOD_NOT_ALLOWED",
"GAME_NOT_FOUND",
"GAME_DISABLED",
"REAL_PLAY_NOT_ALLOWED",
"JURISDICTION_NOT_ALLOWED",
"JURISDICTION_REQUIRED",
"JURISDICTION_NOT_CONFIGURED",
"GAME_NOT_AVAILABLE_IN_JURISDICTION",
"DEMO_NOT_AVAILABLE_IN_JURISDICTION",
"PLAYER_AGE_BAND_REQUIRED",
"HISTORY_URL_REQUIRED",
"BET_STEP",
"GAME_NOT_ELIGIBLE",
"CURRENCY_NOT_SUPPORTED",
"BET_OUT_OF_RANGE",
"IDENTITY_MISMATCH",
"ROUND_NOT_FOUND",
"REFERENCE_CONFLICT",
"CAMPAIGN_CANCELLED",
"REFERENCE_NOT_FOUND",
"AWARD_NOT_FOUND",
"AWARD_NOT_ACTIVE",
"INTERNAL_ERROR",
"WRONG_HOST",
"DEMO_NOT_AVAILABLE",
"SANDBOX_LIMIT_REACHED",
"SANDBOX_NOT_ALLOWED",
"SANDBOX_ONLY",
"NOT_ON_HOSTED_WALLET",
"HOSTED_WALLET_NOT_CONFIGURED",
"HOSTED_WALLET_UNAVAILABLE",
"HOSTED_WALLET_ERROR",
"PLAYER_LIMIT_REACHED",
"SESSION_LIMIT_REACHED",
"CURRENCY_MISMATCH",
"INVALID_REQUEST",
"POOL_NOT_FOUND",
"OPERATOR_NOT_FOUND",
"INVALID_GAME_CONFIG",
"STALE_GAME_CONFIG",
"APPROVAL_PENDING",
"APPROVAL_REQUIRED",
"OFFLINE_CHANGE_REQUIRED",
"MATH_BUILD_CHANGED",
"RTP_VARIANT_NOT_CERTIFIED",
"NO_PLAYABLE_STAKE"
]
},
"message": {
"type": "string",
"description": "Human-readable detail for your logs."
}
}
},
"request_id": {
"type": "string",
"format": "uuid"
}
}
}429 RATE_LIMITED. Wait Retry-After seconds.
RATE_LIMITED. Wait Retry-After seconds.
Response headers
{
"Retry-After": {
"description": "Seconds until the current one-minute window ends.",
"schema": {
"type": "integer",
"minimum": 1
}
},
"X-RateLimit-Limit": {
"description": "Requests allowed per minute.",
"schema": {
"type": "integer"
}
},
"X-RateLimit-Remaining": {
"description": "Always 0 on a 429.",
"schema": {
"type": "integer"
}
}
}errorobject · requiredrequest_idstring
Schema (resolved)
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable, machine-readable. Branch on this, never on `message`.",
"enum": [
"INVALID_SIGNATURE",
"TIMESTAMP_OUT_OF_RANGE",
"REPLAYED_REQUEST",
"IP_NOT_ALLOWED",
"OPERATOR_SUSPENDED",
"RATE_LIMITED",
"BODY_TOO_LARGE",
"INVALID_BODY",
"INVALID_JSON",
"INVALID_PARAMETER",
"INVALID_AMOUNT",
"NOT_FOUND",
"METHOD_NOT_ALLOWED",
"GAME_NOT_FOUND",
"GAME_DISABLED",
"REAL_PLAY_NOT_ALLOWED",
"JURISDICTION_NOT_ALLOWED",
"JURISDICTION_REQUIRED",
"JURISDICTION_NOT_CONFIGURED",
"GAME_NOT_AVAILABLE_IN_JURISDICTION",
"DEMO_NOT_AVAILABLE_IN_JURISDICTION",
"PLAYER_AGE_BAND_REQUIRED",
"HISTORY_URL_REQUIRED",
"BET_STEP",
"GAME_NOT_ELIGIBLE",
"CURRENCY_NOT_SUPPORTED",
"BET_OUT_OF_RANGE",
"IDENTITY_MISMATCH",
"ROUND_NOT_FOUND",
"REFERENCE_CONFLICT",
"CAMPAIGN_CANCELLED",
"REFERENCE_NOT_FOUND",
"AWARD_NOT_FOUND",
"AWARD_NOT_ACTIVE",
"INTERNAL_ERROR",
"WRONG_HOST",
"DEMO_NOT_AVAILABLE",
"SANDBOX_LIMIT_REACHED",
"SANDBOX_NOT_ALLOWED",
"SANDBOX_ONLY",
"NOT_ON_HOSTED_WALLET",
"HOSTED_WALLET_NOT_CONFIGURED",
"HOSTED_WALLET_UNAVAILABLE",
"HOSTED_WALLET_ERROR",
"PLAYER_LIMIT_REACHED",
"SESSION_LIMIT_REACHED",
"CURRENCY_MISMATCH",
"INVALID_REQUEST",
"POOL_NOT_FOUND",
"OPERATOR_NOT_FOUND",
"INVALID_GAME_CONFIG",
"STALE_GAME_CONFIG",
"APPROVAL_PENDING",
"APPROVAL_REQUIRED",
"OFFLINE_CHANGE_REQUIRED",
"MATH_BUILD_CHANGED",
"RTP_VARIANT_NOT_CERTIFIED",
"NO_PLAYABLE_STAKE"
]
},
"message": {
"type": "string",
"description": "Human-readable detail for your logs."
}
}
},
"request_id": {
"type": "string",
"format": "uuid"
}
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "rate limit of 3000 requests per minute exceeded; retry after 12 s"
},
"request_id": "6f1c2a54-5b1e-4a8e-9a43-3f3e8b8f9d10"
}502 HOSTED_WALLET_UNAVAILABLE: the hosted wallet did not answer or is temporari
HOSTED_WALLET_UNAVAILABLE: the hosted wallet did not answer or is temporarily unavailable. Retry with a freshly signed request.
errorobject · requiredrequest_idstring
Schema (resolved)
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable, machine-readable. Branch on this, never on `message`.",
"enum": [
"INVALID_SIGNATURE",
"TIMESTAMP_OUT_OF_RANGE",
"REPLAYED_REQUEST",
"IP_NOT_ALLOWED",
"OPERATOR_SUSPENDED",
"RATE_LIMITED",
"BODY_TOO_LARGE",
"INVALID_BODY",
"INVALID_JSON",
"INVALID_PARAMETER",
"INVALID_AMOUNT",
"NOT_FOUND",
"METHOD_NOT_ALLOWED",
"GAME_NOT_FOUND",
"GAME_DISABLED",
"REAL_PLAY_NOT_ALLOWED",
"JURISDICTION_NOT_ALLOWED",
"JURISDICTION_REQUIRED",
"JURISDICTION_NOT_CONFIGURED",
"GAME_NOT_AVAILABLE_IN_JURISDICTION",
"DEMO_NOT_AVAILABLE_IN_JURISDICTION",
"PLAYER_AGE_BAND_REQUIRED",
"HISTORY_URL_REQUIRED",
"BET_STEP",
"GAME_NOT_ELIGIBLE",
"CURRENCY_NOT_SUPPORTED",
"BET_OUT_OF_RANGE",
"IDENTITY_MISMATCH",
"ROUND_NOT_FOUND",
"REFERENCE_CONFLICT",
"CAMPAIGN_CANCELLED",
"REFERENCE_NOT_FOUND",
"AWARD_NOT_FOUND",
"AWARD_NOT_ACTIVE",
"INTERNAL_ERROR",
"WRONG_HOST",
"DEMO_NOT_AVAILABLE",
"SANDBOX_LIMIT_REACHED",
"SANDBOX_NOT_ALLOWED",
"SANDBOX_ONLY",
"NOT_ON_HOSTED_WALLET",
"HOSTED_WALLET_NOT_CONFIGURED",
"HOSTED_WALLET_UNAVAILABLE",
"HOSTED_WALLET_ERROR",
"PLAYER_LIMIT_REACHED",
"SESSION_LIMIT_REACHED",
"CURRENCY_MISMATCH",
"INVALID_REQUEST",
"POOL_NOT_FOUND",
"OPERATOR_NOT_FOUND",
"INVALID_GAME_CONFIG",
"STALE_GAME_CONFIG",
"APPROVAL_PENDING",
"APPROVAL_REQUIRED",
"OFFLINE_CHANGE_REQUIRED",
"MATH_BUILD_CHANGED",
"RTP_VARIANT_NOT_CERTIFIED",
"NO_PLAYABLE_STAKE"
]
},
"message": {
"type": "string",
"description": "Human-readable detail for your logs."
}
}
},
"request_id": {
"type": "string",
"format": "uuid"
}
}
}503 HOSTED_WALLET_UNAVAILABLE: the hosted wallet did not answer or is temporari
HOSTED_WALLET_UNAVAILABLE: the hosted wallet did not answer or is temporarily unavailable. Retry with a freshly signed request.
errorobject · requiredrequest_idstring
Schema (resolved)
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable, machine-readable. Branch on this, never on `message`.",
"enum": [
"INVALID_SIGNATURE",
"TIMESTAMP_OUT_OF_RANGE",
"REPLAYED_REQUEST",
"IP_NOT_ALLOWED",
"OPERATOR_SUSPENDED",
"RATE_LIMITED",
"BODY_TOO_LARGE",
"INVALID_BODY",
"INVALID_JSON",
"INVALID_PARAMETER",
"INVALID_AMOUNT",
"NOT_FOUND",
"METHOD_NOT_ALLOWED",
"GAME_NOT_FOUND",
"GAME_DISABLED",
"REAL_PLAY_NOT_ALLOWED",
"JURISDICTION_NOT_ALLOWED",
"JURISDICTION_REQUIRED",
"JURISDICTION_NOT_CONFIGURED",
"GAME_NOT_AVAILABLE_IN_JURISDICTION",
"DEMO_NOT_AVAILABLE_IN_JURISDICTION",
"PLAYER_AGE_BAND_REQUIRED",
"HISTORY_URL_REQUIRED",
"BET_STEP",
"GAME_NOT_ELIGIBLE",
"CURRENCY_NOT_SUPPORTED",
"BET_OUT_OF_RANGE",
"IDENTITY_MISMATCH",
"ROUND_NOT_FOUND",
"REFERENCE_CONFLICT",
"CAMPAIGN_CANCELLED",
"REFERENCE_NOT_FOUND",
"AWARD_NOT_FOUND",
"AWARD_NOT_ACTIVE",
"INTERNAL_ERROR",
"WRONG_HOST",
"DEMO_NOT_AVAILABLE",
"SANDBOX_LIMIT_REACHED",
"SANDBOX_NOT_ALLOWED",
"SANDBOX_ONLY",
"NOT_ON_HOSTED_WALLET",
"HOSTED_WALLET_NOT_CONFIGURED",
"HOSTED_WALLET_UNAVAILABLE",
"HOSTED_WALLET_ERROR",
"PLAYER_LIMIT_REACHED",
"SESSION_LIMIT_REACHED",
"CURRENCY_MISMATCH",
"INVALID_REQUEST",
"POOL_NOT_FOUND",
"OPERATOR_NOT_FOUND",
"INVALID_GAME_CONFIG",
"STALE_GAME_CONFIG",
"APPROVAL_PENDING",
"APPROVAL_REQUIRED",
"OFFLINE_CHANGE_REQUIRED",
"MATH_BUILD_CHANGED",
"RTP_VARIANT_NOT_CERTIFIED",
"NO_PLAYABLE_STAKE"
]
},
"message": {
"type": "string",
"description": "Human-readable detail for your logs."
}
}
},
"request_id": {
"type": "string",
"format": "uuid"
}
}
}Request signing samples
Canonical string and HMAC helpers from the downloadable samples. Wallet callbacks may also use Ed25519; see the wallet signing modes.
Node.js node/spilvon.mjs
export const signingString = (ts, method, pathAndQuery, body) => `${ts}.${method.toUpperCase()}.${pathAndQuery}.${body}`;
export const hmacHex = (secret, s) => createHmac("sha256", secret).update(s, "utf8").digest("hex");Python python/spilvon.py
def signing_string(ts: str, method: str, path_and_query: str, body: str) -> str:
return f"{ts}.{method.upper()}.{path_and_query}.{body}"
def hmac_hex(secret: str, s: str) -> str:
return hmac.new(secret.encode(), s.encode("utf-8"), hashlib.sha256).hexdigest()Go go/main.go
func signingString(ts, method, pathAndQuery, body string) string {
return ts + "." + strings.ToUpper(method) + "." + pathAndQuery + "." + body
}
func hmacHex(secret, s string) string {
m := hmac.New(sha256.New, []byte(secret))
m.Write([]byte(s))
return hex.EncodeToString(m.Sum(nil))
}PHP php/spilvon.php
function signing_string(string $ts, string $method, string $pathAndQuery, string $body): string {
return $ts . '.' . strtoupper($method) . '.' . $pathAndQuery . '.' . $body;
}
function hmac_hex(string $secret, string $s): string {
return hash_hmac('sha256', $s, $secret);
}Reviewed, not executed by the sample authors.