Uploading Bank Statement
Description
This web service uploads, parses, reconciles a bank statement into the system. It is used to create LPTs based on the parser. The parser used to parse the bank statement should be specified in the Bank Statement Parser in the Bank Statement Configuration custom settings.
Definition
https://<domain>/services/apexrest/peer/V1/UploadBankStatement
Parameters
The table given below provides details of the request parameter used by this web service:
Field | Type | Description |
---|---|---|
fileContent* |
String | This should contain the body of a bank statement as a string |
Error messages
When you post a web service, you can receive the possible error messages as shown in the table below:
Error Code |
Reason |
HTTP Status Code |
---|---|---|
INVALID_INPUT |
You will receive this error if the Request body is not according to the specifications |
400 |
EXCEPTION_WHILE_PROCESSING |
You will receive this error if any unexpected error occurs during the processing of the request, the system will raise the exception |
500 |
Sample Request
The sample request to be sent is as shown below:
https://na11.salesforce.com/services/apexrest/peer/V1/UploadBankStatement
{
"fileContent" : "001231130400004000INVESTOR
TRUST - XYZ201407080003766800018197477
\r\n0108900000500000
A-0000001505
201407082014070820140708123009891230710005611000A-0000001505 MR A TOSCA 3
\r\n0108900000080000
A-0000001505
201407082014070820140708123009891230710005611000A-0000001505 MR A TOSCA 3
\r\n0108900000120000
A-0000001503
201407082014070820140708123009891230710005611000A-0000001503 MR A TOSCA 3
\r\n0108900000800000
201407082014070820140708123009891230710005611000 MR A
TOSCA 3
\r\n0108900000950000
201407082014070820140708123009891230710005611000 MR A
TOSCA 3 \r\n0109000001200000
201407082014070820140708123009900000000000000000
INV-1983 3 \r\n0109000001000000
201407082014070820140708123009900000000000000000
INV-1985 3 \r\n0104400000080000
201407082014070820140708123009440000000000000000 XYZ SOLUTIONS 3
\r\n09123113040000400000000080000000046500000000457000000004730000000000000082014070800022767477
\r\n9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
}
Sample Response
The sample response that you will receive is as shown below:
{
"status": "SUCCESS",
"errorCode": "NO_ERROR"
}