Exigo Web Services API v2025.11.7.6

ValidateWalletAccount

Validates a Wallet Account.

Input Properties

ValidateWalletAccountRequest
PropertyData TypeNotes
WalletAccountNumberStringOptional.
WalletTy Int32Required When ValidateWalletAccountOnFile = false.
MemoStringOptional.
CustomerIDInt32Optional. Unique numeric identifier for a customer record.
CustomerKeyStringOptional. Unique alpha numeric identifier for customer record. Exeption will occur if CustomerID & CustomerKey are provided.
OrderIDInt32Optional. Unique numeric identifier for order record.
OrderKeyStringOptional. Unique alpha numeric identifier for order record. Exeption will occur if OrderID & OrderKey are provided.
Other1 StringOptional.
Other2 StringOptional.
Other3 StringOptional.
Other4 StringOptional.
Other5 StringOptional.
Other6 StringOptional.
Other7 StringOptional.
Other8 StringOptional.
Other9 StringOptional.
Other10 StringOptional.
ValidateWalletAccountOnFileBooleanOptional. Use this option to validate information already on file.
WalletAccountType AccountWalletTypeOptional. To be used when ValidateWalletAccountOnFile = true. By Default will be Primary.
WarehouseIDInt32Optional.
EmailStringOptional.
PhoneStringOptional.
CurrencyCode StringOptional.
ClientIpAddressStringOptional.
BillingNameStringOptional.
BillingAddress1StringOptional.
BillingAddress2StringOptional.
BillingCityStringOptional.
BillingState StringOptional.
BillingZipStringOptional.
BillingCountry StringOptional.
AmountDecimalOptional.

Output Properties

ValidateWalletAccountResponse
PropertyData TypeNotes
AuthorizationCodeString
MessageString
SuccessBoolean
DisplayMessageString

Http Request

POST https://yourcompany-api.exigo.com/3.0/payment/validate/wallet HTTP/1.1
Content-Type: application/json
Authorization: Basic base64Encoded(yourlogin@yourcompany:yourpassword)

{ "walletAccountNumber": "", "walletTy": 1, "memo": "", "customerID": 1, "customerKey": "DDks8235txcid", "orderID": 1, "orderKey": "DDks8235txcid", "validateWalletAccountOnFile": true, "walletAccountType": null, "warehouseID": 1, "email": "1", "phone": "1", "currencyCode": "usd", "clientIpAddress": "1", "billingName": "", "billingAddress1": "", "billingAddress2": "", "billingCity": "", "billingZip": "", "amount": null }

Http Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: length

{ "authorizationCode": "", "message": "", "success": true, "displayMessage": "", "result": null }

Soap Request

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /3.0/ExigoApi.asmx HTTP/1.1
Host: sandboxapi4.exigo.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://api.exigo.com/ValidateWalletAccount"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ApiAuthentication xmlns="http://api.exigo.com/"> <LoginName>string</LoginName> <Password>string</Password> <Company>string</Company> <Identity>string</Identity> <RequestTimeUtc>dateTime</RequestTimeUtc> <Signature>string</Signature> </ApiAuthentication> </soap:Header> <soap:Body> <ValidateWalletAccountRequest xmlns="http://api.exigo.com/"> <WalletAccountNumber>string</WalletAccountNumber> <WalletTy>int</WalletTy> <Memo>string</Memo> <CustomerID>int</CustomerID> <CustomerKey>string</CustomerKey> <OrderID>int</OrderID> <OrderKey>string</OrderKey> <Other1>string</Other1> <Other2>string</Other2> <Other3>string</Other3> <Other4>string</Other4> <Other5>string</Other5> <Other6>string</Other6> <Other7>string</Other7> <Other8>string</Other8> <Other9>string</Other9> <Other10>string</Other10> <ValidateWalletAccountOnFile>boolean</ValidateWalletAccountOnFile> <WalletAccountType>Primary or Secondary or Third or Fourth or Fifth</WalletAccountType> <WarehouseID>int</WarehouseID> <Email>string</Email> <Phone>string</Phone> <CurrencyCode>string</CurrencyCode> <ClientIpAddress>string</ClientIpAddress> <BillingName>string</BillingName> <BillingAddress1>string</BillingAddress1> <BillingAddress2>string</BillingAddress2> <BillingCity>string</BillingCity> <BillingState>string</BillingState> <BillingZip>string</BillingZip> <BillingCountry>string</BillingCountry> <Amount>decimal</Amount> </ValidateWalletAccountRequest> </soap:Body> </soap:Envelope>

Soap Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ValidateWalletAccountResult xmlns="http://api.exigo.com/"> <AuthorizationCode>string</AuthorizationCode> <Message>string</Message> <Success>boolean</Success> <DisplayMessage>string</DisplayMessage> </ValidateWalletAccountResult> </soap:Body> </soap:Envelope>

