Error Handling + Error Codes

Operators should send the error response in the following format and data: Error Response + Example Object/Key in Response Object Type Description status Integer 1 Indicates FAIL, 0 indicates SUCCESS, error_id Integer Error ID error_code Integer Error code error_message String Optional. Human readable error message List of common errors codes and messages for all POST […]

EnterGame() API

Operator needs to make EnterGame() API request to RGS API which allows the player to enter the game. RGS API validates player’s credentials, creates and registers session ID (token) at DG back-end, builds the launch URL and sends it back to the caller. EnterGame() Request Type Input HTTP Method POST API URL https://<API_BASE_URL>/games/enter-game/ Headers “Content-Type”: […]

Debit() API

This API request debits a currency amount from a player’s balance. This is triggered every time a player plays a game. The response would contain information and details of any debited amounts. Debit() Request Type Input HTTP Method POST API URL https://<API_BASE_URL>/debit Headers “Content-Type”: “application/json” POST Parameters json object e.g.:{    “token”: “cc918a3e4dea45ef5c31d6e3b9dce4afed3c02eb”,    “account_id”: “259823”,    “amount”: 100,    “amount_type”: “real”,    “currency”: “GBP”,    “game_id”: 1,    “transaction_id”: “123456”,    “round_id”: 198909,    “game_type”: “slots”,    “game_name”: “testgamename”,    “note”: “debit”,    “bonus_id”: “test2147hff”} Parameters Type Description token String […]

Credit() API

This would be similar to the Debit API Request. This API request is made to credit a currency amount to a player’s account balance. This is made every time a player wins a monetary value from the games. Its response would contain the information of all credited amounts. Credit() Request Type Input HTTP Method POST […]

CreatePlayer() API

This API request enables the operator to register a player in DG system. Password sent in POST parameters by the operator must be encrypted. CreatePlayer() Request Type Input HTTP Method POST API URL https://<API_BASE_URL>/v1/player/create-player/ Headers “Content-Type”: “application/json” POST Parameters json object e.g.:{“api_key”: “1pghjl4v5apt2bks”,”player_id”: “1025”,”username”: “test_username”,”password”: “passt84fas28″,”currency”: “GBP”,”country”: “HK”,} Parameters Type Description api_key String API Key […]

Authentication

▶ Each API user must obtain a unique API key. ▶ Each request must contain the API key so each API request can be validated. API URLs + API Keys Any API URL points and API Keys items will be shared separately with operators.

API Requests from Provider to Operator

DragonGaming™ will require a few API requests from the operator API whilst launching games using the launch_url parameter. This launch_url would be sent as part of the get_games API response. The list and type of request can vary with each operator. Get Session Data API Request Get Player Balance API Request Debit API Request Credit […]

API Requests from Operator to Provider

The following examples are some API requests that are currently provided to operators and third parties. This non-exhaustive list is provided as a brief overview. The number and type of requests can increase, as per an Operator’s requirements. Get Games API Request Enter Game API Request Game Exit API Request Create Player API Request Update […]

API Requests from Operator to Provider

The following examples are some API requests that are currently provided to operators and third parties. This non-exhaustive list is provided as a brief overview. The number and type of requests can increase, as per an Operator’s requirements. Get Games API Request Game Launch API Request Game History API Request Unfinished Games API Request