Skip to main content

Bank Statement Transactions

The Bank Statement Transactions API allows you to retrieve a paginated list of transactions from uploaded bank statements for a specific bank account. Use this endpoint to review flagged transactions, filter by status, and manage compliance alerts for transaction monitoring.

API Endpoint

GET {base_url}/transactions/monitoring/account/{accountId}/rule-hits

Request Format

This endpoint accepts a GET request with the account ID as a path parameter and query parameters for filtering and pagination.

Request Headers

Authorization: Bearer {token}

Path Parameters

ParameterTypeRequiredDescription
accountIdstring (UUID)YesUnique identifier of the bank account

Query Parameters

ParameterTypeRequiredDefaultDescription
PagenumberNo1Page number (must be greater than 0)
PageSizenumberNo10Number of items per page (1–100)
StatusstringNoFilter by transaction status. Accepted values: Active, Inactive

Example Request URL

GET {base_url}/transactions/monitoring/account/57e4acc2-8b73-4a86-9a4a-753e2764418a/rule-hits?Page=1&PageSize=10&Status=Active

Response Format

{
"version": null,
"statusCode": 200,
"messages": ["Processed successfully"],
"result": {
"data": [
{
"transactionId": "968969",
"accountId": "57e4acc2-8b73-4a86-9a4a-753e2764418a",
"source": "BankStatement",
"date": "2010-04-21T00:00:00Z",
"description": "Bill payment",
"amount": 327.63,
"currency": "USD",
"beneficiary": "",
"transactionType": "Debit",
"transactionStatus": "Active",
"score": 0,
"riskType": "High",
"assignedUsers": [],
"escalation": null
}
],
"page": 1,
"pageSize": 10,
"totalCount": 23,
"filters": null,
"totalPages": 3,
"hasNextPage": true,
"hasPreviousPage": false,
"message": null,
"unreadLogsCount": 23
}
}

Response Fields

FieldTypeDescription
versionstringAPI version (nullable)
statusCodenumberHTTP status code
messagesstring[]Response messages
resultobjectPaginated result object

Transaction Object

FieldTypeDescription
transactionIdstringUnique transaction identifier
accountIdstring (UUID)Bank account identifier the transaction belongs to
sourcestringSource of the transaction (see Source Values)
datestringISO 8601 timestamp of the transaction date
descriptionstringTransaction description (e.g., Bill payment, Deposit, Direct debit)
amountnumberTransaction amount
currencystring3-letter ISO currency code (e.g., USD, SAR, AED)
beneficiarystringBeneficiary name or identifier
transactionTypestringType of transaction — Credit or Debit
transactionStatusstringCurrent status of the transaction — Active or Inactive
scorenumberRisk score assigned to the transaction
riskTypestringRisk classification (see Risk Type Values)
assignedUsersstring[]List of users assigned to review the transaction
escalationobjectEscalation details (nullable, present when the transaction has been escalated)

Pagination Fields

FieldTypeDescription
pagenumberCurrent page number
pageSizenumberNumber of items per page
totalCountnumberTotal number of matching records
filtersobjectApplied filters (nullable)
totalPagesnumberComputed total pages (ceil(totalCount / pageSize))
hasNextPagebooleantrue if page < totalPages
hasPreviousPagebooleantrue if page > 1
messagestringAdditional message (nullable)
unreadLogsCountnumberCount of unread log entries for this account

Source Values

SourceDescription
BankStatementTransaction sourced from an uploaded bank statement

Risk Type Values

Risk TypeDescription
NoRiskNo risk detected
LowLow risk
MediumMedium risk
HighHigh risk
ProhibitedTransaction is prohibited

Transaction Type Values

TypeDescription
CreditIncoming funds (e.g., deposits, transfers in)
DebitOutgoing funds (e.g., bill payments, withdrawals)

Example Usage

cURL Example

curl -X GET \
'{base_url}/transactions/monitoring/account/57e4acc2-8b73-4a86-9a4a-753e2764418a/rule-hits?Page=1&PageSize=10&Status=Active' \
-H 'Authorization: Bearer your_token_here'

Error Handling

Status CodeDescriptionSolution
400Invalid pagination parametersEnsure Page > 0 and PageSize is between 1 and 100
401UnauthorizedVerify your authentication token
403ForbiddenCheck that your account has the required permissions
404Account not foundVerify the account ID exists
500Internal server errorContact support with the error details