Skip to main content

Place Bet (To be implemented by Operator)

POST{callbackURL}/placeBet

Endpoint for PHL to send bet information to seamless wallet site.

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
usernameStringYUsername used from the operator.
Note: such field should be unique across operator system
JOHNDOE
totalBetAmountDecimalYTotal Bet Amount100.00
currencyStringYBet Currency. See System Code – CurrencyPHP
bettingsListYEach bet number details in the ticketRefer bettings

bettings

PropertyField TypeMandatoryDescriptionSample value
bettingIdStringYBet unique Id20230609095201001
betCodeStringYBet CodePCSO
betSiteStringYBet SitePCSO
betTypeStringYBet type. See System Code – Bet Type CodeS
gameTypeStringYGame type. See System Code – Game Type CodeSWER3
betAmountDecimalYBet amount10.00
betNumberStringYBet number5,7,8
bettingOddsListYBetting odds typesRefer bettingOdds
isJackpotBooleanYIs type of jackpotfalse
drawIdStringYDraw Id20230824001001

bettingOdds

PropertyField TypeMandatoryDescriptionSample value
codeStringYWin type. See System Code – Win Type Code3D
oddsDecimalYThe odds900

Response Schema

PropertyField TypeMandatoryDescriptionSample value
codeStringYStatus code, refers Response Code8000
balanceAmountDecimalYBalance (real credit plus free credit)3900.00
currencyStringYCurrency wallet transfer to/from. See System Code – CurrencyPHP
realCreditDecimalNReal credit. If your company has not enabled the free credit function, then no need to return this attribute2000.00
freeCreditDecimalNFree credit. If your company has not enabled the free credit function, then no need to return this attribute1900.00
realCreditDeductionDecimalNThe deduction in real credit for this bet. If your company has not enabled the free credit function, then no need to return this attribute90.00
freeCreditDeductionDecimalNThe deduction in free credit for this bet. If your company has not enabled the free credit function, then no need to return this attribute10.00
lastSyncedDateStringYAccount balance update time in ISO 8601 with offset. Format: yyyy-MM-dd'T'HH:mm:ss'+08:00'2023-10-16T11:24:42+08:00
descStringNIf betting is not successful, then return description for this failure."Insufficient Balance"

Request Sample

{
"orderId": "20231009144217",
"requestDateTime": "2023-10-16T11:24:42+08:00",
"username": "JOHNDOE",
"totalBetAmount": 200,
"currency": "PHP",
"bettings": [
{
"bettingId": "20230609095201001",
"betCode": "PCSO",
"betSite": "PCSO",
"betType": "S",
"gameType": "SWER3",
"betAmount": 150,
"betNumber": "3,5,3",
"bettingOdds": [
{
"code": "3D",
"odds": 900
}
],
"isJackpot": false,
"drawId": "20230824001001"
},
{
"bettingId": "20230609095201002",
"betCode": "PCSO",
"betSite": "PCSO",
"betType": "S",
"gameType": "EZ2",
"betAmount": 50,
"betNumber": "03,09",
"bettingOdds": [
{
"code": "2D",
"odds": 95
}
],
"isJackpot": false,
"drawId": "20230824001001"
}
]
}

Response Sample

{
"balanceAmount": 9000,
"currency": "PHP",
"realCredit": 400,
"freeCredit": 110,
"realCreditDeduction": 90,
"freeCreditDeduction": 110,
"lastSyncedDate": "2023-10-16T11:24:42+08:00",
"desc": ""
}