API del operador
Historial de movimientos de billetera
get
/v1/transactionsHistorial paginado de los movimientos de billetera del merchant (lo que se envió al callback y el resultado).
Autenticación#
Solicitud firmada con HMAC-SHA256: encabezados X-Merchant-Id, X-Timestamp, X-Nonce y X-Signature. Consulta Autenticación.
Parámetros#
| Campo | Descripción |
|---|---|
pagenumber | Página (empieza en 1) mínimo 1 · predeterminado: 1 |
limitnumber | Elementos por página 1–100 · predeterminado: 50 |
player_idstring | Id del jugador en el merchant |
round_idstring | Ronda (round_id del callback) |
tx_idstring | tx_id enviado en el callback de billetera |
action"bet" | "win" | "refund" | "rollback" | Acción del callback |
status"pending" | "success" | "failed" | pending = sin respuesta definitiva de la billetera; failed = rechazada |
fromstring (date-time) | Inicio (ISO 8601) |
tostring (date-time) | Fin (ISO 8601, exclusivo) |
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/transactions'
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"import { talos } from './talos' // cliente firmado (ver Autenticación)
const res = await talos('GET', '/v1/transactions')
if (!res.success) throw new Error(`${res.error.code}: ${res.message}`)
console.log(res.data)Respuestas#
200Éxito
| Campo | Descripción |
|---|---|
successtrueobligatorio | — |
messagestringobligatorio | — |
statusCodenumberobligatorio | — |
dataobject[]obligatorio | — |
data[].tx_idstringobligatorio | Id del movimiento enviado en el callback de billetera |
data[].ref_tx_idstring | nullobligatorio | tx_id del movimiento revertido (refund/rollback) |
data[].action"bet" | "win" | "refund" | "rollback"obligatorio | — |
data[].status"pending" | "success" | "failed"obligatorio | — |
data[].player_idstringobligatorio | — |
data[].providerstringobligatorio | — |
data[].gamestringobligatorio | — |
data[].round_idstringobligatorio | — |
data[].amountnumberobligatorio | Monto en la unidad mayor de la moneda |
data[].currencystringobligatorio | — |
data[].balance_afternumber | nullobligatorio | Saldo que respondió el merchant |
data[].errorstring | nullobligatorio | Error devuelto por el merchant o motivo de la falla |
data[].created_atstring (date-time)obligatorio | — |
metaobjectobligatorio | — |
meta.pagenumberobligatorio | — |
meta.limitnumberobligatorio | — |
meta.totalnumberobligatorio | — |
meta.totalPagesnumberobligatorio | — |
Ejemplo de respuesta
{
"success": true,
"message": "OK",
"statusCode": 200,
"data": [
{
"tx_id": "PGSOFT:982341:bet",
"ref_tx_id": "string",
"action": "bet",
"status": "pending",
"player_id": "user-123",
"provider": "PGSOFT",
"game": "fortune-tiger",
"round_id": "982341",
"amount": 0,
"currency": "BRL",
"balance_after": 0,
"error": "string",
"created_at": "2026-10-01T12:00:00.000Z"
}
],
"meta": {
"page": 1,
"limit": 50,
"total": 120,
"totalPages": 3
}
}| HTTP | Código (error.code) |
|---|---|
| 401 | MISSING_AUTH_HEADERSINVALID_MERCHANTMERCHANT_BLOCKEDREQUEST_EXPIREDINVALID_SIGNATURENONCE_REUSEDIP_NOT_ALLOWED |
| 422 | Cuerpo o query fuera del schema |
| 429 | RATE_LIMITED |
| 500 | LIST_TRANSACTIONS_FAILED |
| 503 | AUTH_UNAVAILABLE |
Formato de los errores y significado de cada código en Errores.