View Statement Details by Account Number – Function 039
Function 039 gives you a summary or history of transactions over a given period. An account number can have multiple card numbers linked to it. All transactions that occurred to that card number between the specified start and end dates are returned. The results are returned using XML for this call.
Inputs | Description | Required | Data Type |
---|---|---|---|
FunctionID | 039 | Y | |
P1 | Account Number | Y | (16,19) numeric |
P2 | Start Date | Y | date (i.e., 01/01/2001) |
P3 | End Date | Y | date (i.e., 01/01/2001) |
P4 | PAN OR ALT ID | Y | (16,19) numeric |
Outputs | Description | ||
XML | The data will be passed back in a well-formed XML document. The error code processing will be contained in the P1 node that contains two attributes errnumber and errdescription. Therefore, if the errnumber attribute is equal to “000” the document will contain a “cardholderstatementdetails” node; otherwise, it will not. |
||
P1 | Error Code (used if error code not “000”) | N | |
P2 | Error Text (used if error code not “000”) | N |
Example: Statement Details Request by Account Number
https://api.m2fin.com:8443/AuthENGINAPI/AuthENGINAPI?CID=5&CUSR=myuseraccount&CPWD=p
asswor dassignedtome&FUNC=039&MSGID=00001644717834326&P1=ACCOUNT
NUMBER&P2=03/15/2008&P3=03/16/2008&P4= PAN OR ALT ID
asswor dassignedtome&FUNC=039&MSGID=00001644717834326&P1=ACCOUNT
NUMBER&P2=03/15/2008&P3=03/16/2008&P4= PAN OR ALT ID
Example: Statement Details Response by Account Number
<?xml version=”1.0″ ?>
<api func=”39″>
<p1 errnumber=”0000″ errdescription=”” />
<cardholderstatementdetails RecCnt=”360″>
<cardholderstatementdetails RecCnt=”360″>
<cardpan account=”7000002932″ startdate=”01/01/2008″
enddate=”06/06/2008″ reportdate=”2005/10/08 03:19 PM”>
enddate=”06/06/2008″ reportdate=”2005/10/08 03:19 PM”>
<currency>USD</currency>
<cardaccount>
<cardaccount>
<transactionlist>
<transaction>
<date>05/02/2008 11:42:27 AM</date>
<CardNumber>################</CardNumber>
<TransactionType>27JR</TransactionType>
<MTI>0100</MTI>
<ARN>134227240000</ARN>
<STN>1342272400</STN>
<TermID />
<AuthNum>134227</AuthNum>
<RecType>2401</RecType>
<TransactionOrigin>P</TransactionOrigin>
<description>Deposit funds</description>
<amount>000002000</amount>
<fee>00000</fee>
<availablebalance>0000065080</availablebalance>
<ledgerbalance>0000065080</ledgerbalance>
<clientid>GKBL</clientid>
<termnamelocation>00000</termnamelocation>
<termowner />
<termcity />
<termstate />
<termcountry />
<surcharge>00000</surcharge>
<rspcode>001</rspcode>
<CardNumber>################</CardNumber>
<TransactionType>27JR</TransactionType>
<MTI>0100</MTI>
<ARN>134227240000</ARN>
<STN>1342272400</STN>
<TermID />
<AuthNum>134227</AuthNum>
<RecType>2401</RecType>
<TransactionOrigin>P</TransactionOrigin>
<description>Deposit funds</description>
<amount>000002000</amount>
<fee>00000</fee>
<availablebalance>0000065080</availablebalance>
<ledgerbalance>0000065080</ledgerbalance>
<clientid>GKBL</clientid>
<termnamelocation>00000</termnamelocation>
<termowner />
<termcity />
<termstate />
<termcountry />
<surcharge>00000</surcharge>
<rspcode>001</rspcode>
</transaction>
</transactionlist>
</cardaccount>
<cardaccount>
<cardaccount>
<transactionlist>
<transaction>
<transaction>
<date>05/02/2008 11:49:22 AM</date>
<CardNumber>################</CardNumber>
<TransactionType>27J</TransactionType>
<MTI>0100</MTI>
<ARN>134922788000</ARN>
<STN>1349227880</STN>
<TermID />
<AuthNum>134922</AuthNum>
<RecType>7801</RecType>
<TransactionOrigin>P</TransactionOrigin>
<description>Deposit funds</description>
<amount>000002000</amount>
<fee>00000</fee>
<availablebalance>0000067080</availablebalance>
<ledgerbalance>0000067080</ledgerbalance>
<clientid>GKBL</clientid>
<termnamelocation>00000</termnamelocation>
<termowner />
<termcity />
<termstate />
<termcountry />
<surcharge>00000</surcharge>
<rspcode>001</rspcode>
<CardNumber>################</CardNumber>
<TransactionType>27J</TransactionType>
<MTI>0100</MTI>
<ARN>134922788000</ARN>
<STN>1349227880</STN>
<TermID />
<AuthNum>134922</AuthNum>
<RecType>7801</RecType>
<TransactionOrigin>P</TransactionOrigin>
<description>Deposit funds</description>
<amount>000002000</amount>
<fee>00000</fee>
<availablebalance>0000067080</availablebalance>
<ledgerbalance>0000067080</ledgerbalance>
<clientid>GKBL</clientid>
<termnamelocation>00000</termnamelocation>
<termowner />
<termcity />
<termstate />
<termcountry />
<surcharge>00000</surcharge>
<rspcode>001</rspcode>
</transaction>
</transactionlist>
</cardaccount>
</cardpan>
</cardholderstatementdetails>
</api>