Description
Removes a specified item from your basket. The basket is only stored across requests if using a SessionId as specified in Auth::SessionLogin.
Parameters
string code | To remove a number from your basket, use the appropriate code which can be retrieved from Order::ViewBasket
For pricing, please refer to your pricing agreement or contact [email protected]. |
string number | The number to remove from your basket. |
Request
<?xml version="1.0"?>
<NoveroRequest>
<Request target="Order" name="RemoveFromBasket" id="TestRequest">
<code>STANO</code>
<number>01245830173</number>
</Request>
</NoveroRequest>
<?php
require_once('TTNCApi.php');
$Api = new TTNCApi('<username>', '<password>', '<VKey>');
$Request = $Api->NewRequest('Order', 'RemoveFromBasket', 'TestRequest');
$Request->SetData('code', 'STANO');
$Request->SetData('number', '01245830173');
$Api->MakeRequests();
$Response = $Api->GetResponseFromId('TestRequest');
?>
require TTNCApi
api = TTNCApi.new('<username>', '<password>', '<vkey>')
request = api.newrequest('Order', 'RemoveFromBasket', 'TestRequest')
request.setdata('code', 'STANO')
request.setdata('number', '01245830173')
api.makerequest()
p request.getresponse()
api = TTNCApi('<username>', '<password>', '<vkey>')
request = api.newrequest('Order', 'RemoveFromBasket', 'TestRequest')
request.setdata('code', 'STANO')
request.setdata('number', '01245830173')
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", "RemoveFromBasket", "TestRequest");
request.setData("code", "STANO");
request.setData("number", "01245830173");
api.MakeRequests();
TTNCParser dic = request.GetResponse();
}
}
Response
<?xml version="1.0"?>
<NoveroResponse>
<Response target="Order" name="RemoveFromBasket" Code="200" RequestId="TestRequest">
<ResponseMessage></ResponseMessage>
<Success></Success>
</Response>
</NoveroResponse>