List Timed-out Wins

โฑ๏ธ Description

Command 28 โ€“ List of Timed-Out Wins (Seamless Wallet Only)

This function returns a JSON list of transactions representing wins that timed out when sent to the Seamless Wallet URL. These wins were considered failed by the RGS-CWS system but may have been processed after timeout by your system.

You can use this list to reconcile any unintentional balance deductions and refund the players accordingly, based on uniqid.

NOTE: Transactions where your response was not valid (did not contain {"status":"1"} or {"status":"-1"} will be considered same as timed out transactions (failed to be processed) and will be returned as results for this command.


๐Ÿง  Use Case Example:

RGS-CWS sends a win request at 18:33:22. The operator doesnโ€™t respond within 30 seconds. RGS-CWS marks it as failed.
But your System processes it at 18:33:55, leading to a balance increase.
The operator must refund this manually using the data returned by Command 28.


๐Ÿ“œ Sample JSON Request (from your server to the RGS-CWS server)

{ "command": "28", "apiusername": "your_api_username", "apipass": "your_api_password", "sdate": "2020-01-01 00:00:00", "fdate": "2025-01-01 00:00:00", "complete": "0" }

๐Ÿ“ฅ Input Parameters (from your server to the RGS-CWS server)

Parameter

Mandatory

Description

Type

*command

โœ…

Must be "28"

string

*apiusername

โœ…

API username

string

*apipass

โœ…

API password

string

*sdate

โœ…

Start date for filtering wins. Use 0 to include everything. Format: Y-m-d H:i:s

string

*fdate

โœ…

End date for filtering wins. Use 0 to include everything. Format: Y-m-d H:i:s

string

complete

โŒ

If 1, all returned incomplete transactions will be marked as completed. Default: 0 (recommended first)

string

โš ๏ธ Important: It is highly recommended to first run the request with complete=0 and process all returned results. Once fully synchronized, you may run it again with complete=1โ€”but only if you're using a datetime filter for both start and finish date.

โš ๏ธ Warning: Do not use complete=1 without a datetime filter. Doing so may mark newer/older transactions as completed, including those that were not part of your most recent sync. This can result in missed or unprocessed transactions.
โœ…The safer alternative to sending complete=1 is to mark each transaction as resolved by following the instructions indicated in the Resolve Timed-Out TX advanced endpoint.


๐Ÿ“ƒ Sample JSON Response (returned by RGS-CWS)

[ { "uniqid": "TX0012345", "username": "u241_demo123", "date": "2025-07-04 15:33:22", "type": "win", "amount": "50.00", "gpid": "8473", "gameid": "5203", "response_status": "timeout" }, ... ]

๐Ÿ“ค Output Parameters (returned by RGS-CWS)

Parameter

Required

Description

Type

uniqid

โœ…

Unique transaction ID. Use this to ensure no double refunds.

string

username

โœ…

Player's username

string

date

โœ…

Date/time when the transaction was initiated

string

type

โœ…

Transaction type (win)

string

amount

โœ…

Transaction amount

string

gpid

โœ…

Game round ID

string

gameid

โœ…

Game ID

string

response_status

โœ…

Usually 0 for this type of events

string


โœ… Operator Action Required:

  1. Use this command to retrieve all timeout-flagged transactions.

  2. Cross-reference with your internal logs to confirm whether they were processed.

  3. Refund affected players manually if the transaction was processed after timeout.

  4. Avoid double-refunding by checking uniqid.

  5. Once confirmed, re-run with complete = 1 to mark records as synced. The safer alternative to sending complete=1 is to mark each transaction as resolved by following the instructions indicated in the Resolve Timed-Out TX advanced endpoint.