C# Rest Client

Install Nuget package Exigo.Api.Client

try

{

    //Create Api Client

    var api = new ExigoApiClient("yourcmpany", "yourlogin", "yourpassword");

 

    //Create Request

    var req = new ValidateWalletAccountRequest();

 

    req.WalletAccountNumber = "1";

    req.WalletTy = 1;               //Required When ValidateWalletAccountOnFile = false

    req.Memo = "1";

    req.CustomerID = 1;             //Unique numeric identifier for a customer record.

    req.CustomerKey = "DDks8235txcid";//Unique alpha numeric identifier for customer record. Exeption will occur if CustomerID & CustomerKey are provided.

    req.OrderID = 1;                //Unique numeric identifier for order record.

    req.OrderKey = "DDks8235txcid"//Unique alpha numeric identifier for order record. Exeption will occur if OrderID & OrderKey are provided.

    req.ValidateWalletAccountOnFile = true;//Optional. Use this option to validate information already on file

    req.WalletAccountType = AccountWalletType.Primary;      //Optional. To be used when ValidateWalletAccountOnFile = true. By Default will be Primary.

    req.WarehouseID = 1;            //Optional

    req.Email = "1";

    req.Phone = "1";

    req.CurrencyCode = "usd";

    req.ClientIpAddress = "1";

    req.BillingName = "1";

    req.BillingAddress1 = "1";

    req.BillingAddress2 = "1";

    req.BillingCity = "1";

    req.BillingZip = "1";

    req.Amount = 1;                 //Optional

 

    //Send Request to Server and Get Response

    var res = await api.ValidateWalletAccountAsync(req);

 

    //Now examine the results:

    Console.WriteLine("AuthorizationCode: {0}", res.AuthorizationCode);

    Console.WriteLine("Message: {0}", res.Message);

    Console.WriteLine("Success: {0}", res.Success);

    Console.WriteLine("DisplayMessage: {0}", res.DisplayMessage);

}

catch (Exception ex)

{

    Console.WriteLine("Error: " + ex.Message);

}

C# Soap Client

try

{

    //Create Main API Context Object

    ExigoApi api = new ExigoApi();

 

    //Create Authentication Header

    ApiAuthentication auth = new ApiAuthentication();

    auth.LoginName = "yourLoginName";

    auth.Password = "yourPassword";

    auth.Company = "yourCompany";

    api.ApiAuthenticationValue = auth;

 

    //Create Request

    ValidateWalletAccountRequest req = new ValidateWalletAccountRequest();

 

    req.WalletAccountNumber = "1";

    req.WalletTy = 1;               //Required When ValidateWalletAccountOnFile = false

    req.Memo = "1";

    req.CustomerID = 1;             //Unique numeric identifier for a customer record.

    req.CustomerKey = "DDks8235txcid";//Unique alpha numeric identifier for customer record. Exeption will occur if CustomerID & CustomerKey are provided.

    req.OrderID = 1;                //Unique numeric identifier for order record.

    req.OrderKey = "DDks8235txcid"//Unique alpha numeric identifier for order record. Exeption will occur if OrderID & OrderKey are provided.

    req.ValidateWalletAccountOnFile = true;//Optional. Use this option to validate information already on file

    req.WalletAccountType = AccountWalletType.Primary;      //Optional. To be used when ValidateWalletAccountOnFile = true. By Default will be Primary.

    req.WarehouseID = 1;            //Optional

    req.Email = "1";

    req.Phone = "1";

    req.CurrencyCode = "usd";

    req.ClientIpAddress = "1";

    req.BillingName = "1";

    req.BillingAddress1 = "1";

    req.BillingAddress2 = "1";

    req.BillingCity = "1";

    req.BillingZip = "1";

    req.Amount = 1;                 //Optional

 

    //Send Request to Server and Get Response

    ValidateWalletAccountResponse res = api.ValidateWalletAccount(req);

 

    //Now examine the results:

    Console.WriteLine("AuthorizationCode: {0}", res.AuthorizationCode);

    Console.WriteLine("Message: {0}", res.Message);

    Console.WriteLine("Success: {0}", res.Success);

    Console.WriteLine("DisplayMessage: {0}", res.DisplayMessage);

}

catch (Exception ex)

{

    Console.WriteLine("Error: " + ex.Message);

}

VB.Net

