Knowladge Base

2B RESERVE A DID NUMBER

Method for Reserve a DID By using this method the user can reserve a DID. The user has to provide user id, password, DID Number (which he wants to reserve). In case of successful reserve, the DID number itself would be returned. Otherwise, an error code would be returned which is described later.

 

Example URL:

http://newapi.didx.net/DidxApis/api/ReserveDIDByNumber.php?UserID=700290&Password=XXXX&DIDNumber=123456789

 

Example Code in PHP:

<?php

$curl_handle = curl_init();

$url = "http://newapi.didx.net/DidxApis/api/ReserveDIDByNumber.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();

?>

 

Input Fields:

    1. UserID
    2. Password
    3. DIDNumber

 

Returned Fields:

None

 

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 ID & Password

-3 = This DID Number is already Reserved

-4 = This DID Number is already Sold

-5 = DID Number doesn’t exit