getVoxnumbers

Request Method: GET

Description: Retrieves all VoxNumbers and their details

URL: https://api.iovox.com:444/Voxnumbers?v=3&method=getVoxnumbers

The following parameters can be sent in the querystring

ParameterDescriptionDefault ValueData TypeMandatory
vAPI version to use
INTEGERYES
pageThe page number to return. Use together with limit to achieve paginated results1INTEGERNO
limitDetermines how many results to return. Use together with page to achieve paginated results. Maximum here is 2000020000INTEGERNO
req_fieldsComma separated list of abbreviated fields to return in response. nid=Node ID, nname=Node Name, lid=Link ID, lname=Link Name, as=Assigned Status, cs=Call Status, vn=VoxNumber, vnt=VoxNumber Type, vnco=VoxNumber Country, vnci=VoxNumber City, vnpd=VoxNumber Purchase Datelid,lname,as,cs,vn,
vnt,vnco,vnci,vnpd
STRINGNO
orderDetermines which field to order the output result by. Use a field name from the req_fields list and suffix with ASC or DESC for ascending or descending respectively. For example, "vnpd_DESC" will return results ordered by VoxNumber Purchase Date with the most recent first
STRINGNO
voxnumberReturns VoxNumber details under the specified VoxNumber (this must be internationalised e.g. 442012344321)
INTEGERNO
voxnumber_typeReturns all VoxNumbers under the specified VoxNumber Type: LOCAL, NATIONAL
STRINGNO
voxnumber_countryReturns all VoxNumbers in the specified country
STRINGNO
voxnumber_cityReturns all VoxNumbers in the specified city
STRINGNO
assigned_statusReturns all VoxNumbers based on the specified assigned status, i.e. whether or not it is assigned to a link: ASSIGNED or UNASSIGNED
STRINGNO
call_statusReturns all VoxNumbers based on the specified call status. The valid search criteria here are:
  • ON - All VoxNumbers that are switched on, including ON (Active) and ON (No Rules)
  • NO RULES - All VoxNumbers with call_status ON (No Rules). This will automatically switch to ON (Active) when a rule template is applied
  • ACTIVE - All VoxNumbers with call_status ON (Active). This will automatically switch to ON (No Rules) when a rule template is removed
  • OFF - All VoxNumbers with call_status OFF (On Hold). This will stay as OFF until the VoxNumber call_status is set to ON, even when Rule Templates are attached or removed

STRINGNO
link_idReturns the VoxNumber attached to the specified Link ID
STRINGNO
link_nameReturns the VoxNumbers attached to the specified Link Name
STRINGNO
node_idReturns the VoxNumbers attached to the specified Node ID
STRINGNO
node_nameReturns the VoxNumbers attached to the specified Node Name
STRINGNO
cat_idsReturns all data for the given category IDs. To produce an AND based search separate each by a comma and to produce an OR based, separate as array elements. For example, cat_ids[]=1,2&cat_ids[]=3,4 would search where category ID is (1 AND 2) OR (3 AND 4). Note: if a search is made for Category ID 5, potentially Location = London, results will include any items further down the tree, such as Notting Hill
ARRAYNO
outputSpecifying XML or JSON returns data in XML or JSON format XMLSTRINGNO

Result

Error Result

HTTP CodeError StringResolution
400API Version EmptyAdd a value for the v parameter in the query string
400API Version InvalidCorrect v parameter
400Request Method must be GET. x attemptedSwitch request method x to GET
400Page Number not an integerRemove non-numerics from page
400Limit not an integerRemove non-numerics from limit
400Limit must be between 1 and 20000Correct the limit parameter
400VoxNumber not an integerRemove non-numerics from voxnumber
400Assigned Status InvalidRemove assigned_status or change to ASSIGNED or UNASSIGNED
400Call Status InvalidRemove call_status or change to ON, NO RULES, ACTIVE or OFF
400Order Field InvalidCheck the allowed abbreviation fields in the documentation
400Order Direction InvalidCorrect the direction in the order.
400Output Type InvalidCorrect output parameter
500Internal Server ErrorRetry later

Success Result

<?xml version="1.0" encoding="utf-8"?>
 <response>
     <current_page>1<current_page>
     <total_pages>4<total_pages>
     <total_results>100<total_results>
     <results>
         <result>
             <link_id>1290</link_id>
             <assigned_status>ASSIGNED</assigned_status>
             <call_status>ON (No Rules)</call_status>
             <country_code>44</country_code>
             <voxnumber>441642112233</voxnumber>
             <voxnumber_type>LOCAL</voxnumber_type>
             <voxnumber_country>UNITED KINGDOM</voxnumber_country>
             <voxnumber_city>MIDDLESBROUGH</voxnumber_city>
             <purchase_date>2010-01-01 12:30:15</purchase_date>
         </result>
         <result>
             ...
         <result>
     </results>
 </response>