Skip to content

Error response

Every refusal has the same shape, with a stable code and a fixed message:

{
"requestId": "7b46ae0a-2a0c-4465-89d0-96b3c3a2d48b",
"error": { "code": "NOT_VERIFIED", "message": "The statement was read, but its transactions could not be verified, so no result is returned." }
}
CodeHTTPMeaningWhat to do
UNAUTHORIZED401The key is missing, unknown or revoked.—
RATE_LIMITED429Too many requests for this key. Wait and retry.Retry after a short wait, or spread requests out.
QUOTA_EXCEEDED429This account has used this month's free statements. Wait for the reset in X-Quota-Reset.—
INVALID_REQUEST400No PDF in the body or form, or an invalid option.Send the PDF as the body (application/pdf) or the "file" field of a form; currency must be a three-letter code.
INVALID_FILE415The file is not a PDF.Send the statement PDF itself.
TOO_LARGE413The PDF is over the size limit.Send one statement per request.
TOO_MANY_PAGES422The PDF is over the page limit.Send one statement per request.
PASSWORD_REQUIRED422The PDF is protected. Send its password in X-Statement-Password.Send it in the X-Statement-Password header.
INCORRECT_PASSWORD422The password does not open the PDF.Check the password the bank gave for the statement.
UNREADABLE422The PDF has no readable text. Scans and photographs are not supported yet.Download the statement from online banking instead of scanning it.
UNSUPPORTED_DOCUMENT422The document could not be read as a bank statement.Send a transaction statement rather than a letter, invoice or summary. The report helps add new layouts.
NOT_VERIFIED422The statement was read but its transactions could not be verified, so nothing is returned.Check it is a complete statement as downloaded from online banking. The report helps the reader learn this layout.
INTERNAL500Something went wrong on our side. Retry later.Retry later. If it persists, contact us with the request ID.

NOT_VERIFIED and UNSUPPORTED_DOCUMENT are how the API avoids guessing. Each one is reported to us anonymously and helps the reader learn the layout.

A NOT_VERIFIED refusal, and an unverified result, carry a reason you can show to your users. Reasons are the same issue codes a needs_review result lists in its warnings:

{
"requestId": "…",
"error": {
"code": "NOT_VERIFIED",
"message": "The statement was read, but its transactions could not be verified, so no result is returned. …",
"reason": {
"code": "BALANCE_MISMATCH",
"message": "The transactions don't add up to the balances or totals printed on the statement."
}
}
}

The reason is one of the issue codes.

To receive the transactions anyway, labelled unverified, send ?unverified=include. See Handling results.