Change the status of a number


Suspend

Description

Suspend a number from receiving calls. This will turn the number off on the switch, but keep the number allocated to your account. Please also see Unsuspend.

Parameters

string Number The number which is to be suspended.
RequiredOptional

Request


  • XML
  • PHP
  • Ruby
  • Python
  • C#
        <?xml version="1.0"?>
        <NoveroRequest>
            <Request target="NoveroNumbers" name="Suspend" id="TestRequest">
                <Number>01245123456</Number>
            </Request>
        </NoveroRequest>
      
        <?php
            require_once('TTNCApi.php');
            $Api = new TTNCApi('<username>', '<password>', '<VKey>');
            $Request = $Api->NewRequest('NoveroNumbers', 'Suspend', 'TestRequest');
            $Request->SetData('Number', '01245123456');
            $Api->MakeRequests();
            $Response = $Api->GetResponseFromId('TestRequest');
        ?>
      
        require TTNCApi
        api = TTNCApi.new('<username>', '<password>', '<vkey>')
        request = api.newrequest('NoveroNumbers', 'Suspend', 'TestRequest')
        request.setdata('Number', '01245123456')
        api.makerequest()
        p request.getresponse()
      
        api = TTNCApi('<username>', '<password>', '<vkey>')
        request = api.newrequest('NoveroNumbers', 'Suspend', 'TestRequest')
        request.setdata('Number', '01245123456')
        api.makerequest()
        p request.getresponse()
      
        using System;
        using TTNCApi;

        class Program
        {
            static void Main(string[] args)
            {
                TTNCApi api = new TTNCApi("<username>", "<password>", "<vkey>");
                TTNCRequest request = api.NewRequest("NoveroNumbers", "Suspend", "TestRequest");
                request.setData("Number", "01245123456");
                api.MakeRequests();
                TTNCParser dic = request.GetResponse();
             }
        }
      

Response

  <?xml version="1.0"?>
  <NoveroResponse>
      <Response target="NoveroNumbers" name="Suspend" Code="200" RequestId="TestRequest">
          <ResponseMessage>This number has been suspended. Please note, this number will no longer receive calls while it is suspended.</ResponseMessage>
          <Success>This number has been suspended. Please note, this number will no longer receive calls while it is suspended.</Success>
      </Response>
  </NoveroResponse>

UnSuspend

Description

Unsuspend a number so that it will return to it's previous state. Please also see Suspend.

Parameters

string Number The number which is to be unsuspended.
RequiredOptional

Request


  • XML
  • PHP
  • Ruby
  • Python
  • C#
        <?xml version="1.0"?>
        <NoveroRequest>
            <Request target="NoveroNumbers" name="UnSuspend" id="TestRequest">
                <Number>01245123456</Number>
            </Request>
        </NoveroRequest>
      
        <?php
            require_once('TTNCApi.php');
            $Api = new TTNCApi('<username>', '<password>', '<VKey>');
            $Request = $Api->NewRequest('NoveroNumbers', 'UnSuspend', 'TestRequest');
            $Request->SetData('Number', '01245123456');
            $Api->MakeRequests();
            $Response = $Api->GetResponseFromId('TestRequest');
        ?>
      
        require TTNCApi
        api = TTNCApi.new('<username>', '<password>', '<vkey>')
        request = api.newrequest('NoveroNumbers', 'UnSuspend', 'TestRequest')
        request.setdata('Number', '01245123456')
        api.makerequest()
        p request.getresponse()
      
        api = TTNCApi('<username>', '<password>', '<vkey>')
        request = api.newrequest('NoveroNumbers', 'UnSuspend', 'TestRequest')
        request.setdata('Number', '01245123456')
        api.makerequest()
        p request.getresponse()
      
        using System;
        using TTNCApi;

        class Program
        {
            static void Main(string[] args)
            {
                TTNCApi api = new TTNCApi("<username>", "<password>", "<vkey>");
                TTNCRequest request = api.NewRequest("NoveroNumbers", "UnSuspend", "TestRequest");
                request.setData("Number", "01245123456");
                api.MakeRequests();
                TTNCParser dic = request.GetResponse();
             }
        }
      

Response

  <?xml version="1.0"?>
  <NoveroResponse>
      <Response target="NoveroNumbers" name="UnSuspend" Code="200" RequestId="TestRequest">
          <ResponseMessage></ResponseMessage>
          <Success></Success>
      </Response>
  </NoveroResponse>