Move funds
Request
URI: /moveFunds
Example usage: https://{callback_url}/moveFunds
The request is executed using the POST
method.
This method is required for a transaction transmission.
tip
Move Funds will be conducted on a static game ID, regardless of the game on Betby.
This ID must be specified by the support team during the integration.
Request parameters
Name | Type | Required | Description |
---|---|---|---|
token | string | Yes | Authorization code of user's session Restrictions: 1..250 |
userId | string | Yes | The unique identifier of the user |
gameId | integer | Yes | The identifier of the game |
extraData | string | Yes | Additional information about transactions in JSON format Examples may be viewed at Link example Can return an empty object |
eventId | string | Yes | For gameplay related balance change within a round |
bonusCode | string | No | Bonus code for freespin |
direction | string | Yes | Indicates either Debit or Credit debit : from wallet of the player credit : to wallet of the player Accepted values: debit , credit |
transactionId | string | Yes | Uniquely identifies the intent to change the balance |
eventType | string | Yes | Win - user win Lose - user lose BetPlacing , BetPayedAbort , BetPlacingAbort , SportBetCancel , Tip , PromoWin , technicalFix , DropAndWin , PromoStreamersDebit , PromoStreamersCredit , PromoStreamersBetPlacingAbort , PromoStreamersBetPayedAbort View the description of event types Here |
amount | decimal | Yes | The amount of the moved funds |
Response parameters
Name | Type | Required | Description |
---|---|---|---|
status | boolean | Yes | Response status code for Call back API Accepted values: true , false |
balance | decimal | Yes | Player's latest balance at the time of the request completion balance is the sum of realBalance and bonusBalance values Decimal format required Maximum possible value: 999999999999999999.99 999999999999.99999999 |
realBalance | decimal | No | Player's latest balance at the time of the request completion Decimal format required Maximum possible value: 999999999999999999.99 999999999999.99999999 |
bonusBalance | decimal | No | Player's latest balance at the time of the request completion Decimal format required Maximum possible value: 999999999999999999.99 999999999999.99999999 |
errors | object | No | Description of errors in case status = false |
errors.code | number | No | Error code |
errors.error | string | No | Error description |
Example of a successful response
Response: /moveFunds
{
"status": true,
"balance": 124001.55,
"realBalance": 124001.55,
"bonusBalance": 0,
}
Example of an unsuccessful response
Response: /moveFunds
{
"status": false,
"errors": {
"code": 400,
"error": "Description"
}
}