พอร์ทัลนักพัฒนา

พอร์ทัลนักพัฒนา / เอกสารอ้างอิง API

เอกสารทางเทคนิคภาษาอังกฤษ

operator API  /  Free rounds

Issue a free-round award to one or many players

POST/api/v1/operator/free-rounds

Gives each listed player rounds rounds at a fixed stake in any of game_codes, valid between valid_from and valid_until. The player sees the award the next time a session of an eligible game in the award's currency loads (or within 30 seconds in a running session) and plays it from the game.

Idempotency. reference (your campaign id) together with the player is the key. Sending the same request again, or adding players to the same reference, never creates a second award for a player. Reusing a reference with different terms (currency, games, rounds, stake, validity) answers 409 REFERENCE_CONFLICT; a cancelled reference answers 409 CAMPAIGN_CANCELLED.

Money. No bet is taken. Each award round's win reaches your wallet as a win with free_round: true, reference_transaction_id: null and the award identifiers (see wallet-api.yaml). Free-round wins are deducted from GGR in reports/daily (net_ggr).

Eligible games: round-based games enabled for you (the shared crash game is not eligible; see free_rounds in the catalogue). The stake must be within the game's limits for the currency, including the maximum-win ceiling.

Authentication

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

Request body

application/json
referencestring · required
Your campaign id. With the player id it is the idempotency key of an award.
player_idstring
Your stable id for the player.
playersarray
currencystring · required
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).
game_codesarray · required
roundsinteger · required
stakeallOf · required
Stake of every round, within each listed game's limits for the currency.
valid_fromstring
ISO 8601 with a time zone. Default now; at most 180 days ahead.
valid_untilstring · required
ISO 8601 with a time zone. After valid_from, at most 366 days after it.
Schema (resolved)
JSON Schema
{
  "type": "object",
  "required": [
    "reference",
    "currency",
    "game_codes",
    "rounds",
    "stake",
    "valid_until"
  ],
  "description": "Give either `player_id` or `players`.",
  "properties": {
    "reference": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.:-]{1,64}$",
      "description": "Your campaign id. With the player id it is the idempotency key of an award."
    },
    "player_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_.@:-]+$",
      "description": "Your stable id for the player.",
      "examples": [
        "u-48213"
      ]
    },
    "players": {
      "type": "array",
      "minItems": 1,
      "maxItems": 500,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64,
        "pattern": "^[A-Za-z0-9_.@:-]+$",
        "description": "Your stable id for the player.",
        "examples": [
          "u-48213"
        ]
      }
    },
    "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"
      ]
    },
    "game_codes": {
      "type": "array",
      "minItems": 1,
      "maxItems": 50,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "maxLength": 32,
        "pattern": "^[a-z0-9-]+$",
        "examples": [
          "dice",
          "zenith",
          "thunder-anvil"
        ]
      }
    },
    "rounds": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "stake": {
      "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": "Stake of every round, within each listed game's limits for the currency."
    },
    "valid_from": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 with a time zone. Default now; at most 180 days ahead."
    },
    "valid_until": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 with a time zone. After `valid_from`, at most 366 days after it."
    }
  },
  "oneOf": [
    {
      "required": [
        "player_id"
      ]
    },
    {
      "required": [
        "players"
      ]
    }
  ]
}
Example · One player
application/json
{
  "reference": "welcome-2026-12-u48213",
  "player_id": "u-48213",
  "currency": "USD",
  "game_codes": [
    "thunder-anvil",
    "frost-fruits"
  ],
  "rounds": 20,
  "stake": "0.20",
  "valid_until": "2026-12-31T23:59:59Z"
}
Example · A campaign for several players
application/json
{
  "reference": "xmas-2026",
  "players": [
    "u-48213",
    "u-50122",
    "u-50999"
  ],
  "currency": "USDT",
  "game_codes": [
    "thunder-anvil"
  ],
  "rounds": 10,
  "stake": "0.500000",
  "valid_from": "2026-12-24T00:00:00Z",
  "valid_until": "2026-12-27T00:00:00Z"
}

