Appearance
Cancel Tips POST
HTTP Request
POST {{ YOUR_API_URL }}/cancelTips
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 |
Cancel Tips transaction parameters (txns
)
Property | Type | Required | Description |
---|---|---|---|
id | string | Required | Bet id |
status | string | Required | Bet status (Should always be REFUND) |
roundId | string | Required | Round id |
betAmount | number | Required | Stake amount |
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": "REFUND",
"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": 8600,
"balanceAfter": 8700,
"username": "testProduct1"
}
JSON response Fail example:
json
{
"id": "c7197ce4-5a50-4397-a903-d78b135ade4c",
"statusCode": 10001,
"productId": "{{ Product ID }}",
"timestampMillis": 1631599542878
}