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}/adjustBalanceContent 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 balance transaction parameters ( txns )
Field name, type, and whether the caller must send it.
| Property | Type | Required | Description |
|---|---|---|---|
refId | string | Required | ref Id |
status | string | Required | Status text for this call values include DEBIT values include CREDIT |
amount | number | Required | Credit amount |
json
{
"refId": "example",
"status": "example",
"amount": "1.00"
}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.
