Knowladge Base

2M APPLY DOCUMENT FOR A DID

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

 

Example URL:

http://newapi.didx.net/DidxApis/api/TransferIDText.php?UserID=700290&Pass=XXXX&CustomerName=Kamran&DIDNumber=14194643509&CustomerAddress=FBArea&ContactPhone=1234567890

 

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:

    1. UserID
    2. Pass
    3. DIDNumber
    4. UserInfo
    5. URL

 

Returned Fields:

    1. UserInfo Array will contain the followin:
    2. UserInfo [0] = Customer Name
    3. UserInfo [1]~/np = Customer Address
    4. UserInfo ~np~[2] = Contact Phone
    5. UserInfo [3] = Email
    6. UserInfo [4] = Document ID
    7. UserInfo [5] = Document Type *
    8. UserInfo [6] = Document Detail
    9. UserInfo [7] = User Data (50B)
    10. DID = DID Number
    11. APTYPE = 1, 2 or 3
    12. 1=Documents Approved
    13. 2=Documents Refused
    14. 3=Documents Approved and Number allocated to DIDx account.
    15. 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