1. Seamless Wallet API
Hectic Play Integration
  • Getting Started
    • Introduction
    • Request and Response
    • Signature Guide — HMAC-SHA256
  • Base API
    • Game List
      POST
    • Create Player
      POST
    • Start Game
      POST
    • Kick Player
      POST
    • Update Status Player
      POST
  • Seamless Wallet API
    • Get Player Balance
      POST
    • Settle Round
      POST
    • Cancel Round
      POST
  • Report API
    • Get Bet Detail URL
      POST
  • Appendix
    • Game Supported Languages
    • Base API - Response Codes
    • Report API - Response Codes
    • Seamless Wallet Callback API — Response Codes
  • Game
  1. Seamless Wallet API

Settle Round

POST
/settlement
Settle a game round by deducting the bet amount and adding the payout amount to the player's wallet.
Signature data: {gameCode}:{roundID}:{currency}:{playerUsername}:{bet}:{payout}
This is the primary transaction endpoint. Each round should be settled exactly once.
Error handling:
Known error statuses (0001-0009, 9999) are mapped to specific error codes and returned immediately.
Unknown/unexpected statuses trigger a fail transaction log to ScyllaDB and are queued for retry via SQS.
Fail transaction log fields:
action, actionTime, ID, gameID, gameCode, roundID, agentID, playerUsername
currency, bet, payout, callbackURL, request body, response body
httpCode, errorMessage, latencyMs

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
Settlement processed
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/settlement' \
--header 'Accept-Language;' \
--header 'X-PUBLIC-KEY;' \
--header 'X-TIMESTAMP;' \
--header 'X-SIGNATURE;' \
--header 'X-Request-ID;' \
--header 'Content-Type: application/json' \
--data '{
    "gameCode": "MJW",
    "roundID": "550e8400-e29b-41d4-a716-446655440000",
    "playerUsername": "johndoe123",
    "currency": "USD",
    "bet": 10,
    "payout": 25.5
}'
Response Response Example
Round settled successfully
{
    "status": "0000",
    "balance": 1515.5
}
Modified at 2026-03-20 14:32:30
Previous
Get Player Balance
Next
Cancel Round
Built with