API_001 Player Login
POST
https://prod.phl8268.com/panel/api/integration/loginEndpoint for merchant to login to PHL, system shall create a player account with currency wallet that merchant provide and return an URL for merchant to perform redirection.
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
| Property | Field Type | Mandatory | Description | Sample value |
|---|---|---|---|---|
| currency | String | Y | Currency code used. See System Code – Currency | PHP |
| username | String | Y | Username used from the platform | JOHNDOE |
Response Schema
| Property | Field Type | Mandatory | Description | Sample value |
|---|---|---|---|---|
| redirectUrl | String | Y | Redirect URL for merchant to navigate to PHL | https://phl8268.com |
Request Sample
{
"currency": "PHP",
"username": "JOHNDOE"
}
Response Sample
{
"redirectUrl": "https://phl8268.com/token=eyJ0eXAiOiJKV1QiLCJhbGciOiJI"
}