POST Client/UpdateClientBalance?DepositTransactionID={DepositTransactionID}
Updates the client balance.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| DepositTransactionID | integer |
None. |
Body Parameters
ApiUpdateClientBalanceRequestFilter| Name | Description | Type | Additional information |
|---|---|---|---|
| clientID |
Gets or sets the clientID. |
integer |
None. |
| clientTransactionTypeID |
Gets or sets the clientTransactionTypeID. |
integer |
None. |
| betID |
Gets or sets the betID. |
integer |
None. |
| transactionAmount |
Gets or sets the transactionAmount. |
decimal number |
None. |
| pendingBalanceChange |
Gets or sets the pendingBalanceChange. |
decimal number |
None. |
| taxRate |
Gets or sets the taxRate. |
decimal number |
None. |
| branchID |
Gets or sets the branchID. |
integer |
None. |
| userID |
Gets or sets the userID. |
integer |
None. |
| updateClientBalances |
Gets or sets the updateClientBalances. |
boolean |
None. |
| referenceComment |
Gets or sets the referenceComment. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"clientID": 1,
"clientTransactionTypeID": 2,
"betID": 3,
"transactionAmount": 4.0,
"pendingBalanceChange": 5.0,
"taxRate": 6.0,
"branchID": 7,
"userID": 8,
"updateClientBalances": true,
"referenceComment": "sample string 10"
}
application/xml, text/xml
Sample:
<ApiUpdateClientBalanceRequestFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SyX.Online.API.Models"> <userID>0</userID> <betID>3</betID> <branchID>7</branchID> <clientID>1</clientID> <clientTransactionTypeID>2</clientTransactionTypeID> <pendingBalanceChange>5</pendingBalanceChange> <referenceComment>sample string 10</referenceComment> <taxRate>6</taxRate> <transactionAmount>4</transactionAmount> <updateClientBalances>true</updateClientBalances> <userID>8</userID> </ApiUpdateClientBalanceRequestFilter>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiClientBalanceUpdateResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ResponseObject |
Gets or sets the response object. |
ApiClientBalanceUpdate |
None. |
| BonusResponseMessage | string |
None. |
|
| ResponseType |
Gets or sets the type of the response. |
integer |
None. |
| ResponseMessage |
Gets or sets the response message. |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ResponseObject": {
"BalanceAvailable": 1.0,
"BalancePending": 2.0
},
"BonusResponseMessage": "sample string 1",
"ResponseType": 2,
"ResponseMessage": "sample string 3"
}
application/xml, text/xml
Sample:
<ApiClientBalanceUpdateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SyX.Online.API.Models">
<ResponseMessage>sample string 3</ResponseMessage>
<ResponseType>2</ResponseType>
<BonusResponseMessage>sample string 1</BonusResponseMessage>
<ResponseObject>
<BalanceAvailable>1</BalanceAvailable>
<BalancePending>2</BalancePending>
</ResponseObject>
</ApiClientBalanceUpdateResponse>