Skip to main content
Tournament Prize
curl --request POST \
  --url https://ss.game-services.work/tournament-prize \
  --header 'Authorization: Bearer <token>'
POST /tournament-prize
Content-Type: application/json
{
    "playerId": "123e4567-e89b-12d3-a456-426614174000",
    "amount": 1500.00,
    "transactionId": "d1c4f1d6-7e35-4e62-84af-ef83b474d8a9",
    "transactionTimestamp": 1632771475000
}
POST /tournament-prize
This operation is idempotent.

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.
amountdecimalAmount to debit.
transactionIdstringUnique identifier of the game round transaction.
transactionTimestampintegerTimestamp of the transaction in milliseconds.
currencystringCurrency code of the player.

Response Parameters

NameTypeDescription
balancedecimalThe updated 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.

POST /tournament-prize
Content-Type: application/json
{
    "playerId": "123e4567-e89b-12d3-a456-426614174000",
    "amount": 1500.00,
    "transactionId": "d1c4f1d6-7e35-4e62-84af-ef83b474d8a9",
    "transactionTimestamp": 1632771475000
}
I