PlaceOrder

Description

Places an order for the items in the current basket. The basket is only stored across requests if using a SessionId as specified in Auth::SessionLogin.

Parameters

int TokenId*

The unique identifier for a Token (saved card) on the account associated with the current API session. TokenIds can be retrieved from NoveroUser::GetCards.

int CV2*

The last 3-4 digits on the signature strip of the specified card. This must be provided for security reasons.

*If you are billed for Numbers and Services in arrears, these fields are not required, otherwise you must ensure card details are saved to your account before using this API function.

Request

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

Response

<?xml version="1.0"?>
<NoveroResponse>
    <Response target="Order" name="PlaceOrder" Code="200" RequestId="TestRequest">
        <OrderStatus>OK</OrderStatus>
        <InvoiceId>138800</InvoiceId>
    </Response>
</NoveroResponse>