Responses

200 Every player already had an award under this reference (a safe retry). Same

Every player already had an award under this reference (a safe retry). Same body as 201, created is 0.

application/json
referencestring · required
Your campaign id. With the player id it is the idempotency key of an award.
createdinteger · required
existinginteger · required
awardsarray · required
Schema (resolved)
JSON Schema
{
  "type": "object",
  "required": [
    "reference",
    "created",
    "existing",
    "awards"
  ],
  "properties": {
    "reference": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.:-]{1,64}$",
      "description": "Your campaign id. With the player id it is the idempotency key of an award."
    },
    "created": {
      "type": "integer",
      "minimum": 0
    },
    "existing": {
      "type": "integer",
      "minimum": 0
    },
    "awards": {
      "type": "array",
      "items": {
        "allOf": [
          {
            "type": "object",
            "required": [
              "award_id",
              "reference",
              "player_id",
              "currency",
              "game_codes",
              "rounds_total",
              "rounds_played",
              "rounds_remaining",
              "stake",
              "win_total",
              "valid_from",
              "valid_until",
              "status",
              "claimed",
              "created_at",
              "ended_at"
            ],
            "properties": {
              "award_id": {
                "type": "string",
                "pattern": "^fra_[0-9a-f]{32}$"
              },
              "reference": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_.:-]{1,64}$",
                "description": "Your campaign id. With the player id it is the idempotency key of an award."
              },
              "player_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[A-Za-z0-9_.@:-]+$",
                "description": "Your stable id for the player.",
                "examples": [
                  "u-48213"
                ]
              },
              "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"
                ]
              },
              "game_codes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 32,
                  "pattern": "^[a-z0-9-]+$",
                  "examples": [
                    "dice",
                    "zenith",
                    "thunder-anvil"
                  ]
                }
              },
              "rounds_total": {
                "type": "integer"
              },
              "rounds_played": {
                "type": "integer"
              },
              "rounds_remaining": {
                "type": "integer",
                "description": "0 unless the award is active."
              },
              "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"
                ]
              },
              "win_total": {
                "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"
                ]
              },
              "valid_from": {
                "type": "string",
                "format": "date-time"
              },
              "valid_until": {
                "type": "string",
                "format": "date-time"
              },
              "status": {
                "type": "string",
                "enum": [
                  "active",
                  "completed",
                  "cancelled",
                  "expired"
                ]
              },
              "claimed": {
                "type": "boolean",
                "description": "True once a session of the player has picked the award up."
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "ended_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              }
            }
          },
          {
            "type": "object",
            "required": [
              "created"
            ],
            "properties": {
              "created": {
                "type": "boolean",
                "description": "True when this request created the award."
              }
            }
          }
        ]
      }
    }
  }
}
201 At least one new award was created.

At least one new award was created.

