Skip to main content

PHL API Specification

Document Version: 1.11 · Date: 2025-12-23

This site documents the PHL integration APIs for merchants (operators). It covers two integration models, the common request/response envelope with MD5 signing, and the full endpoint reference.

Integration Models

ModelDescriptionWhere to start
Non-Seamless (Transfer Wallet)Player funds are transferred between the operator wallet and the PHL wallet. The operator polls PHL for transaction records.Transfer Wallet Integration
Seamless WalletThe player's balance stays in the operator wallet. PHL calls back into operator-hosted endpoints for balance, bet, cancel, and settlement.Seamless Wallet Integration

Merchant Information

Merchant needs to provide whitelist IP addresses during registration.

NameDescriptionSample Value
Merchant CodeMerchant account is a unique identifier in the system and starts with "PNLM" followed by 6 digitsPNLM000001
API Secret KeyThe key used for signing and verifying signatures, provided by our systemDMJ3L5ZEUAFHOLMH5PRWIHFEXVTGGE4Y
ReturnURLPlayer logout return URLhttps://platformhome.com

Environment

ItemValue
Base URLhttps://prod.phl8268.com/panel/api/integration
API Secret KeyProvided during merchant registration; used to invoke PHL endpoints and sign every request/response.
info

Every API in this specification uses the same envelope: the business payload is JSON, Base64-encoded into the data field, and signed with MD5. See Common Request Format and Common Response Format before calling any endpoint.

API Index

APINameCategory
API_001Player LoginGeneral
API_002Player LogoutGeneral
API_003Get Player BalanceTransfer Wallet
API_004Get Transfer Balance RecordTransfer Wallet
API_006Transfer Player BalanceTransfer Wallet
API_007Get Transaction RecordsGeneral
API_008Remove Transaction RecordsGeneral
API_009Get Settled Transaction RecordsGeneral
API_010Remove Settled Transaction RecordsGeneral
API_011Get User Transaction RecordsGeneral
API_012Get Ticket RecordGeneral
Get Player BalanceSeamless (implemented by operator)
Place BetSeamless (implemented by operator)
Cancel BetSeamless (implemented by operator)
SettleSeamless (implemented by operator)