By using this method the seller can see Document of a DID. The seller has to provide user id, password, DID Number (for which he wants to see documents).
Example Code in PHP:
<?php $curl_handle = curl_init(); $url = "http://newapi.didx.net/DidxApis/api/getDIDDocsInfo.php?UserID=700290&Password=XXXX&DIDNumber=123456789"; 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(); ?>
- DID Number (for which you wants to see the documents)
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
-3 = This DID Number is not in your account
-30 = Invalid Account Type