Appearance
The product calls the operator on this path.
HTTP Request
Method and path below. {API_URL} is a host from the Authentication page. {YOUR_API_URL} is the operator callback host.
text
POST {YOUR_API_URL}/adjustBetsContent Type
Use Content-Type: application/json.
Parameter Description
Field name, type, and whether the caller must send it.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | Required | Transaction id |
timestampMillis | number | Required | Unix time in milliseconds |
productId | string | Required | Product id from the API reference |
currency | string | Required | Currency code such as THB |
username | string | Required | Player login name |
txns | Txn[] | Required | List of transactions in this callback |
json
{
"id": "txn-1",
"timestampMillis": 1700000000000,
"productId": "EXAMPLE",
"currency": "THB",
"username": "player01",
"txns": []
}Adjust Bet transaction parameters ( txns )
Field name, type, and whether the caller must send it.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | Required | Transaction id |
status | string | Required | Status text for this call. values include OPEN |
roundId | string | Required | round Id |
gameCode | string | Required | Game code from the list-games call |
playInfo | string | Required | play Info |
betAmount | number | Required | bet Amount |
txnId | string | Optional | txn Id |
json
{
"id": "txn-1",
"status": "example",
"roundId": "example",
"gameCode": "example",
"playInfo": "example",
"betAmount": "1.00",
"txnId": "example"
}Response Description
Fields in a successful JSON body.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | Required | Transaction id |
statusCode | number | Required | Callback status code |
timestampMillis | number | Required | Unix time in milliseconds |
productId | string | Required | Product id from the API reference |
currency | string | Required | Currency code such as THB |
balanceBefore | number | Required | balance Before |
balanceAfter | number | Required | balance After |
username | string | Required | Player login name |
json
{
"id": "txn-1",
"statusCode": 0,
"timestampMillis": 1700000000000,
"productId": "EXAMPLE",
"currency": "THB",
"balanceBefore": "1.00",
"balanceAfter": "1.00",
"username": "player01"
}Request Example
Placeholder values only. Do not send these as real credentials.
