logoOPEN BANKING DOCS

Get account statement

Retrieve account statement with optional filtering

GET
/accounts/statement
X-API-Key<token>

In: header

Query Parameters

accountNumberstring

10-digit account number

Match^[0-9]{10}$
startDate?string

Start date for statement period

Formatdate
endDate?string

End date for statement period

Formatdate
page?integer

Page number

Default1
Range1 <= value
pageSize?integer

Number of items per page

Default20
Range1 <= value <= 100

Header Parameters

X-API-Keystring

API key for the application

X-App-Idstring

UUID of the application

Formatuuid

Response Body

curl -X GET "https://virtual-accounts-api.vantacrest.com/company/v1/accounts/statement?accountNumber=string&startDate=2019-08-24&endDate=2019-08-24&page=1&pageSize=20" \  -H "X-API-Key: string" \  -H "X-App-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "data": {
    "accountNumber": "string",
    "accountName": "string",
    "period": {
      "startDate": "2019-08-24",
      "endDate": "2019-08-24"
    },
    "transactions": [
      {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "amount": 0,
        "currency": "string",
        "flow": "INFLOW",
        "narration": "string",
        "reference": "string",
        "status": "PENDING",
        "createdAt": "2019-08-24T14:15:22Z"
      }
    ],
    "pagination": {
      "currentPage": 0,
      "totalPages": 0,
      "totalItems": 0,
      "pageSize": 0
    }
  }
}
{
  "success": true,
  "message": "string",
  "data": {},
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": true,
  "message": "string",
  "data": {},
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": true,
  "message": "string",
  "data": {},
  "timestamp": "2019-08-24T14:15:22Z"
}