Description

Display items currently in your basket. The basket is only stored across requests if using a SessionId as specified in Auth::SessionLogin.

Parameters

This function takes no parameters.

Request

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

Response

<?xml version="1.0"?>
<NoveroResponse>
    <Response target="Order" name="ViewBasket" Code="200" RequestId="View1">
        <Items>
            <Item>
            <Code>STANO</Code>
            <Description>Standard 01234 Number - 01234******</Description>
            <Display>Standard Number</Display>
            <Charge>10.00</Charge>
            <Number>01234******</Number>
            </Item>
 
            ...
 
        </Items>
        <ItemTotals>
            <TotalNet>10.00</TotalNet>
            <TotalVAT>2.00</TotalVAT>
            <TotalGrand>12.00</TotalGrand>
        </ItemTotals>
    </Response>
</NoveroResponse>