This web service can be used to apply documents for the numbers on which vendors have imposed restriction for identification documents of the users. Click here for further details
2M APPLY DOCUMENT FOR A DID
Example URL:
Example Code in PHP:
<?php $curl_handle = curl_init(); $url = "http://newapi.didx.net/DidxApis/api/TransferIDText.php?UserID=700290&Pass=XXXX&CustomerName=Kamran&DIDNumber=14194643509&CustomerAddress=FBArea&ContactPhone=1234567890"; 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(); ?>
Input Fields:
-
- UserID
- Pass
- DIDNumber
- UserInfo
- URL
Returned Fields:
-
- UserInfo Array will contain the followin:
- UserInfo [0] = Customer Name
- UserInfo [1]~/np = Customer Address
- UserInfo ~np~[2] = Contact Phone
- UserInfo [3] = Email
- UserInfo [4] = Document ID
- UserInfo [5] = Document Type *
- UserInfo [6] = Document Detail
- UserInfo [7] = User Data (50B)
- DID = DID Number
- APTYPE = 1, 2 or 3
- 1=Documents Approved
- 2=Documents Refused
- 3=Documents Approved and Number allocated to DIDx account.
- USERDATA = value which was passed in UserInfo? array on 7th location.
Error Codes:
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 – Invalid User/Pass
-2 – InActive User
-3 – Invalid Account Type
-8 – Document already applied for this DID
-9 – Document already approved for this DID
-5 – DID does not exist
-10 – DID Already Sold
-11 – DID is already reserved by another customer.
1 – Document submitted successfully