Skip to content

Handling results

The status says how far to trust a result. The issue codes say what is wrong with the statement, and are the same codes wherever they appear.

Status What it means Issues
verified Every transaction was read and checked against the statement. None.
needs_review Every transaction was read, with its date and direction, but a check against the statement did not pass. The transactions themselves are sound. warnings: one or more.
unverified The reading could not be established, so some transactions may have the wrong date, amount or direction. Only returned when you ask for it. reason: the main one.
refused (NOT_VERIFIED, HTTP 422) As unverified, when you did not ask for unverified results: nothing is returned. error.reason: the main one.
CodeMeaning
BALANCE_MISMATCHThe transactions don't add up to the balances or totals printed on the statement.
DIRECTION_UNCLEARSome transactions could not be told apart as money in or money out.
DATE_UNCLEARSome transactions have no date that could be read.
ROWS_UNREADABLESome transaction lines could not be read reliably.
ACCOUNTS_UNCLEARTransactions could not be matched to their accounts.
NOTHING_TO_CHECKEvery line was read, but the statement prints no balances or totals to check them against.
NO_TRANSACTIONSNo transaction table was found in the document.
NOT_CHECKEDSome of the statement could not be checked against itself. Check the transactions before relying on them.

Each issue has a code and a message you may show to your users as it is.

By default the API refuses a statement it cannot verify. If your app has a person to check the result, ask for it anyway with ?unverified=include (or the X-Unverified: include header): you get the transactions with "status": "unverified" and a reason. Use them knowing that some may have the wrong date, amount or direction.

{
"status": "unverified",
"reason": {
"code": "BALANCE_MISMATCH",
"message": "The transactions don't add up to the balances or totals printed on the statement."
},
"accounts": [{ "transactions": [ … ] }]
}

Each transaction says whether it was checked: verified: true means it agrees with the statement’s own balances or totals, false means it was inferred. Every transaction of a verified result is true. So you can keep only the checked ones, or send just the unchecked ones to a person:

const transactions = result.accounts.flatMap((account) => account.transactions)
const checked = transactions.filter((transaction) => transaction.verified)
const toReview = transactions.filter((transaction) => !transaction.verified)

A refused statement returns an error instead of a result. The error response lists every code, and the Quickstart shows one branch per outcome.