Skip to main content

Send FreeSpin Operator Card

Sends a FREE SPIN card to a specified Player. Note: FREE SPIN cards include: Free Spin Card and Multiplier Free Spin Card (cardType 1, 2)

API Information

  • URLPOST /v2/items/usesimplefreespin
  • Authentication:Bearer Token
  • Encryption:Requests are encrypted using AES-256-GCM; responses are returned as plaintext JSON

request

Request Headers

POST /v2/items/use HTTP/1.1
Host: api.example.com
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
x-agentid: integratorNBTest04
x-timestamp: 1769746894501
x-nonce: 56ffd5ecd8a3a4457863a0bd7c298fb2
x-signature: 904e97bee2589b93e9747eed0346c68b23d8ff8b568dabaf4b94a5e89093df67

Request Parameters

Decrypted Request

{
"cipherText": "G0ZMDELeJwx+7JcIfIFOLJjkSzANPu6krGM2uw==..."
}

Parameters Before Encryption

{
"username": "VPSysDevTest001",
"spinId": "SystemItemTestTrans150",
"gameCode": "VP_230001_1",
"round": 3,
"maxWinAmount": 10,
"itemBet": 2,
"multiple": 1,
"expiredTime": "2026-04-12T00:00:00.000Z"
}
FieldTypeRequiredDescription
usernamestringYesPlayer Account
spinIdstringYesOperator Card Unique Identifier
gameCodestringYesGame Code
roundnumberYesNumber of Rounds; the Upper Limit is 100
maxWinAmountnumberNoMaximum Win Amount
itemBetnumberNoOperator Card Bet Amount; can be set by referring to the BetList. If not provided, the minimum Bet is used by default
multiplenumberNoFree Spin Multiplier; can be set to 1/2/3/5x. If not provided, 1x is used by default
expiredTimestringNoCard Expiration Time

Response

Success Response

{
"code": 0,
"message": "No error.",
"data": {
"itemId": "f2cb520579c8014452d6f521693a4aa8_VPItemTestTrans1042_ghjklhtombg"
},
"logUUID": "24cdc3b9-9fe8-44de-8391-a96863e46954"
}
FieldTypeDescription
codenumberResponse code; 0 indicates Success
messagestringResponse message
data.itemIdstringSystem Operator Card ID
logUUIDstringRequest tracking ID for troubleshooting and log queries

Error Response

Error Codes

CodeDescriptionHandling Suggestion
5Game is not foundThe game does not exist, has been taken offline, or does not support this currency; please confirm whether the gameCode is correct
8The User is not existThe Player does not exist; please create the Player first
78Operator card spinId was usedPlease use a different spinId; if you have questions, contact Customer Support
86Game is restrictedPlease refer to the Game List documentation or ask Customer Support
87Invalid item parameter valuePlease re-check the parameter rules or contact the Customer Support Team
88Only one item can be active at a time in the same gamePlease have the Player re-enter the corresponding game before sending again
89The item has not been used yet, or the spinId does not existPlease confirm whether the Item has already been used, or whether the Item has expired and no longer exists

Error Response Example

Operator Card Parameter Combination Error

{
"code": 87,
"message": "Invalid item parameter value",
"logUUID": "c6a85c7b-6108-4c88-95fb-fd79a1bda0a1"
}

Operator Card ID Duplicate Usage

{
"code": 78,
"message": "The spinID was used",
"logUUID": "24cdc3b9-9fe8-44de-8391-a96863e46954"
}

Important Notes

  1. spinId Uniqueness: Each spinId must be unique and cannot be reused
  2. Immediate Effect: This API sends the FREE SPIN card so that it takes effect immediately upon sending

Frequently Asked Questions

Q1: Does the FREE SPIN card sent by this API have an expiration time?

A: Yes. After it is sent, if the Player does not log in to the game to use it, it will be automatically settled 12 hours after being sent.

Q2: Can the FREE SPIN card sent by this API be cancelled?

A: Yes, it can be cancelled via the Cancel Operator Card API. However, this must be done before the Player enters the game to use it, or before it is automatically settled — otherwise it cannot be cancelled.

Q3: Is the Player notified after automatic settlement?

A: When the Player logs in to the game, a reminder message about the reward will be displayed, but the win animation will not be replayed. If there are multiple settlement records, only the most recent settlement record will be displayed.

Q4: If the expiration time is reached, is the Operator Card automatically settled or cancelled?

A: It is cancelled. The spinId of that Operator Card can never be reused afterward, and there will be no record of it in the backend or bet history.

Q5: If the Player leaves the game while a FREE SPIN animation is playing, will it be automatically settled?

A: If the Player exits partway through and later returns to the game, the FREE SPIN card will continue from where it left off, and it is only settled once all spins have been used.

Q6: How does the card's expiration time ("expiredTime") interact with automatic settlement?

A: Automatic settlement is fixed to occur 12 hours after sending. Therefore, if the card's expiration time is set to less than 12 hours, automatic settlement will be triggered first. If the card's expiration time is set to more than 12 hours after the time it was sent, it will be capped at 12 hours, in order to avoid a jarring experience for the Player.