Knowladge Base

UNRESERVE A DID

Method for Unreserve a DID

By using this method the user can Unreserve a DID. The user has to provide user id, password, DID Number (which he wants to Unreserve).

In case of successful Unreserve, the DID number itself would be returned. Otherwise, an error code would be returned which is described later.

Method Signature

function UnreserveDIDByNumber($UserID,$Password,$DIDNumber)

Example Usage

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

<?php

require_once “nusoap.php”;

$parameters=array(“714488″,”5422@dfg5″,”15670000000”);
$soapclient= new soapclient(‘http://api.didx.net/webservice/WebReserveDIDServer.php’);
$SoapResult = array();
$SoapResult = $soapclient->call(“UnreserveDIDByNumber”, $parameters,’urn:UnreserveDIDByNumber’);

print_r($SoapResult);

?>

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
-4 = This DID Number is already Sold
-5 = DID Number doesn’t exit