This is the Corporate Account Statement API -Receive an instant overview of transactions on in your account. Know your bank account balance instantly.Get a consolidated view of your account -Account attributes can be fetched in one click (attribute includes a/c name, cust id, cust segment, Primary RM etc.
TestCase : 1
Description:
Valid input with all fields correctly filled (alphanumeric, <= 20 chars)
Input:
TranID=TXN12345,
Corp_ID=CORP123,
account_no=ACC998877,
from_date=2024-01-01,
to_date=2024-01-31
Expected Output:
HTTP 200,
Status = Success,
base64 data returned
TestCase 2
Description:
Missing TranID field
Input:
Corp_ID=CORP123,
account_no=ACC998877,
from_date=2024-01-01,
to_date=2024-01-31
Expected Output:
HTTP 400,
Error Code = ER002,
Message = Missing required field: TranID
TestCase 3
Description:
Special characters in TranID
Input:
TranID=TXN#123!,
Corp_ID=CORP123,
account_no=ACC998877,
from_date=2024-01-01,
to_date=2024-01-31
Expected Output:
HTTP 400,
Error Code = ER002,
Message = TranID must be alphanumeric and up to 20 characters
TestCase 4
Description:
Special characters in Corp_ID
Input:
TranID=TXN12345,
Corp_ID=CORP@123,
account_no=ACC998877,
from_date=2024-01-01, to_date=2024-01-31
Expected Output:
HTTP 400,
Error Code = ER002,
Message = Corp_ID must be alphanumeric and up to 20 characters
TestCase 5
Description:
account_no exceeds 20 characters
Input:
TranID=TXN12345,
Corp_ID=CORP123,
account_no=ACC9988771234567890123,
from_date=2024-01-01,
to_date=2024-01-31
Expected Output:
HTTP 400,
Error Code = ER002,
Message = account_no must be alphanumeric and up to 20 characters
TestCase 6
Description:
Empty JSON body
Input: {}
Expected Output:
HTTP 400,
Error Code = ER002,
Message = Missing FetchAccStmtReq or Header block
TestCase 7
Description:
Invalid JSON format (e.g., malformed JSON)
Input:
{ FetchAccStmtReq: [Header: {...}] }
Expected Output:
HTTP 400,
Error Code = ER002,
Message = Invalid Request Format or Missing Fields
TestCase 8
Description:
All fields are exactly 20-character valid alphanumeric values
Input: TranID=TXN1234567890123456,
Corp_ID=CORP1234567890123,
account_no=ACCNUM12345678901234,
from_date=2024-01-01,
to_date=2024-01-31
Expected Output:
HTTP 200,
Status = Success,
base64 data returned