The "GetBatchStatistics" API method returns a "GetBatchStatisticsResponseType" object. This type contains a "batch" property of type "BatchDetailsType". The "BatchDetailsType" class defines a property called "paymentMethod". In my test environment, since eCheck transactions do not settle, this property always comes back as "creditCard". What will it come back as in real, production environment, where there are also eCheck transations that need to be settled? Will Authorize.Net create separate batches for credit card transactions and eCheck transactions? If that is the case, I can see how this "paymentMethod" property will be "creditCard" in one case and "eCheck" in the other. Is that how it works?
TIA,
Eddie
Solved! Go to Solution.
โ02-03-2014 07:20 AM
Hi,
If a merchant is processing credit card and eCheck transactions, these will settle in two batches. You will also receive two separate emails for Successful Credit Card Settlement Report and Successful eCheck.Net Settlement Report.
Thanks,
Joy
โ02-03-2014 01:37 PM
The schema for the getBatchStatisticsResponse
https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd
said the BatchDetailsType is a minOccurs="0" maxOccurs="unbounded"
so there should be 2, one for cc and one for echeck
โ02-03-2014 07:46 AM
In my Service Reference class, that type comes defined as this:
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.18408")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="https://api.authorize.net/soap/v1/")]
public partial class GetBatchStatisticsResponseType : ANetApiResponseType
{
private BatchDetailsType batchField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public BatchDetailsType batch {
get {
return this.batchField;
}
set {
this.batchField = value;
this.RaisePropertyChanged("batch");
}
}
}
So there's only one BatchDetailsType object, not an array of them. The PaymentMethod property belongs to the BatchDetailsType class, so there's only one payment method.
โ02-03-2014 07:53 AM
From the WSDL (https://api.authorize.net/soap/v1/service.asmx?WSDL):
<s:complexType name="GetBatchStatisticsResponseType">
<s:complexContent mixed="false">
<s:extension base="tns:ANetApiResponseType">
<s:sequence>
<s:element name="batch" type="tns:BatchDetailsType" maxOccurs="1" minOccurs="0"/>
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>
So, there's only one Batch Details object aggregated in the Batch Statistics Response Type.
โ02-03-2014 07:58 AM - edited โ02-03-2014 07:59 AM
Oop. now I see it, the request is based on batchID, so there would be different batchID.
โ02-03-2014 08:17 AM
So my question stands: are there separate batches closed daily for credit card transactions and eCheck transactions? Maybe someone else can shed some light on this question. Someone that already has a live/production account.
โ02-03-2014 08:35 AM
Hi,
If a merchant is processing credit card and eCheck transactions, these will settle in two batches. You will also receive two separate emails for Successful Credit Card Settlement Report and Successful eCheck.Net Settlement Report.
Thanks,
Joy
โ02-03-2014 01:37 PM
Thank you Joy for the clarification.
Best regards,
Eddie
โ02-03-2014 01:55 PM