getBlockedNumbers

Request Method: GET

Description: Retrieves a list of Blocked Numbers and their Details.

URL: https://api.iovox.com:444/Rules?v=3&method=getBlockedNumbers

The following parameters can be sent in the querystring:

ParameterDescriptionDefault ValueData TypeMandatory
vAPI version to use
INTEGERYES
numberReturns all Blocked Numbers with this Number
STRINGNO
operatorReturns all Blocked Numbers with this Operator
STRINGNO
in_or_outReturns all Blocked Numbers with respectively in or out
STRINGNO
req_fieldsComma separated list of abbreviated fields to return in response. no = Number, op = Operator, ioo = Inbound Or Outbound, nn = Number Notes, rules = Special time based rulesno,op,ioo,nnSTRINGNO
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, "no_DESC" will return results ordered by Number on descending alfabetical order.no_ASCSTRINGNO
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
400Output Type InvalidCorrect output parameter
400Order Direction InvalidCorrect the direction in the order.
400Required Fields Invalid: fieldone,fieldtwoCorrect or remove fieldone and fieldtwo
400Order Field InvalidCheck the allowed abbreviation fields in the documentation
400Number does not existCorrect number parameter
400In Or Out InvalidCorrect in_or_out parameter
400Operator InvalidCorrect operator parameter
500Internal Server ErrorRetry later

Success Result

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <current_page>1</current_page>
    <total_pages>1</total_pages>
    <total_results>4</total_results>
    <results>
        <result>
            <number>447429651520</number>
            <in_or_out>in</in_or_out>
            <operator>equals</operator>
            <notes></notes>
            <default>BLOCK</default>
            <rules/>
        </result>
        <result>
            <number>447429651521</number>
            <in_or_out>in</in_or_out>
            <operator>equals</operator>
            <notes></notes>
            <default>ALLOW</default>
            <rules/>
        </result>
        <result>
            <number>447429651522</number>
            <in_or_out>in</in_or_out>
            <operator>equals</operator>
            <notes></notes>
            <default>BLOCK</default>
            <rules>
                <rule>
                    <links>
                        <link_id>01</link_id>
                    </links>
                    <time_template>Christmas</time_template>
                    <blocking_type>ALLOW</blocking_type>
                </rule>
                <rule>
                    <links>
                        <link_id>02</link_id>
                    </links>
                    <time_template>Christmas</time_template>
                    <blocking_type>ALLOW</blocking_type>
                </rule>
                <rule>
                    <links/>
                    <time_template>Christmas</time_template>
                    <blocking_type>ALLOW</blocking_type>
                </rule>
                <rule>
                    <links>
                        <link_id>03</link_id>
                    </links>
                    <time_template/>
                    <blocking_type>ALLOW</blocking_type>
                </rule>
                <rule>
                    <links>
                        <link_id>04</link_id>
                    </links>
                    <time_template/>
                    <blocking_type>ALLOW</blocking_type>
                </rule>
            </rules>
        </result>
        <result>
            <number>447429651523</number>
            <in_or_out>in</in_or_out>
            <operator>equals</operator>
            <notes></notes>
            <default>ALLOW</default>
            <rules>
                <rule>
                    <links>
                        <link_id>01</link_id>
                    </links>
                    <time_template>Christmas</time_template>
                    <blocking_type>BLOCK</blocking_type>
                </rule>
                <rule>
                    <links>
                        <link_id>02</link_id>
                    </links>
                    <time_template>Christmas</time_template>
                    <blocking_type>BLOCK</blocking_type>
                </rule>
                <rule>
                    <links/>
                    <time_template>Christmas</time_template>
                    <blocking_type>BLOCK</blocking_type>
                </rule>
                <rule>
                    <links>
                        <link_id>03</link_id>
                    </links>
                    <time_template/>
                    <blocking_type>BLOCK</blocking_type>
                </rule>
                <rule>
                    <links>
                        <link_id>04</link_id>
                    </links>
                    <time_template/>
                    <blocking_type>BLOCK</blocking_type>
                </rule>
            </rules>
        </result>
    </results>
</response>