Portal pengembang

Portal pengembang / Referensi API

Dokumentasi teknis dalam bahasa Inggris

operator API  /  Rounds and reports

One round, for player support and disputes

GET/api/v1/operator/rounds/{round_id}

Bet, win, the game's result, provably-fair data, the jurisdiction and RTP variant it was played under, every wallet transaction, and details_url: a signed read-only page of the round for your support staff (valid 30 days, embeddable only by your registered origins).

Finished rounds come from the SPILVON ledger. A round that is still open, or whose win is still being delivered, is not there yet: add player_id and the player's live state is asked instead (RoundInProgress, with the pending transaction and its delivery attempts).

Authentication

X-Spilvon-Operator + X-Spilvon-Timestamp + X-Spilvon-Signature

Parameters

round_idpath · required
The round_id you received in the wallet calls.{ "type": "string", "pattern": "^rnd_[0-9a-f]{32}$" }
player_idquery · optional
The round's player, to look up a round that is still open or settling.{ "type": "string", "minLength": 1, "maxLength": 64, "pattern": "^[A-Za-z0-9_.@:-]+$", "description": "Your stable id for the player.", "examples": [ "u-48213" ] }

Responses

200 The round.

The round.

application/json
Schema (resolved)
JSON Schema
{
  "oneOf": [
    {
      "type": "object",
      "required": [
        "round_id",
        "player_id",
        "session_id",
        "game_code",
        "currency",
        "status",
        "bet",
        "win",
        "free_round",
        "result",
        "fair",
        "started_at",
        "ended_at",
        "transactions"
      ],
      "properties": {
        "round_id": {
          "type": "string",
          "pattern": "^rnd_[0-9a-f]{32}$"
        },
        "player_id": {
          "type": "string"
        },
        "session_id": {
          "type": "string",
          "pattern": "^ses_[0-9a-f]{32}$"
        },
        "game_code": {
          "type": "string",
          "maxLength": 32,
          "pattern": "^[a-z0-9-]+$",
          "examples": [
            "dice",
            "zenith",
            "thunder-anvil"
          ]
        },
        "currency": {
          "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"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "settled",
            "rolled_back"
          ]
        },
        "bet": {
          "allOf": [
            {
              "type": "string",
              "description": "Decimal string with at most the currency's number of decimals; no sign, no exponent.",
              "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
              "examples": [
                "12.50",
                "0.00010000"
              ]
            }
          ],
          "description": "Money the player wagered (0 for a free round)."
        },
        "win": {
          "type": "string",
          "description": "Decimal string with at most the currency's number of decimals; no sign, no exponent.",
          "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
          "examples": [
            "12.50",
            "0.00010000"
          ]
        },
        "free_round": {
          "description": "Present (not null) when the round was played from a free-round award.",
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "required": [
                "award_id",
                "stake"
              ],
              "properties": {
                "award_id": {
                  "type": "string",
                  "pattern": "^fra_[0-9a-f]{32}$"
                },
                "stake": {
                  "type": "string",
                  "description": "Decimal string with at most the currency's number of decimals; no sign, no exponent.",
                  "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
                  "examples": [
                    "12.50",
                    "0.00010000"
                  ]
                }
              }
            }
          ]
        },
        "result": {
          "type": "object",
          "additionalProperties": true,
          "description": "The game's own outcome record (game specific)."
        },
        "fair": {
          "type": "object",
          "properties": {
            "server_seed_hash": {
              "type": [
                "string",
                "null"
              ]
            },
            "client_seed": {
              "type": [
                "string",
                "null"
              ]
            },
            "nonce": {
              "type": [
                "integer",
                "null"
              ]
            }
          }
        },
        "jurisdiction": {
          "type": [
            "string",
            "null"
          ],
          "description": "Jurisdiction profile the round was played under."
        },
        "profile_version": {
          "type": [
            "integer",
            "null"
          ]
        },
        "edge_bps": {
          "type": [
            "integer",
            "null"
          ],
          "description": "RTP variant (house edge in basis points) of games with an adjustable edge."
        },
        "started_at": {
          "type": "integer",
          "description": "Epoch milliseconds."
        },
        "ended_at": {
          "type": "integer",
          "description": "Epoch milliseconds."
        },
        "in_ledger": {
          "type": "boolean",
          "const": true
        },
        "details_url": {
          "type": "string",
          "format": "uri",
          "description": "Signed read-only page of this round for your support staff (30 days)."
        },
        "details_url_expires_at": {
          "type": "integer"
        },
        "transactions": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "transaction_id",
              "type",
              "amount",
              "attempts",
              "created_at",
              "acknowledged_at"
            ],
            "properties": {
              "transaction_id": {
                "type": "string",
                "pattern": "^tx_[0-9a-f]{32}$"
              },
              "type": {
                "type": "string",
                "enum": [
                  "bet",
                  "win",
                  "rollback"
                ]
              },
              "amount": {
                "type": "string",
                "description": "Decimal string with at most the currency's number of decimals; no sign, no exponent.",
                "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
                "examples": [
                  "12.50",
                  "0.00010000"
                ]
              },
              "attempts": {
                "type": "integer",
                "minimum": 1,
                "description": "Delivery attempts until your wallet acknowledged."
              },
              "created_at": {
                "type": "integer",
                "description": "Epoch milliseconds."
              },
              "acknowledged_at": {
                "type": "integer",
                "description": "Epoch milliseconds."
              }
            }
          }
        }
      }
    },
    {
      "type": "object",
      "required": [
        "round_id",
        "status",
        "in_ledger"
      ],
      "description": "A round the player's live state still holds (open, or its result not yet acknowledged by your wallet).",
      "properties": {
        "round_id": {
          "type": "string",
          "pattern": "^rnd_[0-9a-f]{32}$"
        },
        "player_id": {
          "type": "string"
        },
        "session_id": {
          "type": "string",
          "pattern": "^ses_[0-9a-f]{32}$"
        },
        "game_code": {
          "type": "string",
          "maxLength": 32,
          "pattern": "^[a-z0-9-]+$",
          "examples": [
            "dice",
            "zenith",
            "thunder-anvil"
          ]
        },
        "currency": {
          "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"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "bet_pending",
            "open",
            "win_pending",
            "rollback_pending",
            "settled",
            "rolled_back",
            "rejected"
          ]
        },
        "bet": {
          "type": "string",
          "description": "Decimal string with at most the currency's number of decimals; no sign, no exponent.",
          "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
          "examples": [
            "12.50",
            "0.00010000"
          ]
        },
        "win": {
          "type": [
            "string",
            "null"
          ]
        },
        "free_round": {
          "type": "boolean"
        },
        "started_at": {
          "type": "integer"
        },
        "updated_at": {
          "type": "integer"
        },
        "pending_transaction_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "pending_type": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "win",
            "rollback",
            "bet",
            null
          ]
        },
        "pending_amount": {
          "type": [
            "string",
            "null"
          ]
        },
        "attempts": {
          "type": [
            "integer",
            "null"
          ]
        },
        "last_error": {
          "type": [
            "string",
            "null"
          ]
        },
        "next_attempt_at": {
          "type": [
            "integer",
            "null"
          ]
        },
        "in_ledger": {
          "type": "boolean",
          "const": false
        }
      }
    }
  ]
}
Example · An ordinary round
application/json
{
  "round_id": "rnd_0193c4d2a1b07e4f9a3c5d6e7f805678",
  "player_id": "u-48213",
  "session_id": "ses_0193c4d2a1b07e4f9a3c5d6e7f801234",
  "game_code": "dice",
  "currency": "USD",
  "status": "settled",
  "bet": "10.00",
  "win": "19.80",
  "free_round": null,
  "result": {
    "roll": "23.17",
    "target": "50.00",
    "direction": "under",
    "multiplier": "1.9800",
    "chance": "50.00"
  },
  "fair": {
    "server_seed_hash": "9b1f0c3e4d5a6b7c8d9e0f1a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e",
    "client_seed": "k3x9Pq",
    "nonce": 41
  },
  "started_at": 1767225600000,
  "ended_at": 1767225600412,
  "transactions": [
    {
      "transaction_id": "tx_0193c4d2a1b07e4f9a3c5d6e7f80aaaa",
      "type": "bet",
      "amount": "10.00",
      "attempts": 1,
      "created_at": 1767225600000,
      "acknowledged_at": 1767225600180
    },
    {
      "transaction_id": "tx_0193c4d2a1b07e4f9a3c5d6e7f80bbbb",
      "type": "win",
      "amount": "19.80",
      "attempts": 1,
      "created_at": 1767225600230,
      "acknowledged_at": 1767225600410
    }
  ]
}
Example · A free round (nothing wagered)
application/json
{
  "round_id": "rnd_0193c4d2a1b07e4f9a3c5d6e7f80cccc",
  "player_id": "u-48213",
  "session_id": "ses_0193c4d2a1b07e4f9a3c5d6e7f801234",
  "game_code": "thunder-anvil",
  "currency": "USD",
  "status": "settled",
  "bet": "0.00",
  "win": "3.40",
  "free_round": {
    "award_id": "fra_0193c4d2a1b07e4f9a3c5d6e7f80dddd",
    "stake": "0.20"
  },
  "result": {
    "grid": [],
    "free_round": {
      "award_id": "fra_0193c4d2a1b07e4f9a3c5d6e7f80dddd",
      "number": 3,
      "stake": "20"
    }
  },
  "fair": {
    "server_seed_hash": "2c4e6a8b0d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a3c",
    "client_seed": "k3x9Pq",
    "nonce": 42
  },
  "started_at": 1767225700000,
  "ended_at": 1767225700390,
  "transactions": [
    {
      "transaction_id": "tx_0193c4d2a1b07e4f9a3c5d6e7f80eeee",
      "type": "win",
      "amount": "3.40",
      "attempts": 1,
      "created_at": 1767225700200,
      "acknowledged_at": 1767225700380
    }
  ]
}
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).

