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." }}Error codes
Section titled “Error codes”| Code | HTTP | Meaning | What to do |
|---|---|---|---|
UNAUTHORIZED | 401 | The key is missing, unknown or revoked. | — |
RATE_LIMITED | 429 | Too many requests for this key. Wait and retry. | Retry after a short wait, or spread requests out. |
QUOTA_EXCEEDED | 429 | This account has used this month's free statements. Wait for the reset in X-Quota-Reset. | — |
INVALID_REQUEST | 400 | No 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_FILE | 415 | The file is not a PDF. | Send the statement PDF itself. |
TOO_LARGE | 413 | The PDF is over the size limit. | Send one statement per request. |
TOO_MANY_PAGES | 422 | The PDF is over the page limit. | Send one statement per request. |
PASSWORD_REQUIRED | 422 | The PDF is protected. Send its password in X-Statement-Password. | Send it in the X-Statement-Password header. |
INCORRECT_PASSWORD | 422 | The password does not open the PDF. | Check the password the bank gave for the statement. |
UNREADABLE | 422 | The PDF has no readable text. Scans and photographs are not supported yet. | Download the statement from online banking instead of scanning it. |
UNSUPPORTED_DOCUMENT | 422 | The 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_VERIFIED | 422 | The 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. |
INTERNAL | 500 | Something 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.
Why a statement was not verified
Section titled “Why a statement was not verified”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.

