Skip to main content
Get Balance
curl --request GET \
  --url https://ss.game-services.work/balance \
  --header 'Authorization: Bearer <token>'
GET /balance?playerId=123e4567-e89b-12d3-a456-426614174000
&sessionId=abc123-session-id&currency=USD&gameUuid=game-uuid-456
GET /balance

Headers

NameTypeDescription
X-Auth-TokenstringCustom authentication header in the format X-Auth-Token: your_token_here. This token is required to authorize API requests.

Request Parameters

NameTypeDescription
playerIdstringUnique identifier of the player whose balance is being retrieved.
gameUuidstringUnique identifier of the game for which the request is being made.
sessionIdstringUnique identifier of the player’s session.
currencystringThe currency code for the transaction, typically in ISO 4217 format.

Response Parameters

NameTypeDescription
balancedecimalThe current balance of the player.

Error

If an error occurs while processing a request, the API must return a response with HTTP Status Code: 400 Bad Request
NameTypeDescription
error_codestringError code describing the specific issue.

Responsibility of the wallet platform
Assert that the incoming sessionId is valid, and return the player’s current balance
GET /balance?playerId=123e4567-e89b-12d3-a456-426614174000
&sessionId=abc123-session-id&currency=USD&gameUuid=game-uuid-456
⌘I