Puntos: historial

Historial de puntos de un cliente.

GET/api/sdk/points/history

Retorna el historial de movimientos de puntos (earn/spend).

Query params

ParametroTipoDescripcion

Ejemplo

curl "https://southgames.ai/api/sdk/points/history?externalUserId=user_123&limit=10" \
  -H "Authorization: Bearer sg_live_xxx" \
  -H "X-Org-Id: mi-empresa"

Respuesta

{
  "success": true,
  "data": [
    {
      "type": "earn",
      "amount": 10,
      "balance": 150,
      "reason": "Jugar: Ruleta de Verano",
      "action": "game_play",
      "createdAt": "2025-01-15T10:30:00Z"
    },
    {
      "type": "spend",
      "amount": 50,
      "balance": 100,
      "reason": "Canje por descuento",
      "action": "manual_spend",
      "createdAt": "2025-01-14T15:00:00Z"
    }
  ]
}