• Your Cart Is Empty!
Your address will show here +12 34 56 78
API command for developers
Looking for telecom solutions without needing a developer? Our user portal has you covered! 
  • Text Hover
Ordering a Port, Checking the Status, and Deleting a Port Request
There are several functions for porting.
checkPortLnp() simply checks if a number is available to be ported, the command takes one parameter, a phone number, and returns success if the number passed in is available to be ported.
Once the number is checked, it can be ported. orderLnp() takes two parameters, an array of settings, and an array of files.
orderLnp(param, files): all parameters should be sent in as dictionary arrays:
param array:
    port_number: the 10 digit number. This can be multiple numbers (separated by a comma)! Provided they are from the same carrier. (Required)
    did_mode: what the number is used for (Required)
        0 - voice
        1 - fax
    route_to: the trunk it can be automatically routed to, voice DID only (Optional)
    partial_port: include other services (Required)
        0 - no
        1 - yes
    extra_services: used in tandem with partial port, any additional services (Optional)
    location: two options (Required)
    company: if location is set to Business (Required/Optional)
    wireless_no: is it a wireless number (Required)
        0 - no
        1 - yes
    libd_list: LIDB/Directory (Required)
        0 - no (recommended)
        1 - yes
    provider_name: the name of the company who owns the number (Required)
    account_no: account number from the company (Required)
    user_name: username listed on a statement from the company (Required)
    authorize_contact: an authorized contact on the account (Required)
    contact_title: (Required)
    street_no: the street number (Required)
    dir_prefix: prefix Cardinal Direction for the street, N, NW, S, SE (Optional)
    street_name: the street name (Required)
    dir_suffix: suffix Cardinal Direction for the street, N, NW, S, SE (Optional)
    service_unit: Suite, Unit, Apartment (Optional/Required)
    city: the city name (Required)
    states: the service state (Optional)
    zipcode: the service zip code (Required)
    billing_telephone: the number responsible for billing information (Required)
file array:
    bill_file: file of the phone bill. GIF, JPG, PNG, or PDF. Up to 2mb (Required)
The statusLnp() function will give the user insight into the status of their submission. Simply run the function with the phone number as a parameter.
deleteLnp() will delete the port request from the system.
$api = new QBapi();
$params = array("port_number"=>"XXXXXXXXXX, XXXXXXXXXX", "did_mode"=>0, "route_to"=>"SIPTRUNKNAME", "partial_port"=>0, "location"=>"Business", "company"=>"QuestBlue", "wireless_no"=>0, "lidb_list"=>0, "provider_name"=>"Cingular", "account_no"=>"24398430990", "user_name"=>"Arnold", "authorize_contact"=>"Arnold 9844561010", "contact_title"=>"Employee", "street_no"=>"1234", "street_name"=>"S Wilmington Street", "city"=>"Raleigh", "states"=>"NC", "zipcode"=>"27601", "billing_telephone"=>"9841230101");
$file = array("bill_file"=>"bill.pdf");
$result = $api->orderLnp($params,$file);
echo '<pre>';
View All Current and Completed Ports
It may be necessary to view all of the ports that are currently happening in your system.
This is achieved with the listLnp() function.
It takes no parameters and is called alone.
You will receive a list of ports with the number, order date, type, status, the exchange provider, and the FOC date.
$api = new QBapi();
$result = $api->listLnp();
echo '<pre>';
[active_lnp] => array
   [0] => SimpleXMLElement Object
      [port_number] => 7204779876
      [order_date] => 2018-06-12 14:36:45
      [type] => voice
      [status] => completed
      [exchange_provider] => Verizon
      [foc_date] => 2018-06-15