Appearance
Pay Tips POST
This request will be sent if player tips game provider (usually tips dealer in live-casino game). This callback is an optional callbacks, some product has this callback. Ex. Pretty gaming.
HTTP Request
POST {{ YOUR_API_URL }}/placeTips
Content Type
Type: application/json
Parameter Description
Property | Type | Required | Description |
---|---|---|---|
id | string | Required | Request id |
timestampMillis | number | Required | Requesting time |
productId | string | Required | Product id associated with the request Product |
currency | string | Required | Player's currency code in ISO 4217 (Example: "THB" ) |
username | string | Required | User id on agent system |
txns | Txn[] | Required | Transaction Id |
Pay Tips transaction parameters (txns
)
Property | Type | Required | Description |
---|---|---|---|
id | string | Required | Transaction ID |
status | string | Required | Bet status (Always TIPS ) |
roundId | string | Required | Round ID |
betAmount | number | Required | Stake amount (Sometimes this value is 0 due to no information from provider) |
Response Description
Property | Type | Required | Description |
---|---|---|---|
id | string | Required | Request id |
statusCode | number | Required | Status from StatusCode |
timestampMillis | number | Required | Responding time |
productId | string | Required | Product id associated with the request Product |
currency | string | Required | Player's currency codein ISO 4217 (Example: "THB" ) |
balanceBefore | number | Required | Player's balance before cancel |
balanceAfter | number | Required | Player's balance after cancel |
username | string | Required | User id on agent system |
Request Example
Request Body
json
{
"id": "26cf1ce1-8ee1-4bbf-9d42-872631054bcf",
"productId": "{{ Product ID }}",
"username": "foobar",
"currency": "THB",
"timestampMillis": 1712767012000,
"txns": [
{
"id": "Tip-001",
"status": "TIPS",
"roundId": "Tip-R-0001",
"betAmount": 1000
}
]
}
JSON response example:
json
{
"id": "c7197ce4-5a50-4397-a903-d78b135ade4c",
"statusCode": 0,
"timestampMillis": 1631599542878,
"productId": "{{ Product ID }}",
"currency": "THB",
"balanceBefore": 10000,
"balanceAfter": 9000,
"username": "foobar"
}
JSON response Fail example:
json
{
"id": "c7197ce4-5a50-4397-a903-d78b135ade4c",
"statusCode": 10001,
"productId": "{{ Product ID }}",
"timestampMillis": 1631599542878
}