Try

    'Create Main API Context Object

    Dim api as new ExigoApi()

 

    'Create Authentication Header

    Dim auth as new ApiAuthentication()

    auth.LoginName = "yourLoginName"

    auth.Password = "yourPassword"

    auth.Company = "yourCompany"

    api.ApiAuthenticationValue = auth

 

    'Create Request

    Dim req as new ValidateWalletAccountRequest()

 

    req.WalletAccountNumber = "1"

    req.WalletTy = 1

    req.Memo = "1"

    req.CustomerID = 1

    req.CustomerKey = "DDks8235txcid"

    req.OrderID = 1

    req.OrderKey = "DDks8235txcid"

    req.ValidateWalletAccountOnFile = true

    req.WalletAccountType = AccountWalletType.Primary

    req.WarehouseID = 1

    req.Email = "1"

    req.Phone = "1"

    req.CurrencyCode = "usd"

    req.ClientIpAddress = "1"

    req.BillingName = "1"

    req.BillingAddress1 = "1"

    req.BillingAddress2 = "1"

    req.BillingCity = "1"

    req.BillingZip = "1"

    req.Amount = 1

 

    'Send Request to Server and Get Response

    Dim res As ValidateWalletAccountResponse = api.ValidateWalletAccount(req)

 

    'Now examine the results:

    Console.WriteLine("AuthorizationCode: {0}", res.AuthorizationCode)

    Console.WriteLine("Message: {0}", res.Message)

    Console.WriteLine("Success: {0}", res.Success)

    Console.WriteLine("DisplayMessage: {0}", res.DisplayMessage)

Catch ex As Exception

    Console.WriteLine("Error: " & ex.Message)

End Try

PHP

Note: PHP is not officially supported.

<?php

try

{

    //Setup the SoapClient and Authentication

    $api = new SoapClient("http://api.exigo.com/3.0/ExigoApi.asmx?WSDL");

    $ns = "http://api.exigo.com/";

    $auth = array()

    $auth["LoginName"] = new SoapVar("yourLoginName",XSD_STRING,null,null,null,$ns);

    $auth["Password"] = new SoapVar("yourPassword",XSD_STRING,null,null,null,$ns);

    $auth["Company"] = new SoapVar("yourCompany",XSD_STRING,null,null,null,$ns);

    $headerBody = new SoapVar($auth, SOAP_ENC_OBJECT);

    $header = new SoapHeader($ns, 'ApiAuthentication', $headerBody);

    $api->__setSoapHeaders(array($header));

 

    //Create Request

 

    $req->WalletAccountNumber = "1";

    $req->WalletTy = 1;

    $req->Memo = "1";

    $req->CustomerID = 1;

    $req->CustomerKey = "DDks8235txcid";

    $req->OrderID = 1;

    $req->OrderKey = "DDks8235txcid";

    $req->ValidateWalletAccountOnFile = 1;

    $req->WalletAccountType = 1;

    $req->WarehouseID = 1;

    $req->Email = "1";

    $req->Phone = "1";

    $req->CurrencyCode = "usd";

    $req->ClientIpAddress = "1";

    $req->BillingName = "1";

    $req->BillingAddress1 = "1";

    $req->BillingAddress2 = "1";

    $req->BillingCity = "1";

    $req->BillingZip = "1";

    $req->Amount = 1;

 

    //Send Request to Server and Get Response

    $res = $api.ValidateWalletAccount($req);

 

    //Now examine the results:

}

catch (SoapFault $ex)

{

    echo "Error: ", $ex->getMessage();

}

?>

Java

Note: Java is not officially supported.

try

{

    //Create Main API Context Object

    ExigoApi api = new ExigoApi();

 

    //Create Authentication Header

    ApiAuthentication auth = new ApiAuthentication();

    auth.setLoginName("yourLoginName");

    auth.setPassword("yourPassword");

    auth.setCompany("yourCompany");

    api.setApiAuthenticationValue(auth);

 

    //Create Request

    ValidateWalletAccountRequest req = new ValidateWalletAccountRequest();

 

    req.setWalletAccountNumber("1");

    req.setWalletTy(1);

    req.setMemo("1");

    req.setCustomerID(1);

    req.setCustomerKey("DDks8235txcid");

    req.setOrderID(1);

    req.setOrderKey("DDks8235txcid");

    req.setValidateWalletAccountOnFile(1);

    req.setWalletAccountType(1);

    req.setWarehouseID(1);

    req.setEmail("1");

    req.setPhone("1");

    req.setCurrencyCode("usd");

    req.setClientIpAddress("1");

    req.setBillingName("1");

    req.setBillingAddress1("1");

    req.setBillingAddress2("1");

    req.setBillingCity("1");

    req.setBillingZip("1");

    req.setAmount(1);

 

    //Send Request to Server and Get Response

    ValidateWalletAccountResponse res = api.getExigoApiSoap().validateWalletAccount(req, auth);

 

    //Now examine the results:

}

catch (Exception ex)

{

    System.out.println("Error: " + ex.getMessage());

}

CSV

This method does not support csv output.