Method for Account Balance WSDL This method returns Account Balance and Status in the form of an array. The user is required to give User ID, Password as arguments and he’ll get Account Balance Information in the form of an array. In case of successful, the Account Balance & Status would be returned. Otherwise, an error code would be returned which is described later.
Example Code in PHP:
<?php $curl_handle = curl_init(); $url = "http://newapi.didx.net/DidxApis/api/WebGetAccountBalance.php?UserID=700290&Password=XXXX"; curl_setopt($curl_handle, CURLOPT_URL, $url); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true); $curl_data = curl_exec($curl_handle); curl_close($curl_handle); $response_data = json_decode($curl_data); print_r($response_data); die(); ?>
Successfull query will return array Information
In case of any incorrect information provided by the user or in case of no matching data, an error code will be returned. Error codes correspond to the following messages:
-1 = User ID does not exist
-2 = Your Password is Incorrect