Description

Adds an item to your basket. Currently only adding numbers to your basket is available. Please check back later for updates to this functions features.

Parameters

string numberThe number you are adding to your basket.
string typeThe type of item you are adding. Currently only support 'number'.

Request

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

Response

<?xml version="1.0"?>
<NoveroResponse>
    <Response target="Order" name="AddToBasket" Code="200" RequestId="TestRequest">
        <ResponseMessage>Added to Basket</ResponseMessage>
        <Success>Added to Basket</Success>
    </Response>
</NoveroResponse>