WalletWithdraw() API

This API request enables the operator to get the remaining funds from provider’s game wallet to operator’s main wallet. It updates the game wallet by deducting the requested withdrawal amount.

WalletWithdraw() Request

TypeInput
HTTP MethodPOST
API URLhttps://<API_BASE_URL>/wallet/wallet-withdraw/
Headers"Content-Type": "application/json"
POST Parametersjson object e.g.:
{
"api_key": "1pghjl4v5apt2bks",
"username": "test_username",
"password": "passt84fas28",
"amount": 200.0,
"transaction_id": "10032"
}
ParametersTypeDescription
api_keyStringAPI Key allocated to each front-end
usernameStringUsername of the player
passwordStringPassword of the player
amountDecimalAmount to be deposited into DG game wallet
transaction_idStringTransaction ID

WalletWithdraw() Response + Example

{
	"result": {"status": "success",
                  "amount": 200, 
                  "currency": "GBP"
                  }
}
Object/Key in Response ObjectTypeDescription
resultJSON ObjectKey result contains the JSON object as value.
statusStringResponse status
amountDecimalPlayer’s balance after withdraw
currencyString3 letter ISO currency code