Description

Changes the options of a card saved to the TTNC system.
###Parameters

int TokenIdThe TokenId of the card you are changing the options for.
bool SetDefault optionalSending this parameter as a value equivalent to TRUE will set the specified card as the Default Card for automatic billing. You can only have one Default Card per account. Setting a card to be the Default card will demote any other cards from being the Default Card.
bool EnableTopup optionalSending this parameter as a value equivalent to TRUE will set the specified card to be used as Auto Topup. Sending this parameter as a value equivalent to FALSE OR Omitting this parameter from the request, will set the card to NOT be used for Automatic Topup.
String Status optionalSet the specified saved card to be used (string Active) or not used (string Disabled) for automatic billing.

Request

<?xml version="1.0"?>
<NoveroRequest>
    <Request target="NoveroUser" name="ChangeCardOptions" id="TestRequest">
        <TokenId>15988</TokenId>
        <SetDefault>1</SetDefault>
        <EnableTopup>1</EnableTopup>
        <Status>Disabled</Status>
    </Request>
</NoveroRequest>
<?php
    require_once('TTNCApi.php');
    $Api = new TTNCApi('<username>', '<password>', '<VKey>');
    $Request = $Api->NewRequest('NoveroUser', 'ChangeCardOptions', 'TestRequest');\
    $Request->SetData('TokenId', 1);
    $Request->SetData('SetDefault', 1);
    $Request->SetData('EnableTopup', 1);
    $Request->SetData('Status', 'Disabled');
    $Api->MakeRequests();
    $Response = $Api->GetResponseFromId('TestRequest');
?>
require TTNCApi
api = TTNCApi.new('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroUser', 'ChangeCardOptions', 'TestRequest')
request.setdata('TokenId', 15988)
request.setdata('SetDefault', 1)
request.setdata('EnableTopup', 1)
request.setdata('Status', 'Disabled')
api.makerequest()
p request.getresponse()
api = TTNCApi('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroUser', 'ChangeCardOptions', 'TestRequest')
request.setdata('TokenId', 15988)
request.setdata('SetDefault', 1)
request.setdata('EnableTopup', 1)
request.setdata('Status', 'Disabled')
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("NoveroUser", "ChangeCardOptions", "TestRequest");
        request.setData("TokenId", 15988);
        request.setData("SetDefault", 1);
        request.setData("EnableTopup", 1);
        request.setData("Status", "Disabled");
        api.MakeRequests();
        TTNCParser dic = request.GetResponse();
     }
}
using System;
using TTNCApi;
 
class Program
{
    static void Main(string[] args)
    {
        TTNCApi api = new TTNCApi("<username>", "<password>", "<vkey>");
        TTNCRequest request = api.NewRequest("NoveroUser", "ChangeCardOptions", "TestRequest");
        request.setData("TokenId", 15988);
        request.setData("SetDefault", 1);
        request.setData("EnableTopup", 1);
        request.setData("Status", "Disabled");
        api.MakeRequests();
        TTNCParser dic = request.GetResponse();
     }
}

Response

<?xml version="1.0"?>
<NoveroResponse>
    <Response target="NoveroUser" name="ChangeCardOptions" Code="200" RequestId="TestRequest">
        <ResponseMessage>1</ResponseMessage>
        <Success>1</Success>
    </Response>
</NoveroResponse>