Errors
Error envelope and codes.
Envelope
Errors that links.et raises itself share one JSON shape:
A verification that failed is different. It comes back as the usual
receipt envelope with ok: false and error
as a plain string, not an object. Those are the two rows marked (none) below.
Codes
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_json | Request body was not valid JSON. |
| 400 | invalid_request | JSON parsed but failed schema validation. Carries issues. A wrong expect or webhookUrl is named in the message. |
| 400 | (none) | No upstream status to report: the URL did not resolve to a supported provider, or the call never reached the bank. Read error. |
| 400 | invalid_request_id | The requestId in a polling or event stream URL is not a request id. |
| 400 | image_too_large | One image is over 5 MB of base64. POST /api/verify-image only. |
| 400 | not_an_image | One upload is not a picture (a PDF, say). Carries index and detected. POST /api/verify-image only. |
| 401 | missing_key | No x-api-key header. |
| 401 | invalid_key | Key not recognised. |
| 401 | revoked_key | Key was revoked. |
| 404 | not_found | Polling or event stream: no such request, or it was made with a different key. |
| 429 | rate_limited | Hit the per-minute request rate. Includes Retry-After. |
| 429 | quota_exceeded | Hit the plan's uncached verification cap. Carries used and cap, plus Retry-After to the window rollover. |
| 429 | image_cap_reached | Hit the plan's monthly screenshot read allowance. POST /api/verify-image only. |
| 429 | ocr_daily_cap_reached | The service-wide daily screenshot budget is spent. Rare, and not about your account. |
| 502 | (none) | The bank was reached but gave no valid receipt: it answered with an error (not found, a 5xx), or the body failed validation. |
There is no 504. A call that times out or gives up waiting for a busy bank
has no upstream status code to report, so it comes back as a 400 with the
reason in error. See
what a busy bank does.
POST /api/verify-image can also return ai_not_configured (503, the
extractor is not set up on this deployment) and detection_failed (502, the
extractor ran but could not read a receipt reference out of the image).
When a bank is down
We always ask the bank, even when our health checks say it is failing. Some
banks drop a share of requests and answer the rest, so asking gets some
through where refusing would get none. A bank that is down for real comes back
as the busy-bank 400 or a 502. GET /api/status shows
what our health checks see per component.
Retry guidance
rate_limitedwait theRetry-Afterinterval, then try again.quota_exceededandimage_cap_reacheddo not retry on a timer.Retry-Aftercan be days away, because the window is your plan's, not a minute. Upgrade, ask us to turn overage on, or wait for the rollover.- 502 and the busy-bank 400 are usually the bank rather than you, but
a failure is remembered, so a retry a second later gets the same answer back
without the bank being asked (
cached: trueandcachedFailure: true). A timeout, a bank 5xx or 429, or a body we could not read is remembered for 1 minute. Any other bank 4xx, such as receipt not found, is remembered for 24 hours. So wait at least a minute before you retry, and treat three failures a minute apart as a real outage. Do not retry a Siinqee reference at all: those links allow about five views in total, so a retry loop destroys the receipt, and every Siinqee failure is remembered for 24 hours. See providers. - 401 never retry. Mint a new key from the dashboard.
- 400
invalid_requestnever retry. The body is wrong.