Cancel Bet (To be implemented by Operator)
POST
{callbackURL}/cancelBetEndpoint for PHL to send cancel bet information to seamless wallet site.
See the Cancel Bet retry mechanism for trigger points, retry frequency, and exit criteria.
Envelope
Please encode the following parameters into JSON, then encode them using Base64 and put them into the data field of a generic request/response. Signature: refer to Signature Description.
Request Schema
| Property | Field Type | Mandatory | Description | Sample value |
|---|---|---|---|---|
| orderId | String | Y | Order ID | 20231009144217 |
| requestDateTime | String | Y | Bet request date time in ISO 8601 with offset. Format: yyyy-MM-dd'T'HH:mm:ss'+08:00' | 2023-10-16T11:24:42+08:00 |
| reason | String | Y | Reason for bet cancellation. See Cancel Bet Reason Code | BET_REQ_TIME_OUT |
| username | String | Y | username | JOHNDOE |
Response Schema
| Property | Field Type | Mandatory | Description | Sample value |
|---|---|---|---|---|
| code | String | Y | Status code, refers Response Code | 8000 |
| balanceAmount | String | Y | Balance (real credit plus free credit) | 3900.00 |
| currency | String | Y | Currency wallet transfer to/from. See System Code – Currency | PHP |
| realCredit | String | Y | Real credit. If your company has not enabled the free credit function, then no need to return this attribute | 2000.00 |
| freeCredit | String | Y | Free credit. If your company has not enabled the free credit function, then no need to return this attribute | 1900.00 |
| lastSyncedDate | String | Y | Balance query time in ISO 8601 with offset. Format: yyyy-MM-dd'T'HH:mm:ss'+08:00' | 2023-10-16T11:24:42+08:00 |
Request Sample
{
"orderId": "20231009144217",
"requestDateTime": "2023-10-16T11:24:42+08:00",
"reason": "BET_REQ_TIME_OUT",
"username": "JOHNDOE"
}
Response Sample
{
"balanceAmount": 3900.5,
"currency": "PHP",
"realCredit": "2000.00",
"freeCredit": "1900.00",
"lastSyncedDate": "2023-10-16T11:24:42+08:00"
}