API del operador

Lista los juegos disponibles

get/v1/games

Catálogo paginado de los juegos activos de los productos habilitados para el merchant.

Autenticación#

Solicitud firmada con HMAC-SHA256: encabezados X-Merchant-Id, X-Timestamp, X-Nonce y X-Signature. Consulta Autenticación.

Parámetros#

CampoDescripción
page
number
Página (empieza en 1)
mínimo 1 · predeterminado: 1
limit
number
Elementos por página
1–100 · predeterminado: 50
provider
string
Código del proveedor
type
"slot" | "live"
Tipo de juego
category
string
Categoría del juego
search
string
Búsqueda por parte del nombre (sin distinguir mayúsculas)
hasta 100 caracteres

Ejemplo#

# TALOS_API_HOST (sin /v1), TALOS_MERCHANT y TALOS_SECRET los entrega TALOS
TS=$(($(date +%s) * 1000))
NONCE=$(openssl rand -hex 16)
REQ_PATH='/v1/games'
BODY=''
SIG=$(printf '%s' "$TS.$NONCE.GET.$REQ_PATH.$BODY" | openssl dgst -sha256 -hmac "$TALOS_SECRET" | sed 's/^.* //')

curl -X GET "$TALOS_API_HOST$REQ_PATH" \
  -H "X-Merchant-Id: $TALOS_MERCHANT" \
  -H "X-Timestamp: $TS" \
  -H "X-Nonce: $NONCE" \
  -H "X-Signature: $SIG"

Respuestas#

200Éxito

CampoDescripción
success
trueobligatorio
—
message
stringobligatorio
—
statusCode
numberobligatorio
—
data
object[]obligatorio
—
data[].code
stringobligatorio
Código del juego, usado en el campo game del launch
data[].name
stringobligatorio
—
data[].provider
stringobligatorio
Código del proveedor
data[].type
"slot" | "live"obligatorio
—
data[].category
string | nullobligatorio
—
data[].rtp
number | nullobligatorio
—
data[].volatility
string | nullobligatorio
—
data[].banner
string | nullobligatorio
URL de la imagen del juego
data[].tags
string[]obligatorio
—
data[].featured
booleanobligatorio
—
data[].is_new
booleanobligatorio
—
data[].demo_available
booleanobligatorio
Si el juego abre en modo diversión (demo: true)
meta
objectobligatorio
—
meta.page
numberobligatorio
—
meta.limit
numberobligatorio
—
meta.total
numberobligatorio
—
meta.totalPages
numberobligatorio
—
Ejemplo de respuesta
{
  "success": true,
  "message": "OK",
  "statusCode": 200,
  "data": [
    {
      "code": "minha-bet",
      "name": "Minha Bet",
      "provider": "PGSOFT",
      "type": "slot",
      "category": "string",
      "rtp": 0,
      "volatility": "string",
      "banner": "string",
      "tags": [
        "string"
      ],
      "featured": true,
      "is_new": true,
      "demo_available": true
    }
  ],
  "meta": {
    "page": 1,
    "limit": 50,
    "total": 120,
    "totalPages": 3
  }
}
HTTPCódigo (error.code)
401MISSING_AUTH_HEADERSINVALID_MERCHANTMERCHANT_BLOCKEDREQUEST_EXPIREDINVALID_SIGNATURENONCE_REUSEDIP_NOT_ALLOWED
422Cuerpo o query fuera del schema
429RATE_LIMITED
500LIST_GAMES_FAILED
503AUTH_UNAVAILABLE

Formato de los errores y significado de cada código en Errores.