developer:soap:methods:getbatchtransactions

This is an old revision of the document!


Soap API v1.2

getBatchTransactions

Retrieve transactions in the batch specified by BatchRefNum,

Description

This method will return all of the transactions contained within the specified batch. Use this method to retrieve all transaction data including status, type, amount, response and customer information.

See also: getBatchStatus, closeBatch, searchBatches.

Syntax

transactionObject[] getBatchTransactions ( ueSecurityToken Token, Integer BatchRefNum )

Arguments

Type Name Description
ueSecurityToken Token Merchant security token: used to identify merchant and validate transaction.
integer BatchRefNum A unique batch reference number assigned by the gateway.

Return Value

transactionObject[] Returns an array of TransactionObjects for all transactions in the specified batch

Examples

PHP

For directions on how to set up the WSDL link, create “$token” and “$client”, go to PHP Soap How-to.

<?php 
 
try { 
 
  $BatchRefNum=0; 
 
  $res=$client->getBatchTransactions($token, $BatchRefNum);  
  print_r($res); 
 
} 
 
catch (SoapFault $e) { 
 
  die("get Batch Transactions failed :" .$e->getMessage()); 
 
} 
 
?> 

Visual Basic (.Net)

For directions on how to set up the WSDL link, create “token” and “client”, go to Visual Basic .Net Soap How-to.

Dim BatchRefNum As String
 
' Set BatchRefNum to 0 to get the current batch.  
' Otherwise use batch reference num  (can be found in  Transaction.Details.BatchRefNum)
BatchRefNum = "0"
 
Dim transactions() As usaepay.TransactionObject = client.getBatchTransactions(token, BatchRefNum)
 
MsgBox("Found " & transactions.Length & " transactions in current batch")

XML

<?xml version="1.0" encoding="UTF-8"?> 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:ns1="urn:usaepay" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
<SOAP-ENV:Body> 
<ns1:getBatchTransactions> 
<Token xsi:type="ns1:ueSecurityToken"> 
<ClientIP xsi:type="xsd:string">192.168.0.1</ClientIP> 
<PinHash xsi:type="ns1:ueHash"> 
<HashValue xsi:type="xsd:string">6961f591f7cdb9e83ed33cf90ba370e82b8b1643</HashValue> 
<Seed xsi:type="xsd:string">11937832501524228210</Seed> 
<Type xsi:type="xsd:string">sha1</Type> 
</PinHash> 
<SourceKey xsi:type="xsd:string">HB4P7C4K2w2ZCQQQXRqrxDj6agrS2NIT</SourceKey> 
</Token> 
<BatchRefNum xsi:type="xsd:integer">0</BatchRefNum> 
</ns1:getBatchTransactions> 
</SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 

Change History

Version Change
1.2 Renamed BatchNum Parameter to BatchRefNum
1.1 Soap 1.1 Release
developer/soap/methods/getbatchtransactions.1248479290.txt.gz · Last modified: 2009/07/24 16:48 by tem

Page Tools