Skip to content

Freegame

Transfer-wallet call. Credit is moved onto a product, then a game URL is opened.

Authorization ​

Send Basic authentication on this call.

HTTP Request ​

Method and path below. {API_URL} is a host from the Authentication page. {YOUR_API_URL} is the operator callback host.

text
POST {API_URL}/free-game

Supported products ​

Product ids named for this call.

Product IDProduct Name
PGSOFTPG Soft

Content Type ​

Use Content-Type: application/json.

Request parameter description ​

Field name, type, and whether the caller must send it.

PropertyTypeRequiredDescription
player_namestringRequiredplayer name
free_game_namestringRequiredfree game name
expired_dateintRequiredexpired date
bet_amountintRequiredbet amount
game_countintRequiredgame count
game_idsstringRequiredgame ids
productIdstringRequiredProduct id from the API reference. values include PGSOFT
json
{
  "player_name": "example",
  "free_game_name": "example",
  "expired_date": 0,
  "bet_amount": "1.00",
  "game_count": 0,
  "game_ids": "example",
  "productId": "EXAMPLE"
}

Response parameter description ​

Field name, type, and whether the caller must send it.

PropertyTypeRequiredDescription
reqIdstringRequiredId for this response
codenumberRequiredStatus code number
messagestringRequiredShort status text
dataobjectRequiredPayload object
json
{
  "reqId": "req-1",
  "code": 0,
  "message": "ok",
  "data": {}
}

Response data parameter description ​

Field name, type, and whether the caller must send it.

PropertyTypeRequiredDescription
freeGameIdnumberRequiredfree Game Id
json
{
  "freeGameId": 0
}

Local editable copy. Not the official AMBSuperAPI documentation.