Skip to main content

API_007 Get Transaction Records

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

Endpoint to get transaction records from PHL.

Retrieve and return 1000 (configurable) at a time (based on time sequence in ascending order). This API will have to work together with API_008 Remove 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 ticket records.

PropertyField TypeMandatoryDescriptionSample value
orderIdStringYOrder no.20231016000001
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 ID20230926000001001
siteCodeStringYBet site codePCSO
siteStringYBet sitePCSO
gameTypeStringYGame typeSWER3
betTypeStringYBet type. See System Code – Bet Type CodeS
betAmountStringYBet amount10.00
betNumberStringYBet number5,7,8
drawIdStringYDraw ID2023092601
creationDateStringYBetting creation date in ISO 8601 with offset. Format: yyyy-MM-dd'T'HH:mm:ss'+08:00'2023-10-16T13:00:30+08:00
updatedDateStringYBetting updated date in ISO 8601 with offset. Format: yyyy-MM-dd'T'HH:mm:ss'+08:00'2023-10-16T13:00:30+08:00
bettingOddsListYBetting odds typesRefer bettingOdds

bettingOdds

PropertyField TypeMandatoryDescriptionSample value
codeStringYCode of oddsSWER3
oddsStringYThe odds450

Request Sample

{
"merchantCode": "PNLM000003"
}

Response Sample

[
{
"orderId": "20231016000001",
"username": "JOHNDOE",
"betCurrency": "PHP",
"totalBetAmount": "100.00",
"drawDate": "2023-10-16T14:0:00+08:00",
"roundId": "1",
"status": "POSTED",
"creationDate": "2023-10-16T13:01:35+08:00",
"updatedDate": "2023-10-16T13:01:35+08:00",
"bettings": [
{
"bettingId": "20230926000001001",
"siteCode": "PCSO",
"site": "PCSO",
"gameType": "SWER3",
"betType": "S",
"betAmount": "60.00",
"betNumber": "5,7,8",
"drawId": "2023092601",
"creationDate": "2023-10-16T13:00:30+08:00",
"updatedDate": "2023-10-16T13:00:30+08:00",
"bettingOdds": [
{
"code": "SWER3",
"odds": "450"
}
]
},
{
"bettingId": "20230926000001002",
"betSiteCode": "PCSO",
"betSite": "PCSO",
"gameType": "EZ2",
"betType": "R",
"betAmount": "40.00",
"betNumber": "05,17",
"drawId": "2023092601",
"creationDate": "2023-10-16T13:00:30+08:00",
"updatedDate": "2023-10-16T13:00:30+08:00",
"bettingOdds": [
{
"code": "EZ2",
"odds": "400"
}
]
}
]
}
]