Errors
Sandbox returns the HTTP statuses on this page and leaves ui_message out of API responses. Production
moves to them on a date Tesser announces, together with the list of codes that change. Until then, those
codes keep their previous status in production, and API responses there still include ui_message.
Error Response Format
All API errors return a consistent JSON response:
Code
When no provider can serve the request
A deposit, withdrawal, rebalance or payment is routed to a provider. When none can serve it and at least
one refused with a reason, errors holds one item per distinct refusal, in the provider priority order
for that flow, with providers whose credentials aren't configured last. Two providers refusing with the
same code and message appear once, under the first of them. Read every item: the provider field tells
you which provider each one comes from. The HTTP status is the first item's.
When no provider applies to the request at all, the response is the flow's single generic "no eligible
provider" error, without a provider field: treasury-3120 (deposits, rebalances),
treasury-3320 (withdrawals) or payments-3041 (payments).
Code
Reading an Error
error_codeidentifies the cause. Branch on it and on the HTTP status, never onerror_message: the message is written for people and can change.error_messagedescribes the problem. Values such as ids are appended in parentheses, for examplePayment not found (id: ...).- Quote the response's
request_idwhen you contact Tesser support, so support can find the request. - Responses to API requests don't include
ui_message. That field holds the text Tesser's dashboard shows;error_messagecarries the same guidance. The SDKs markuiMessagedeprecated from version 0.2.1 and leave it unset for API requests, so readerrorMessageinstead.
Retrying a Request
The HTTP status says who has to act, so it also tells you whether sending the same request again can help. Each error_message says what to do next.
| Status | What it means | What to do |
|---|---|---|
400 | The request is invalid: a field is missing or wrong. | Correct the request, then send it. Sending it unchanged gets the same error. |
401, 403 | Your own API key or session is missing, invalid or not allowed. | Check your credentials. |
404 | The resource isn't in your workspace. | Check the id. |
409 | The request conflicts with the resource's current state, for example a step that's already signed. | Fetch the resource and act on its current state. |
422 | The request is valid, but something has to be set up first: by you (fund a wallet, verify an address with the provider), by the provider (an approval), or by Tesser. | Once the setup is done, send the request again with a new Idempotency-Key; the message says what's missing. |
429 | Too many requests. | Wait, then retry. |
500 | An error at Tesser. | Retry a few times with backoff. If it keeps failing, contact Tesser support with the request_id: most of these return the same error until Tesser resolves the cause. |
502 | The provider refused the request or failed. | Depends on the code: some clear on their own, others are a final refusal. The message says which. |
503 | Tesser can't use a provider right now: the provider is unreachable, or Tesser's connection or credentials for it aren't usable. | Depends on the code: some clear on their own, so retry later with backoff; others need Tesser support, and retrying won't help until Tesser fixes the cause. The message says which. |
Retry 401, 403, 429 and 5xx responses with the same Idempotency-Key. A 409 with idempotency-0001 means the first request with that key is still running: wait briefly, then retry with the same key, because a new key could run the operation twice. Tesser stores most other 4xx responses against the key and replays them for 24 hours, so once you've fixed the cause, send the request with a new key. See Idempotent Requests.
A step that fails after the request was accepted carries its reason in status_reasons, with an error_code and a message but no HTTP status. Decide on the error_code; the message says whether to create a new payment or transfer. When Tesser can't yet confirm whether a provider or the network executed a step, the step isn't failed: its funds stay reserved until the outcome is known, so don't create a new one for it.
Error Code Convention
Error codes follow the format {domain}-{NNNN}, where domain identifies the resource area (e.g., accounts, payments, treasury) and NNNN numbers the error within it. The digits don't encode the HTTP status: the tables list each code's status, and every response carries it. A code keeps its meaning for good, and the number of a removed code is never reused.
Error Code Reference
Error codes are grouped into the pages below by the area of the API that returns them. Step
status_reasons codes (the transfers- prefix) are on the Platform Errors page.
| Category | Code prefixes | Covers |
|---|---|---|
| Payment Errors | payments- | Creating, locking, signing, and executing payments, including Travel Rule and wallet risk screening outcomes |
| Treasury Errors | treasury- | Deposits, withdrawals, and rebalances, including wallet step signing and liquidity-provider execution |
| Account Errors | accounts- | Account creation, lookup, and eligibility for funds movement |
| Entity Errors | tenants-, counterparties- | Tenant and counterparty records |
| Provider Errors | circle-, capa-, kraken-, openfx-, zuba- | Credentials, configuration, and upstream failures for liquidity, custody, and payout providers |
| Platform Errors | transfers-, networks-, currencies-, idempotency-, vault- | Step status reasons, network and currency validation, idempotency keys, and the tokenization vault |
| Signing Errors | signing- | Fetching the unsigned payload that the SDK's signing helpers sign, and the stamp that authenticates that request |