Knowladge Base

APPLY DOCUMENT FOR THE NUMBERS WHICH HAVE DOCUMENT RESTRICTION

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

Method Signature

1. For Text Documents .

Method: TransferIDText($UserID,$Pass,$DIDNumber,$UserInfo,$ReturnURL)

2. For Image Document.

Method: TransferIDImage($UserID,$Pass,$DIDNumber,$UserInfo,$ImageFile,$ReturnURL)

$UserID – $Pass : DIDx User ID and Password
$DIDNumber: DID number which is being applied.

$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)

  • Values from 1 to 8: (See API GetDIDInfo)

1 National Identity Card
2 Passport
3 Nation ID Card / Passport
4 Driving License
6 National Identity Card / Driving License
7 Passport / Driving License
8 Others

$ImageFile will contain base64 Image Data.

$ReturnURL: will contain the URL, on which the user will be notified.
Http posted variables

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.

Example Usage

We are providing a sample code in PHP that accesses and uses this service.

For Method TransferIDText

http://newapi.didx.net/DidxApisWithJsonResponse/api/TransferIDText.php?UserID=700290&Pass=Password123&CustomerName=Abc&DIDNumber=14194643534&CustomerAddress=XYZ&ContactPhone=1234567834

For Method TransferIDImage

http://newapi.didx.net/DidxApisWithJsonResponse/api/TransferIDImage.php?UserID=700232&Pass=3423242&CustomerName=ABC&DIDNumber=14194643534&CustomerAddress=XYZ&ContactPhone=1234567834=ImageFile=/9j/4AAQSkZJRgABAQEAYABgAAD/4QBsRXhpZgAASUkqAAgAAAADADEBAgAHAAAAMgAAABICAwACAAAAAgACAGmHBAABAAAAOgAAAAAAAABHb29nbGUAAAMAAJAHAAQAAAAwMjIwAqAEAAEAAADoBAAAA6AEAAEAAADCAgAAAAAAAP/bAEMABgQFBgUEBgYFBgcHBggKEAoKCQkKFA4PDBAXFBgYFxQWFhodJR8aGyMcFhYgLCAjJicpKikZHy0wLSgwJSgpKP/bAEMBBwcHCggKEwoKEygaFhooKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKP/CABEIAsIE6AMBIgACEQEDEQH/xAAcAAACAwEBAQEAAAAAAAAAAAAAAQIDBAUGBwj/xAAaAQEBAQEBAQEAAAAAAAAAAAAAAQIDBAUG/9oADAMBAAIQAxAAAAH5STREkhEgiSCIwQwRIIkg

The functions may return

-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