application/json
referencestring · required
Your campaign id. With the player id it is the idempotency key of an award.
createdinteger · required
existinginteger · required
awardsarray · required
Schema (resolved)
JSON Schema
{
  "type": "object",
  "required": [
    "reference",
    "created",
    "existing",
    "awards"
  ],
  "properties": {
    "reference": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.:-]{1,64}$",
      "description": "Your campaign id. With the player id it is the idempotency key of an award."
    },
    "created": {
      "type": "integer",
      "minimum": 0
    },
    "existing": {
      "type": "integer",
      "minimum": 0
    },
    "awards": {
      "type": "array",
      "items": {
        "allOf": [
          {
            "type": "object",
            "required": [
              "award_id",
              "reference",
              "player_id",
              "currency",
              "game_codes",
              "rounds_total",
              "rounds_played",
              "rounds_remaining",
              "stake",
              "win_total",
              "valid_from",
              "valid_until",
              "status",
              "claimed",
              "created_at",
              "ended_at"
            ],
            "properties": {
              "award_id": {
                "type": "string",
                "pattern": "^fra_[0-9a-f]{32}$"
              },
              "reference": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_.:-]{1,64}$",
                "description": "Your campaign id. With the player id it is the idempotency key of an award."
              },
              "player_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[A-Za-z0-9_.@:-]+$",
                "description": "Your stable id for the player.",
                "examples": [
                  "u-48213"
                ]
              },
              "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"
                ]
              },
              "game_codes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 32,
                  "pattern": "^[a-z0-9-]+$",
                  "examples": [
                    "dice",
                    "zenith",
                    "thunder-anvil"
                  ]
                }
              },
              "rounds_total": {
                "type": "integer"
              },
              "rounds_played": {
                "type": "integer"
              },
              "rounds_remaining": {
                "type": "integer",
                "description": "0 unless the award is active."
              },
              "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"
                ]
              },
              "win_total": {
                "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"
                ]
              },
              "valid_from": {
                "type": "string",
                "format": "date-time"
              },
              "valid_until": {
                "type": "string",
                "format": "date-time"
              },
              "status": {
                "type": "string",
                "enum": [
                  "active",
                  "completed",
                  "cancelled",
                  "expired"
                ]
              },
              "claimed": {
                "type": "boolean",
                "description": "True once a session of the player has picked the award up."
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "ended_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              }
            }
          },
          {
            "type": "object",
            "required": [
              "created"
            ],
            "properties": {
              "created": {
                "type": "boolean",
                "description": "True when this request created the award."
              }
            }
          }
        ]
      }
    }
  }
}
Example
{
  "reference": "welcome-2026-12-u48213",
  "created": 1,
  "existing": 0,
  "awards": [
    {
      "award_id": "fra_0193c4d2a1b07e4f9a3c5d6e7f80dddd",
      "reference": "welcome-2026-12-u48213",
      "player_id": "u-48213",
      "currency": "USD",
      "game_codes": [
        "thunder-anvil",
        "frost-fruits"
      ],
      "rounds_total": 20,
      "rounds_played": 0,
      "rounds_remaining": 20,
      "stake": "0.20",
      "win_total": "0.00",
      "valid_from": "2026-12-01T10:00:00.000Z",
      "valid_until": "2026-12-31T23:59:59.000Z",
      "status": "active",
      "claimed": false,
      "created_at": "2026-12-01T10:00:00.000Z",
      "ended_at": null,
      "created": true
    }
  ]
}
400 INVALID_PARAMETER, INVALID_JSON, INVALID_AMOUNT (stake malformed or too man

INVALID_PARAMETER, INVALID_JSON, INVALID_AMOUNT (stake malformed or too many decimals), CURRENCY_NOT_SUPPORTED, GAME_NOT_ELIGIBLE, BET_OUT_OF_RANGE, BET_STEP (stake is not a multiple of your account's stake step for the currency).

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": "BET_OUT_OF_RANGE",
    "message": "thunder-anvil: stake must be between 0.10 and 100.00"
  },
  "request_id": "6f1c2a54-5b1e-4a8e-9a43-3f3e8b8f9d10"
}
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 GAME_DISABLED (a listed game is not enabled for you), IP_NOT_ALLOWED, OPERA

GAME_DISABLED (a listed game is not enabled for you), IP_NOT_ALLOWED, 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"
    }
  }
}
409 REFERENCE_CONFLICT or CAMPAIGN_CANCELLED.

REFERENCE_CONFLICT or CAMPAIGN_CANCELLED.

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": "REFERENCE_CONFLICT",
    "message": "this reference was already used with different terms"
  },
  "request_id": "6f1c2a54-5b1e-4a8e-9a43-3f3e8b8f9d10"
}
413 BODY_TOO_LARGE: over 16 KiB (64 KiB for issuing free rounds).

BODY_TOO_LARGE: over 16 KiB (64 KiB for issuing free rounds).

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.