Skip to main content

Send FreeSpin Operator Card

Send a FREE SPIN card to a specified Player.
Note: FREE SPIN cards include: Free Spin Card, Multiplied 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
roundnumberYesRound Count, with an Upper Limit of 100
maxWinAmountnumberNoMaximum Win Amount
itemBetnumberNoOperator Card Bet Amount. Refer to the BetList for valid values; 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 change the spinId. If you have any questions, contact Customer Support.
86Game is restrictedPlease refer to the Game List documentation or contact 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 re-check 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

Frequently Asked Questions

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

A: 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: Will the Player be notified after automatic settlement?

A: When the Player logs in to the game, a reward notification message 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 shown.

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

A: It will be cancelled, and that Operator Card's spinId can no longer be reused. There will be no record of it in the backend or in the bet history.

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

A: If the Player exits partway through and returns to the game, the free spins will continue until fully used, at which point it will be settled.

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

A: Automatic settlement always occurs 12 hours after the card is sent. Therefore, if the card's expiration time parameter 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 to avoid an inconsistent experience for the Player.