Call GetAccountSummary API to retrieve transactions associated to a Customer. AccountSummary details are retrieved in XML format. This API receives GetAccountSummary XML as input and renders Response XML as output.
public string GetAccountSummary (string GetAccountSummaryXML, string ReferenceNo)
|
Argument Name |
Data Type |
Is Mandatory |
Description |
|
GetAccountSummary XML |
String |
Yes |
An XML string that contains customer number |
|
ReferenceNo |
String |
Yes |
An unique number provided to identify the request |
|
Element Name |
Data Type |
Length |
Is Mandatory |
Description |
|
CUSTOMERNO |
String |
16 |
Y |
Customer number |
|
FROMDATE |
Date |
|
N |
Date from which the documents should be retrieved. Date format should be in user preferred date format. Default value will be application date. |
|
TODATE |
Date |
|
N |
Date until when the documents should be retrieved. Date format should be in user preferred date format. Default value will be application date. |
<REQUESTINFO>
<KEY_NAMEVALUE>
<KEY_NAME>CUSTOMERNO</KEY_NAME>
<KEY_VALUE>CUST100</KEY_VALUE>
</KEY_NAMEVALUE>
<ADDITIONALPARAM>
<FROMDATE>21-05-2010</FROMDATE>
<TODATE>21-05-2010</TODATE>
</ADDITIONALPARAM>
</REQUESTINFO>
|
Parameter Name |
Data Type |
Description |
|
TRANSACTIONNO |
String |
An unique number generated for each request |
|
ERRORNO |
Integer |
Returns Error Number 1059 – Invalid date and time format. |
|
MESSAGE |
String |
Returns "Success" or "Failed" |
|
OPENINGBALANCE |
Decimal |
Opening balance of the customer as on given from date. |
|
TYPE |
String |
Transaction Type |
|
NUMBER |
String |
Transaction number |
|
DATE |
Date |
Transaction Date |
|
REMARKS |
String |
Notes |
|
AMOUNT |
Decimal |
Transaction Amount |
|
CLOSING BALANCE |
Decimal |
Closing Balance of the customer as on given todate. |
<RESPONSEINFO>
<STATUS>
<TRANSACTIONNO>2551</TRANSACTIONNO>
<ERRORNO>0</ERRORNO>
<MESSAGE>SUCCESS</MESSAGE>
</STATUS>
<OPENINGBALANCE>-1000<OPENINGBALANCE>
<DOCUMENT>
<TYPE>INVOICE</TYPE>
<NUMBER>INV100</NUMBER>
<DATE>19-05-2010</DATE>
<REMARKS>Testing</REMARKS>
<AMOUNT>120</AMOUNT>
</DOCUMENT>
<DOCUMENT>
<TYPE>PAYMENT</TYPE>
<NUMBER>INV100</NUMBER>
<DATE>19-05-2010</DATE>
<REMARKS>Testing</REMARKS>
<AMOUNT>100</AMOUNT>
</DOCUMENT>
<CLOSINGBALANCE>-980<CLOSINGBALANCE>
</RESPONSEINFO>
Note: Refer to Error Codes and Description to view errors in detail.