Chips Update API
Update the account balance and store the ledger.
Overview
The Chips Update API allows you to modify a player's chip balance in Pokerscript poker software. This API is essential for managing in-game transactions and adjusting chip amounts as needed.
Endpoint
POST http://admin.pokerurl.com/api/chips-update
Headers
Key
Value
Description
AuthKey
489j4erwginerwgirn
Client key provided by Pokerscript
Accept
application/JSON
Specifies response format
Content-Type
application/JSON
Specifies request format
Authorization
Bearer <UserToken>
User authentication token
Request Body
The request body should be formatted in JSON and include the following fields:
{
"chips": 100.00
}Parameters
Parameter
Type
Description
chips
float
Updated chip balance of the player
Note
UserTokenis obtained from the Login API and must be stored securely for future use.
Success Response
Upon a successful chip update, the API returns a 200 OK status with the following response:
Error Responses
If the request fails, an error response is returned with the corresponding status code:
401 Unauthorized
401 Unauthorized404 Not Found
404 Not Found500 Internal Server Error
500 Internal Server ErrorAdditional Notes
Ensure that the
UserTokenis valid and not expired.The
AuthKeyshould be provided by Pokerscript for API access.Always use secure storage for sensitive tokens and authentication keys.
Last updated
Was this helpful?