Test Scenarios - Accounts
Test Scenarios - Accounts
Overview
In the Sandbox, the Business Integration Services - Accounts services operate in mocked mode and contains predefined test transactions. The available test scenarios and expected responses are shown below.
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /bab/v1/accounts/movements | Get account movements |
| GET | /bab/v1/accounts/movements/{id} | Get account movement by ID |
| GET | /bab/v1/accounts/statements | Get account statement |
Test Scenarios
Get Account Movements
Scenario 1: GEL transactions (June 2026)
GET /bab/v1/accounts/movements?AccountNumber=GE48TB7873440574631292&AccountCurrencyCode=GEL&PeriodFrom=2026-06-01&PeriodTo=2026-06-30&PageIndex=0&PageSize=100
➡️200 OK: returns 11 GEL transactions
Scenario 2: USD transactions (June 2026)
GET /bab/v1/accounts/movements?AccountNumber=GE48TB7873440574631292&AccountCurrencyCode=USD&PeriodFrom=2026-06-01&PeriodTo=2026-06-30&PageIndex=0&PageSize=100
➡️200 OK: returns 20 USD transactions
Scenario 3: Paging
GET /bab/v1/accounts/movements?PeriodFrom=2026-02-01&PeriodTo=2026-06-30&PageIndex={0|1|2}&PageSize=20
➡️PageIndex=0: 20 records, total=35; PageIndex=1: 15 records, total=35; PageIndex=2: 0 records, total=35
Scenario 4: By period, PageSize=100
GET /bab/v1/accounts/movements?PeriodFrom=2026-02-01&PeriodTo=2026-06-30&PageIndex=0&PageSize=100
➡️200 OK: 60 transactions
Scenario 5: Without period (PageIndex + PageSize)
GET /bab/v1/accounts/movements?PageIndex=0&PageSize=100
➡️200 OK: 60 transactions
Scenario 7: Retrieve a single transaction by ID
GET /bab/v1/accounts/movements/018383341565.1
➡️200 OK: a single transaction object
Scenario 8: Debit and credit transactions
Debit: GET /bab/v1/accounts/movements/018716808825.1
Credit: GET /bab/v1/accounts/movements/018716808825.2
➡️200 OK: suffix (.1 / .2) indicates the isDebit value
Scenario 9: LastMovementTimeStamp filter
GET /bab/v1/accounts/movements?LastMovementTimeStamp=2026-06-09&PageIndex=0&PageSize=100
➡️200 OK: 50 transactions
Scenario 10: Account + currency + period - empty result
GET /bab/v1/accounts/movements?PeriodFrom=2025-01-01&PeriodTo=2025-01-31&PageIndex=0&PageSize=100
➡️200 OK: { "transactions": [], "pager": [{ "pageIndex": 0, "pageSize": 100 }], "total": 0 }
Scenario 11: Unauthorized user (403)
GET /bab/v1/accounts/movements?PeriodFrom=2024-01-01&PeriodTo=2024-01-31&PageIndex=0&PageSize=100
➡️403 NOT_AUTHORIZED
Scenario 12: System error (500 GENERAL_ERROR)
GET bab/v1/accounts/movements?PeriodFrom=2024-02-01&PeriodTo=2024-03-31&PageIndex=0&PageSize=100
➡️500 GENERAL_ERROR
Scenario 13: USER_IS_NOT_ACTIVE error
ClientID= Xx8Mzga2TfUvatXmPhp4Tc5bZfcNIa3Z
ClientSecret= z4zOFAtpxOCmWgH4
➡️400 USER_IS_NOT_ACTIVE
Get Account Statement
Objective: Verify the successful response of the Account Statement service for the specified account, currency and period.
Scenario 1: Account statement in GEL for a period
GET bab/v1/accounts/statements?AccountNumber=GE48TB7873440574631292&AccountCurrencyCode=GEL&PeriodFrom=2025-01-01&PeriodTo=2025-03-01
➡️200 OK: opening/closing balance, creditSum, debitSum, currency, accountNumber
Scenario 2: Account statement in USD for a period
GET bab/v1/accounts/statements?AccountNumber=GE48TB7873440574631292&AccountCurrencyCode=USD&PeriodFrom=2025-01-01&PeriodTo=2025-03-01
➡️200 OK: opening/closing balance, creditSum, debitSum, currency, accountNumber