application/json
errorobject · required
request_idstring
Schema (resolved)
JSON Schema
{
  "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"
    }
  }
}
Example
{
  "error": {
    "code": "INVALID_SIGNATURE",
    "message": "authentication failed"
  },
  "request_id": "6f1c2a54-5b1e-4a8e-9a43-3f3e8b8f9d10"
}
403 IP_NOT_ALLOWED (caller IP not on your allowlist) or OPERATOR_SUSPENDED.

IP_NOT_ALLOWED (caller IP not on your allowlist) or OPERATOR_SUSPENDED.

application/json
errorobject · required
request_idstring
Schema (resolved)
JSON Schema
{
  "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"
    }
  }
}
Example
{
  "error": {
    "code": "IP_NOT_ALLOWED",
    "message": "this IP address is not on the operator's allowlist"
  },
  "request_id": "6f1c2a54-5b1e-4a8e-9a43-3f3e8b8f9d10"
}
404 ROUND_NOT_FOUND: no finished round with this id for your operator account.

ROUND_NOT_FOUND: no finished round with this id for your operator account.

application/json
errorobject · required
request_idstring
Schema (resolved)
JSON Schema
{
  "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
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"
    }
  }
}
application/json
errorobject · required
request_idstring
Schema (resolved)
JSON Schema
{
  "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"
    }
  }
}
Example
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "rate limit of 3000 requests per minute exceeded; retry after 12 s"
  },
  "request_id": "6f1c2a54-5b1e-4a8e-9a43-3f3e8b8f9d10"
}
500 INTERNAL_ERROR. Safe to retry with a freshly signed request; quote request_

INTERNAL_ERROR. Safe to retry with a freshly signed request; quote request_id if it persists.

application/json
errorobject · required
request_idstring
Schema (resolved)
JSON Schema
{
  "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
Node.js
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");
Download full sample
Python python/spilvon.py
Python
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()
Download full sample
Go go/main.go
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))
}
Download full sample · go.mod
PHP php/spilvon.php
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);
}
Download full sample

Reviewed, not executed by the sample authors.