Generate Bank Statement
POST /openbanking/statement/{bankCode}
Description
Generates a bank statement for a specific account within a specified date range. This endpoint requires authorization and identification headers to authenticate the request.
Path Parameters:
| Name | Type | Description |
|---|---|---|
bankCode | string | The code of the bank for which the statement is to be generated. Required. |
Headers:
| Name | Type | Description |
|---|---|---|
tenantId | string | The unique identifier of the tenant. Required. |
countryCode | string | The country code associated with the bank account. Required. |
userId | string | The unique identifier of the user. Required. |
Request Body:
| Name | Type | Description |
|---|---|---|
accountNumber | string | The account number for which the statement is to be generated. Required. |
startDate | string | The start date for the statement in YYYY-MM-DD format. Required. |
endDate | string | The end date for the statement in YYYY-MM-DD format. Required. |
Sample Request Body:
{
"accountNumber": "1234567890",
"startDate": "2024-11-01",
"endDate": "2024-11-28"
}
Sample Response
{
"status": true,
"statusCode": 0,
"message": "Bank statement generated successfully",
"data": {},
"errors": [
{
"message": "Optional error message",
"data": {},
"descriptiveMessage": "Detailed error description"
}
]
}
LANGUAGE
CURL REQUEST
curl --request POST \
--url /openbanking/statement/{bankCode} \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!