Basic use cases

Getting a list of final statements

API allows you to get a list of final statements ready at the time of the request, broken down by several criteria:

  • client
  • several clients
  • account

The selection can be limited to a date interval. The results are provided in pages and contain the main data of the statement (excluding the list of transactions).

Example of usage for confirming the readiness of the final statement for the previous day

If you need to download the final statement in MT940 or 1C format for the previous day, you should first confirm its finalization. To do this, you need to call one of the methods for obtaining a list of final statements.

For example, you need to get the final account statement X in MT940 format.

To do this, you need to make a call

curl -X GET \
https://api.openapi.raiffeisen.ru/api/v1/accounts/X/statements?from={now - 1 day}&to={now - 1 day}&fields=DocumentNumber, AccountNumber, Date, Currency \
-H 'Authorization: Bearer {access_token}' \
-H 'Id-Token: {id_token}' \
-H 'Accept: application/json'

An example of a response when the statement is ready

[
    {
        "documentNumber": "42",
        "accountNumber": "X",
        "date": "yyyy-MM-ddTHH:mm:ssZ",
        "currency": "RUR"
    }
]

An example of a response if the statement is not ready

[]

If the statement is ready, you can request it

curl -X GET \
https://api.openapi.raiffeisen.ru/api/v1/accounts/X/statements/mt940?date={now - 1 day} \
-H 'Authorization: Bearer {access_token}' \
-H 'Id-Token: {id_token}' \
-H 'Accept: text/plain'

Otherwise, an unfinalized statement will be returned.

Getting a list of intraday statements

API allows you to get a list of intraday statements ready at the time of the request, broken down by several criteria:

  • client
  • several clients
  • account

The selection can be limited to a date interval. The results are provided in pages and contain the main data of the statement (excluding the list of transactions).