Cancel Freespins

๐ŸŽ Description

๐ŸŽฏ Command โ€œcancelfsโ€ โ€“ Cancel Freespins (Seamless Wallet)

This endpoint cancels a previously granted freespins session by marking all freespins as played, assigning no winnings that occured in the freespins session, and updating the status to reflect cancellation. Also known as command 30 in API VERSION 1.0

Upon execution:

  • The freespins session will be marked as completed (status = 0).

  • No wins from the freespins session will be credited to the user.

  • The related gameplay will also be marked as completed (status = "ok").


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

{ "command": "cancelfs", "login": "demoaccount", "gameid": "6857", "freespins_id": "1510", "expiry_date": "2024-01-01 00:00:00" }

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

Parameter

Mandatory

Description

Type

*command

โœ…

Must be "cancelfs"

string

*login

โœ…

Username (min. 6 characters). Required unless userid is used instead

string

*userid

โŒ

RGS-CWS user ID (used as an alternative to login, not both).

string

*gameid

โœ…

Game ID for which the freespins were granted. Must support freespins (check with Command 24)

string

*freespins_id

โœ…

Unique freespins round ID you want to cancel (obtained when you granted freespins via Command 29=grantfs)

string

โš ๏ธ You must provide either login or userid โ€” not both.


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

{ "status": "OK", "message": "Freespins successfully canceled", "freespins_id": "1510" }

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

ParameterRequiredDescriptionType

status

โœ…

"OK" for success or "ERROR" for failure

string

message

โœ…

Status explanation or error reason

string

freespins_id

โœ…

The freespins round ID that was cancelled

string


โœ… Operator Action Required

  • Use this command only for freespins that have not yet been completed by the user.

  • Always verify that the freespins_id is valid and matches the game.

  • A canceled freespins session will mark all spins as completed with no winnings applied.

  • A cancelled freespins session will mark the gameplay id as completed (not cancelled), but the winnings from freespins will not be granted to the user. Just the winnings from main spin will remain granted, as they were granted before the freespins round began.