Reseller Activities

URL: http://www.virtualphoneline.com/webservice/ResellerAPI.php

  • Method For Creating User under Reseller

  • Method:CreateUser (ResellerUID, ResellerPass)
  • UserID:Reseller UID of virtualphoneline.com
  • Pass: Reseller Password
  • Return Type: Array
  • Return Values:
    • Upon successfull authentication, the method will return new user's numeric account number.
    • Error Codes:

    • -1 : Invalid Reseller UID and Password

  • Example Code:


    • require_once "nusoap.php";

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

    • print_r($SoapResult);

    • exit;


  • Method For Assiging DID to user with forwarding settings

  • Method:AssignDID (ResellerUID, ResellerPass, $User_Account, $CountryCode, $ForwardingNumber (PSTN Only))
  • UserID:Reseller UID of virtualphoneline.com
  • Pass: Reseller Password
  • User_Account:User's numeric account number
  • Country Code:Country code of the DID number (note: this time by default 1567 number for USA and for UK 4420 would be assigned)
  • Forwarding number:Forwarding number , any landline or Mobile (PSTN)
  • Return Type: Array
  • Return Values:
    • Upon successfull authentication, the method will return an array containing DID number, monthly charges, setup charges, free minutes, per minute charges after free minutes

    • Error Code:

    • -1 : Invalid Reseller UID and Password
    • -2: Unable to get dids.
    • -3: Unable to get available dids.
    • -4: You do not have enough balance.
    • -5: Unable to reserve did.
    • -6: Unable to get reserved did.
    • -7: Unable to Unreserve did.
    • -8: Unable to buy did.
    • -9: did purchased but not added in your account contact admin.
    • -10: DID already reserved please try an other.
    • -12: Invalid forwarding number.
    • -13: Invalid country code .


  • Method For Adding Funds to user account

  • Method:AddFunds (ResellerUID, ResellerPass,$Amount, $User_account)
  • UserID:Reseller UID of virtualphoneline.com
  • Pass: Reseller Password
  • User_Account:User's numeric account number
  • Amount:Amount to be added as talktime to user account in $US
  • Return Type: Numeric
  • Return Values:

    • Upon successfull authentication, the method will return "1"

    • Error Code:

    • -1: Invalid Reseller UID and Password
    • -2: You are not allowed to add funds to this customer account.
    • -3: Please enter some valid amount.
    • -4: You do not have enough balance.
    • -5: Unable to reserve did.
    • -6: Limit exceed (max $10 per transaction)


  • Method For adding talktime to user account

  • Method:AddTalktime (ResellerUID, ResellerPass,$Amount, $User_account)
  • UserID:Reseller UID of virtualphoneline.com
  • Pass: Reseller Password
  • User_Account:User's numeric account number
  • Amount:Amount to be added as talktime to user account in $US
  • Return Type: Numeric
  • Return Values:
    • Upon successfull authentication, the method will return "1"

    • Error Code:

    • -1: Invalid Reseller UID and Password
    • -2: You are not allowed to add funds to this customer account.
    • -3: Please enter some valid amount.
    • -4: You do not have enough balance.
    • -6: Limit exceed (max $10 per transaction)


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

  • Method:ChangeForwarding (ResellerUID, ResellerPass, $DID, $ForwardingNumber)
  • UserID:Reseller UID of virtualphoneline.com
  • Pass: Reseller Password
  • DID:User's DID number
  • Forwarding Numbers:Landline or Mobile number (PSTN)
  • Return Type: Numeric
  • Return Values:
    • Upon successfull authentication, the method will return "1"

    • Error Code:

    • -1: Invalid Reseller UID and Password
    • -2: Invalid Forwarding Number.