I am trying to use the AIM API with php to get transaction detail from date1 to date2. Specifically, transactions voided date1 to date 2.
I cannot determine how to do this. The Auth.net API documentation is EXTREMELY vauge, there are no good examples.
There has to be a way, can anyone point me to an example?
Thank you.
08-17-2012 10:10 AM
That would be Transaction Details API
Start from GetSettledBatchList Request by first day to last day, which return a list a batch ID.
Using the batchID, GetTransactionList Request to get a list of TransactionList ID and some of info, which do include transaction status.
If you need more detail use GetTransactionDetails Request with the transactionID.
08-17-2012 11:12 AM
I understand the general concept.
But (for example), the referenced docs give NO information on how to specify a beginning & ending date, etc.
I need more detail.
08-17-2012 11:45 AM
<?xml version="1.0" encoding="utf-16"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http:/ /www.w3.org/2001/XMLSchema"> <soap:Body> <GetSettledBatchList xmlns="https://api.authorize.net/soap/v1/"> <merchantAuthentication> <name>YourUserLogin</name> <transactionKey>YourTranKey</transactionKey> </merchantAuthentication> <includeStatistics>true</includeStatistics> <firstSettlementDate>2010-05-01T16:00:00Z</firstSettlementDate> <lastSettlementDate>2010-05-31T16:00:00Z</lastSettlementDate> </getSettledBatchList> </soap:Body> </soap:Envelope>
<getSettledBatchListRequest xmlns="AnetApi/xml/v1/schema/ AnetApiSchema.xsd"> <merchantAuthentication> <name>YourUserLogin</name> <transactionKey>YourTranKey</transactionKey> </merchantAuthentication> <includeStatistics>true</includeStatistics> <firstSettlementDate>2010-05-01T16:00:00Z</firstSettlementDate> <lastSettlementDate>2010-05-31T16:00:00Z</lastSettlementDate> </getSettledBatchListRequest>
Or do you mean how to do it in php? The SDKs should have something for it.
08-17-2012 11:59 AM - edited 08-17-2012 12:04 PM
I kind of see what you are doing. The SDK is almost worthless.
Can't someone show me an example of php code that does this?
08-18-2012 03:17 PM