Skip to main content

API_009 Get Settled Transaction Records

POSThttps://prod.phl8268.com/panel/api/integration/getSettledTxnRecords

Endpoint for merchant to get settled transaction records and bet number along with winning record (if any).

Retrieve and return 1000 (configurable) at a time (based on time sequence in ascending order). This API will have to work together with API_010 Remove Settled Transaction Records, or else it will always return earliest 1000 records.

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
merchantCodeStringYMerchant codePNLM000001

Response Schema

The response data is a List of settled ticket records.

PropertyField TypeMandatoryDescriptionSample value
orderIdStringYOrder no.20230414000001
usernameStringYUsername used from the platformJOHNDOE
betCurrencyStringYBet currency. See System Code – CurrencyPHP
totalBetAmountStringYTotal bet amount100.00
drawDateStringYDraw date in ISO 8601 with offset. Format: yyyy-MM-dd'T'HH:mm:ss'+08:00'2023-10-16T23:30:00+08:00
roundIdStringYRounds of the game1
statusStringYStatus. See System Code – StatusPOSTED
creationDateStringYTransaction creation date in ISO 8601 with offset. Format: yyyy-MM-dd'T'HH:mm:ss'+08:00'2023-10-16T23:00:25+08:00
updatedDateStringYTransaction updated date in ISO 8601 with offset. Format: yyyy-MM-dd'T'HH:mm:ss'+08:00'2023-10-16T23:00:25+08:00
bettingsListYEach bet number in the ticketRefer bettings

bettings

PropertyField TypeMandatoryDescriptionSample value
bettingIdStringYBet unique Id20230609095201001
siteCodeStringYBet site codePCSO
siteStringYBet sitePCSO
gameTypeStringYGame typeSWER3
betTypeStringYBet type. See System Code – Bet Type CodeS
betAmountStringYBet amount10.00
betNumberStringYBet number5,7,8
drawIdStringYDraw ID20230512001001
winStatusBooleanYBetting win statustrue
drawResultStringYDraw result number. Empties indicate result not yet approved.5,7,8
creationDateStringYTransaction creation date in ISO 8601 with offset. Format: yyyy-MM-dd'T'HH:mm:ss'+08:00'2023-10-16T23:00:25+08:00
updatedDateStringYTransaction updated date in ISO 8601 with offset. Format: yyyy-MM-dd'T'HH:mm:ss'+08:00'2023-10-16T23:00:25+08:00
bettingOddsListYBetting odds typesRefer bettingOdds
winningDetailsListYWinning type and amountRefer winningDetails

bettingOdds

PropertyField TypeMandatoryDescriptionSample value
codeStringYCode of oddsSWER3
oddsStringYThe odds450

winningDetails

PropertyField TypeMandatoryDescriptionSample value
codeStringYCode of oddsSWER3
amountStringYWinning amount4500.00

Request Sample

{
"merchantCode": "PNLM000003"
}

Response Sample

[
{
"orderId": "20230512023003",
"username": "JOHNDOE",
"betCurrency": "PHP",
"totalBetAmount": "15.00",
"drawDate": "2023-10-16T14:00:00+08:00",
"roundId": "1",
"status": "POSTED",
"creationDate": "2023-10-16T13:19:07+08:00",
"updatedDate": "2023-10-16T13:19:07+08:00",
"bettings": [
{
"bettingId": "20230609095201001",
"siteCode": "PCSO",
"site": "PCSO",
"gameType": "SWER3",
"betType": "S",
"betAmount": "10.00",
"betNumber": "5,7,8",
"drawId": "20230512001001",
"winStatus": true,
"drawResult": "5,7,8",
"creationDate": "2023-10-16T13:19:07+08:00",
"updatedDate": "2023-10-16T20:19:07+08:00",
"bettingOdds": [
{
"code": "SWER3",
"odds": "450"
}
],
"winningDetails": [
{
"code": "SWER3",
"amount": "4500.00"
}
]
},
{
"bettingId": "20230609099126003",
"betSiteCode": "PCSO",
"betSite": "PCSO",
"gameType": "EZ2",
"betType": "R",
"betAmount": "5.00",
"betNumber": "03,15",
"drawId": "20230512001002",
"winStatus": true,
"drawResult": "03,15",
"creationDate": "2023-10-16T13:19:07+08:00",
"updatedDate": "2023-10-16T20:19:07+08:00",
"bettingOdds": [
{
"code": "EZ2",
"odds": "400"
}
],
"winningDetails": [
{
"code": "EZ2",
"amount": "2000.00"
}
]
}
]
}
]