Skip to main content

Cancel Bet (To be implemented by Operator)

POST{callbackURL}/cancelBet

Endpoint 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

PropertyField TypeMandatoryDescriptionSample value
orderIdStringYOrder ID20231009144217
requestDateTimeStringYBet 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
reasonStringYReason for bet cancellation. See Cancel Bet Reason CodeBET_REQ_TIME_OUT
usernameStringYusernameJOHNDOE

Response Schema

PropertyField TypeMandatoryDescriptionSample value
codeStringYStatus code, refers Response Code8000
balanceAmountStringYBalance (real credit plus free credit)3900.00
currencyStringYCurrency wallet transfer to/from. See System Code – CurrencyPHP
realCreditStringYReal credit. If your company has not enabled the free credit function, then no need to return this attribute2000.00
freeCreditStringYFree credit. If your company has not enabled the free credit function, then no need to return this attribute1900.00
lastSyncedDateStringYBalance 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"
}