Virtual Phone Line Activities

    • Method for SignIn user

  • Method:SignInCheck (UserID, Pass)
  • UserID:Numeric Account ID or the email address registered with virtualphoneline.com.
  • Pass: MD5 Encrypted Password
  • Return Type: Array
  • Return Values:
    • Upon successfull authentication, the method will return new user's numeric account number.

    • Error Codes:

    • -1 : Invalid UserID and Password

  • Example Code:

    • require_once "nusoap.php";

    • $parameters=array("9023848",md5("xxxxx"));
    • #print_r($parameters);
    • $soapclient= new soapclientnusoap('http://www.virtualphoneline.com/webservice/VPLWebService.php');
    • $SoapResult = array();
    • $SoapResult = $soapclient->call("SignInCheck", $parameters,'urn:SignInCheck);

    • print_r($SoapResult);

    • exit;


    • Method For User Information

  • Method:UserInformation (UserID, Pass)
  • UserID:Numeric Account ID or the email address registered with virtualphoneline.com
  • Pass: MD5 Encrypted Password
  • Return Type: Array
  • Return Values:
    • Upon successfull authentication, the method will return an array containing User Name , Email, Telephone Number, Balance, Total DIDs, Master Talk Time Balance, Total Individual Numbers Talk Time, SMS Configuration Code for Ringto

    • Error Codes:

    • -1 : Invalid Reseller UID and Password

  • Example Code:

    • require_once "nusoap.php";

    • $parameters=array("9023848",md5("xxxxx"));
    • #print_r($parameters);
    • $soapclient= new soapclientnusoap('http://www.virtualphoneline.com/webservice/VPLWebService.php');
    • $SoapResult = array();
    • $SoapResult = $soapclient->call("UserInformation", $parameters,'urn:UserInformation);

    • print_r($SoapResult);

    • exit;


    • Method For Get All numbers from user account

  • Method:GetUserNumbers (UserID, Pass)
  • UserID:Numeric Account ID or the email address registered with virtualphoneline.com
  • Pass: MD5 Encrypted Password
  • Return Type: Array
  • Return Values:
    • Upon successfull authentication, the method will return an array containing following feilds

    • Number
    • Forwarding Address/Number
    • Date of purchasing
    • Country of Number
    • City of Number
    • Rate center of Number
    • ID of Forwarding Address

    • Forwarding Address Type (e.g. PSTN, SIP, IAX, Google, MSN, FAX etc)

  • Example Code:

    • require_once "nusoap.php";

    • $parameters=array("9023848",md5("xxxxx"));
    • #print_r($parameters);
    • $soapclient= new soapclientnusoap('http://www.virtualphoneline.com/webservice/VPLWebService.php');
    • $SoapResult = array();
    • $SoapResult = $soapclient->call("GetUserNumbers", $parameters,'urn:GetUserNumbers);

    • print_r($SoapResult);

    • exit;


    • Method For changing forwarding settings (ringto) for DID number

  • Method:SetForwardingForNumber (UserID, Pass, Number, Forwarding Address, Forwarding ID)
  • UserID:Numeric Account ID or the email address registered with virtualphoneline.com
  • Pass: MD5 Encrypted Password
  • Return Type: String
  • Return Values:

    • Upon successfull authentication, the method will return "1", otherwise return the error codes.

    • -1. Invalid login ID/Pass
    • -2. Blank number provided
    • -3. Blank ringto address
    • -4. Blank Forwarding ID
    • -5. Invalid Forwarding ID
    • -10. Forbiden
    • -11. Invalid number for PSTN
    • -12. Not allowed on current customer rating.
    • -130. Blocked fowarding number
    • -131. Blocked fowarding number
    • -132. Blocked fowarding number
    • -133. Blocked fowarding number

  • Example Code: Following example show the fowarding setting for a number for PSTN:

    • $parameters=array("30000",md5("dsds"),"11111111","9999999","3");
    • #print_r($parameters);
    • $soapclient= new soapclient('http://www.virtualphoneline.com/webservice/VPLWebService.php');
    • $SoapResult = array();
    • $SoapResult = $soapclient->call("SetForwardingForNumber", $parameters,'urn:SetForwardingForNumber');

    • print_r($SoapResult);

    • exit;



    • Method For Master Adding Talk Time in the Account

  • Method:AddMasterTalkTime (UserID, Pass, Amount_In_Dollars)
  • UserID:Numeric Account ID or the email address registered with virtualphoneline.com
  • Pass: MD5 Encrypted Password
  • Amount:Amount of the talk time being added in Dollars/
  • Return Type: Array
  • Return Values:
    • Upon successfull authentication, the method will return "1"


  • Example Code:

    • $parameters=array("9023848",md5("a63dg"),"5");
    • #print_r($parameters);
    • $soapclient= new soapclientnusoap('http://www.virtualphoneline.com/webservice/VPLWebService.php');
    • $SoapResult = array();
    • $SoapResult = $soapclient->call("AddDIDTalkTime", $parameters,'urn:AddDIDTalkTime');

    • print_r($SoapResult);

    • exit;



    • Method For Adding Talk Time for DID number in the Account

  • Method:AddDIDTalkTime (UserID, Pass, DIDNumber, Amount_In_Dollars)
  • UserID:Numeric Account ID or the email address registered with virtualphoneline.com
  • Pass: MD5 Encrypted Password
  • DID Number:DID number where talk time is being added.
  • Amount:Amount of the talk time being added in Dollars
  • Return Type: String
  • Return Values:
    • Upon successfull authentication, the method will return "1" .

    • $parameters=array("9023848",md5("a63dg"),"15670001111","5");
    • #print_r($parameters);
    • $soapclient= new soapclientnusoap('http://www.virtualphoneline.com/webservice/VPLWebService.php');
    • $SoapResult = array();
    • $SoapResult = $soapclient->call("AddDIDTalkTime", $parameters,'urn:AddDIDTalkTime');

    • print_r($SoapResult);


    • Method For Get Country List

  • Method:GetDIDCountryList (UserID, Pass)
  • UserID:Numeric Account ID or the email address registered with virtualphoneline.com
  • Pass: MD5 Encrypted Password
  • Return Type: Array
  • Return Values:
    • Upon successfull authentication, the method will return an array containing Country Code, Country name

    • Error Codes:

    • -1 Invalid UserID and Password
    • -3 There are no country avaiable in our record.

    • $parameters=array("9023848",md5("a63dg"));
    • #print_r($parameters);
    • $soapclient= new soapclientnusoap('http://www.virtualphoneline.com/webservice/VPLWebService.php');
    • $SoapResult = array();
    • $SoapResult = $soapclient->call("GetDIDList", $parameters,'urn:GetDIDList);

    • print_r($SoapResult);



    • Method For Get Area List of country

  • Method:GetDIDAreaList (UserID, Pass, Country_Code)
  • UserID:Numeric Account ID or the email address registered with virtualphoneline.com
  • Pass: MD5 Encrypted Password
  • Country_CodeCountry Code in vpl supported format 9-1-211 for USA.
  • Return Type: Array
  • Return Values:
    • Upon successfull authentication, the method will return an array containing Area Code, Area name, Country Code

    • Error Codes:

    • -1 Invalid UserID and Password
    • -2 Invalid Country Code
    • There are no rated DIDs' Areas avaiable in our record.

    • $parameters=array("9023848",md5("a63dg"),"9-1-211");
    • #print_r($parameters);
    • $soapclient= new soapclientnusoap('http://www.virtualphoneline.com/webservice/VPLWebService.php');
    • $SoapResult = array();
    • $SoapResult = $soapclient->call("GetDIDAreaList", $parameters,'urn:GetDIDAreaList);

    • print_r($SoapResult);


    • Method For Get DID List

  • Method:GetDIDList (UserID, Pass, Area_Code)
  • UserID:Numeric Account ID or the email address registered with virtualphoneline.com
  • Pass: MD5 Encrypted Password
  • Area_CodeArea Code wuth country code.
  • Return Type: Array
  • Return Values:
    • Upon successfull authentication, the method will return an array containing DID Number, Country, Area, Setup Cost, Monthly Cost, Annual Cost, Freeminutes, Perminute After Freeminutes,DID Number, Country Code, Area Code, Channels, Time, ID, Documents needed, Documents Message,Rate Center,State Name.

    • Error Codes:

    • -1 Invalid UserID and Password
    • -3 DID not Available some error occured Please contact admin.

    • $parameters=array("9023848",md5("a63dg"),1567);
    • #print_r($parameters);
    • $soapclient= new soapclientnusoap('http://www.virtualphoneline.com/webservice/VPLWebService.php');
    • $SoapResult = array();
    • $SoapResult = $soapclient->call("GetDIDList", $parameters,'urn:GetDIDList);

    • print_r($SoapResult);


    • Method For Reserve DID

  • Method:ReserveDID (UserID, Pass, DIDNumber)
  • UserID:Numeric Account ID or the email address registered with virtualphoneline.com
  • Pass: MD5 Encrypted Password
  • DID NumberDID number To Researve DID.
  • Return Type: String
  • Return Values:
    • Upon successfull authentication, the method will return DIDNumber.

    • Error Codes:

    • -1 Invalid UserID and Password.
    • -3 Invalid DIDNumer.
    • $parameters=array("9023848",md5("a63dg"),"15670001111");
    • #print_r($parameters);
    • $soapclient= new soapclientnusoap('http://www.virtualphoneline.com/webservice/VPLWebService.php');
    • $SoapResult = array();
    • $SoapResult = $soapclient->call("ReserveDID", $parameters,'urn:ReserveDID);
    • print_r($SoapResult);


    • Method For UnReserve DID

  • Method:UnReserveDID (UserID, Pass, DIDNumber)
  • UserID:Numeric Account ID or the email address registered with virtualphoneline.com
  • Pass: MD5 Encrypted Password
  • DID NumberDID number to UnReserve.
  • Return Type: String
  • Return Values:
    • Upon successfull authentication, the method will return DIDNumber.
    • Error Codes:
    • -1 Invalid UserID and Password.
    • -3 Invalid DIDNumer.
    • $parameters=array("9023848",md5("a63dg"),"15670001111");
    • #print_r($parameters);
    • $soapclient= new soapclientnusoap('http://www.virtualphoneline.com/webservice/VPLWebService.php');
    • $SoapResult = array();
    • $SoapResult = $soapclient->call("UnReserveDID", $parameters,'urn:UnReserveDID);
    • print_r($SoapResult);


    • Method For Get Reserved DID

  • Method:getAllReservedDID (UserID, Pass)
  • UserID:Numeric Account ID or the email address registered with virtualphoneline.com
  • Pass: MD5 Encrypted Password
  • DID NumberDID number to UnReserve.
  • Return Type: Array
  • Return Values:
    • Upon successfull authentication, the method will return an array containing DID Number, DID, Setup Cost, Monthly Cost, Annual Cost, Perminute After Freeminutes, Country, Area, Country Code, Area Code, Date Time, Order ID, sDIDNumber,FreeMinutes,Channels,Amount,Billing Type,DIDX Setup,DIDX Monthly,RateCenter,StateName,Remarks,SPID,SMS,Voice.

    • $parameters=array("9023848",md5("a63dg"));
    • #print_r($parameters);
    • $soapclient= new soapclientnusoap('http://www.virtualphoneline.com/webservice/VPLWebService.php');
    • $SoapResult = array();
    • $SoapResult = $soapclient->call("getAllReservedDID", $parameters,'urn:getAllReservedDID);

    • print_r($SoapResult);


    • Method For Buy DID

  • Method:BuyDID (UserID, Pass,DID)
  • UserID:Numeric Account ID or the email address registered with virtualphoneline.com
  • Pass: MD5 Encrypted Password
  • DID NumberDIDNumber to purchase.
  • Return Type: String
  • Return Values:
    • Upon successfull authentication, the method will return DIDNumber.
    • Error code:

    • -1 Invalid UserID and Password.
    • -3 send a valid DID.
    • -4 No telephone numbers in the Cart.
    • -5 You don't have enough balance to buy these numbers.
    • -6 An error occured try again.
    • -7 DID need mnual approval.

    • $parameters=array("9023848",md5("a63dg"),$DID);
    • #print_r($parameters);
    • $soapclient= new soapclientnusoap('http://www.virtualphoneline.com/webservice/VPLWebService.php');
    • $SoapResult = array();
    • $SoapResult = $soapclient->call("getAllReservedDID", $parameters,'urn:getAllReservedDID);

    • print_r($SoapResult);