Set a destination

Description

Set up a new destination for the requested number.

Parameters

string Number

The TTNC number which is to be modified.

string Destination

The forwarding destination which is to be used for the supplied TTNC number. For multiple destinations please separate by a pipe ('|'). Destinations should be formatted with full country code (without 00 at the start), and full area dialling code. Please note; TTNC numbers can not be forwarded to other TTNC numbers.

Request

<?xml version="1.0"?>
<NoveroRequest>
    <Request target="NoveroNumbers" name="SetDestination" id="TestRequest">
        <Number>01245123456</Number>
        <Destination>447812345678|447845678901</Destination>
    </Request>
</NoveroRequest>
<?php
    require_once('TTNCApi.php');
    $Api = new TTNCApi('<username>', '<password>', '<VKey>');
    $Request = $Api->NewRequest('NoveroNumbers', 'SetDestination', 'TestRequest');
    $Request->SetData('Number', '01245123456');
    $Request->SetData('Destination', '447812345678|447845678901');
    $Api->MakeRequests();
    $Response = $Api->GetResponseFromId('TestRequest');
?>
require TTNCApi
api = TTNCApi.new('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroNumbers', 'SetDestination', 'TestRequest')
request.setdata('Number', '01245123456')
request.setdata('Destination', '447812345678|447845678901')
api.makerequest()
p request.getresponse()
api = TTNCApi('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroNumbers', 'SetDestination', 'TestRequest')
request.setdata('Number', '01245123456')
request.setdata('Destination', '447812345678|447845678901')
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", "SetDestination", "TestRequest");
        request.setData("Number", "01245123456");
        request.setData("Destination", "447812345678|447845678901");
        api.MakeRequests();
        TTNCParser dic = request.GetResponse();
     }
}

Response

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