Errors
When a request fails, you get a 4xx or 5xx status and a single error object that tells you what went wrong. Point at a member below, or select it, to see it in the example.
{ "error": { "type": "invalid_request_error", "code": "parameter_unknown", "message": "amout is not a parameter of this operation", "param": "amout", "doc_url": "https://docs.stridge.com/errors#parameter_unknown", "request_log_url": "/v2/request-logs/req_0123456789abcdefghijklmn" }}
- The broad kind of failure:
invalid_request_error,authentication_error,permission_error,idempotency_error,rate_limit_errororapi_error. - The exact condition, one of the codes below. Branch on this. A code never changes meaning.
- A human-readable explanation. Its wording can change in any release, so never branch on it.
- The parameter, body member or header the failure is about, or
null. Nested members are dotted, such asamount.decimals. - A link to this code's entry on this page:
https://docs.stridge.com/errors#<code>. - Where to find the request in your request log in the dashboard. It ends in the response's
Request-Id. It isnullwhen the request carried no credential, or one the API refused.
Every member is present on every failure. A few codes add members after these, when you need more to act on the failure:
| Code | Adds |
|---|---|
payout_reference_taken |
|
settlement_retry_too_soon |
|
step_up_required | What satisfies it: |
Each operation's page lists the codes it can return and shows example error bodies.
Handling a failure
Branch on the status first, then on error.code when the body has one. That order handles every failure, including the few with an older body.
Read the status
Every failure has a
4xxor5xxstatus. The status codes below say what each one means.Then read the body
The body has
error.codeBranch on
error.code. A code never changes meaning. Don't branch onmessage: its wording can change in any release.The body has no
error.codeTwo kinds of failure use an older, simpler body,
{ "success": false, "code": <status>, "error": "<text>" }. The status tells you what happened:- A path that matches no operation, such as a mistyped one, returns
404with{ "success": false, "code": 404, "error": "not found" }. - An unexpected failure on our side returns its
5xxstatus, such as{ "success": false, "code": 500, "error": "internal server error" }. Retry with the sameIdempotency-Key. See Idempotency.
- A path that matches no operation, such as a mistyped one, returns
Keep the Request-Id
Every response, success or failure, has a
Request-Idheader:req_followed by 24 lowercase letters and digits. Include it whenever you ask us about a request.
Status codes
The status tells you what kind of failure you have before you read the body. Each status that has error codes links to them in the catalogue below.
- 2xxSuccess
- 4xxRequest
- 401, 403Auth
- 429Rate limit
- 5xxServer
- 200, 201Success.
201means the request created an object. - 204Success, with no body.
- 400The request can't be read, or carries something the operation doesn't take. For example: an unknown parameter, a malformed header, a body that isn't valid JSON, a search query the search doesn't support, or an6 codes
Idempotency-Keyreused for a different request. - 401No credential, or one the API doesn't accept. See Authentication.9 codes
- 403The credential isn't allowed to make this request.4 codes
- 404One of three things. The object doesn't exist in the credential's environment: an object in your other environment returns5 codes
404too. Or the operation isn't available to this environment. Or no operation lives at that path. - 409The request conflicts with the current state of an object. It also means the sandbox is being reset or set up, or an earlier request with the same15 codes
Idempotency-Keyis still running. - 413, 415The body is larger than 1 MiB, or isn't sent as2 codes
application/json. - 422A value the operation doesn't take, or a missing required one. It also means the current state of your funds or routes can't carry out the request.13 codes
- 429You've spent a rate budget. See Rate limits.3 codes
- 503Something the request needs isn't available right now: a price, a route quote, or a deposit address that isn't ready yet. Retry after a short wait.4 codes
- 5xxSomething failed on our side. Retry with the same
Idempotency-Key. See Idempotency.
Error codes
Here is every code the API returns, grouped by type. Search by code, title or cause, or narrow the list by type and status. Open a code to see what causes it, what to do, and which operations return it.
No error code matches these filters.
The operation is environment-scoped and the request names no environment.
Causes
- The
X-Stridge-Environmentheader is missing or empty (environment required).
What to do
Send the environment's id in
X-Stridge-Environment.Returned by
Every operation but these 6:
- The
The environment the request names does not exist, or the caller holds no membership in it.
Causes
X-Stridge-Environmentnames an id that exists nowhere (environment not found).- The environment belongs to a workspace the caller is not a member of.
What to do
Send the id of an environment of a workspace you belong to.
Returned by
Every operation but these 6:
The sandbox the request names is being reset, and nothing is served for it until the reset ends.
Causes
- A reset of the sandbox is running (
environment resetting).
What to do
Wait for the reset to finish, which the dashboard shows, then retry.
Returned by
Every operation but these 3:
- A reset of the sandbox is running (
The API the request reached (live or sandbox) does not serve this operation for the caller.
Causes
- The operation is served to live secret keys only and a sandbox secret key (
sk_sbx_) called it: a sandbox key reaches the sandbox, which does not serve it (this operation is served to live keys only). - A person's session, or a request with no credential, reached an API that does not serve the operation (
this deployment does not serve this operation). A credential the operation never accepts is refused before that: a publishable key answers401publishable_key_not_accepted, and a live secret key that reached the sandbox answers401token_invalid. - The API the key reaches does not serve the operation for another reason (
this deployment does not serve this operation).
What to do
Call the operation with a live secret key (
sk_live_), or from a person's session in the dashboard.Returned by
- GETList webhook endpoints/webhook-endpoints
- POSTCreate a webhook endpoint/webhook-endpoints
- GETGet a webhook endpoint/webhook-endpoints/{endpoint_id}
- PATCHUpdate a webhook endpoint/webhook-endpoints/{endpoint_id}
- DELETEDelete a webhook endpoint/webhook-endpoints/{endpoint_id}
- POSTRotate a webhook endpoint's signing secret/webhook-endpoints/{endpoint_id}/rotate-secret
- The operation is served to live secret keys only and a sandbox secret key (
The object the request names does not exist in the environment.
Causes
- The id names no object (
webhook endpoint not found,webhook event not found,api key not found,routing policy not found,payout not found,simulation not found,file not found,notification not found). - The id names no vault or gas station of the environment (
vault not found,gas station not found). - The membership, invitation, environment or reset the path names is not the workspace's (
member not found,invitation not found,environment not found,environment reset not found), or an invitation token resolves to nothing, which answer the same as one that exists nowhere. - The workspace the path names does not exist, or the caller holds no membership in it (
workspace not found), which answers the same as one that exists nowhere. - The caller's own membership, session or pending address change the request names does not exist (
membership not found,session not found,email change not found). - The workspace holds no such billing object (
top-up not found,no payment method on file,no such setup intent). - A body member or a path parameter names an object the environment does not hold (
uda not found,vault not found,payout not found,source wallet not found,target wallet not found). - A sandbox helper names a network the deposit address or the vault holds no address on (
uda has no address on this network,vault has no wallet on this network). - A sandbox chain read names a block, a transaction, an address or an object the chain or the environment does not hold (
block not found,transaction not found,address not found,object not found). - The network catalogue carries no entry at the chain and address named (
network not found). - The symbol is outside Stridge's asset registry (
unknown asset symbol). - The object belongs to another environment, which answers the same as one that exists nowhere.
What to do
Check the id, and that the request names the environment the object belongs to.
Returned by
Every operation but these 22:
- GETList settlements/settlements
- GETList routings/routings
- GETSearch routings/routings/search
- GETList routing policies/routing-policies
- GETRead what the environment is worth/balances/total-asset-value
- GETList the environment's simulations/sandbox/simulations
Show 16 more
- GETList deposits/deposits
- GETSearch deposits/deposits/search
- GETList deposit addresses/uda
- POSTCreate a deposit address/uda
- GETQuote a deposit's route/uda/quote
- GETList what deposit addresses accept/uda/supported-assets
- GETList transactions/transactions
- GETList gas stations/gas-stations
- GETList vaults/vaults
- GETList treasuries/treasuries
- GETList payouts/payouts
- GETList events/events
- GETList webhook endpoints/webhook-endpoints
- POSTCreate a webhook endpoint/webhook-endpoints
- GETRead the network catalogue/networks
- GETPrice a set of symbols/prices
- The id names no object (
The request carries a parameter or a body member the operation does not declare.
Causes
- A query parameter the operation does not declare, a misspelling included.
- A body member the operation's body does not declare, at any depth, a misspelling or a name in another case included.
- A publishable key sent a query parameter or a body member outside the parameters the operation declares for a browser, an owner among them (
parameter not accepted with a publishable key).
What to do
Remove the parameter, or correct its name;
paramnames it.Returned by
Every operation.
A parameter or a body member has a value the operation does not take.
Causes
- A search's
querydoes not parse, names a field the search does not take, uses an operator its field does not take, gives a value outside the field's set, is longer than its maximum, or is not UTF-8 or holds a NUL character (400, answered only by aGET /<resource>/searchendpoint; every otherparameter_invalidis422). - A list's
limitis not an integer from 1 to its maximum, or itspageis not a token Stridge minted for that list and environment. - A query parameter's value is outside its schema, or the parameter is sent more than once.
- A path parameter is not of its format, such as a
workspace_idthat is not an id (workspace_id is not a uuid). - A body member is of the wrong type,
null, or outside its length, format, item count or set. - A
TokenAmounta body sends whose members disagree (itsamount_decimalis not exactlyamount / 10^decimals). - A webhook endpoint's
url,nameorenabled_eventsbreaks the rules the operation states. - A contract address that is not well-formed for its chain (
contract address is not valid on this network). - More symbols than a price batch takes (
too many symbols: at most 25). - A routing policy's rule names an asset its network does not carry, a treasury the environment does not hold, or an address its chain does not take.
- A payout names an amount of zero, a
TokenAmountwhoseassetordecimalsare not the asset's on the chain, ausd_amountthat is not a positive decimal, an address its chain does not take, a chain or asset the environment does not support, or anexpired_atoutside its window. - A sandbox helper names an asset, an amount, an outcome, a preset or a bridge the simulation cannot run (
unknown asset,malformed amount,unknown settlement outcome,unknown bridge outcome,bridge outcome needs a cross-chain route,unknown preset,unknown payout outcome,asset not carried by the network). - A sandbox chain read names a malformed hash, address or block reference, a search longer than its bound, or more overlay items than one call takes (
malformed transaction hash,malformed address,malformed block reference,q too long,too many items). - A simulated payout names an amount that is not a positive decimal, an address its chain does not take, a chain or asset the environment does not support, a
typeoutsidenormalandforceful, anexpired_atoutside its window, or states both or neither ofamountandusd_amount.
What to do
Send a value the operation's schema allows;
paramnames the parameter. A search query uses only the fields and operators its operation names.Returned by
Every operation but these 13:
- GETRead what the environment is worth/balances/total-asset-value
- POSTRelease a held payout/sandbox/test-helpers/payouts/{payout_id}/release
- POSTFail a held payout/sandbox/test-helpers/payouts/{payout_id}/fail
- GETList what deposit addresses accept/uda/supported-assets
- GETGet a transaction/transactions/{id}
- GETRead one payout/payouts/{payout_id}
Show 7 more
- POSTReject a payout/payouts/{payout_id}/reject
- GETRetrieve an event/events/{id}
- GETGet a webhook endpoint/webhook-endpoints/{endpoint_id}
- DELETEDelete a webhook endpoint/webhook-endpoints/{endpoint_id}
- POSTPing a webhook endpoint/webhook-endpoints/{endpoint_id}/ping
- POSTRotate a webhook endpoint's signing secret/webhook-endpoints/{endpoint_id}/rotate-secret
- GETPrice one symbol, strictly/prices/{asset_symbol}
- A search's
A parameter or a body member the operation requires is missing.
Causes
- A required body member was left out, such as a webhook endpoint's
urlor a resend'sendpoint_id. - An update states no member at all.
- A required query parameter was not sent, or names nothing, such as a price batch's
symbols(symbols is required). - A sandbox helper's body leaves out what the simulation needs, or states it blank (
uda_id, network_id, asset and amount are required,owner required). - A payout states neither
amountnorusd_amount. - A payout's required string member is only whitespace.
What to do
Send the member;
paramnames it.Returned by
- GETSearch routings/routings/search
- POSTSimulate a deposit to a deposit address/sandbox/test-helpers/uda/deposits
- POSTSimulate a deposit to a vault/sandbox/test-helpers/vault/deposits
- POSTSimulate a deposit to an address the environment holds/sandbox/test-helpers/address/deposits
- POSTSimulate a payout/sandbox/test-helpers/payouts
- GETSearch deposits/deposits/search
Show 9 more
- POSTCreate a deposit address/uda
- GETQuote a deposit's route/uda/quote
- PATCHLink a deposit address to a routing policy/uda/{id}
- POSTCreate a payout/payouts
- POSTQuote a routed payout/payouts/quotes
- POSTCreate a webhook endpoint/webhook-endpoints
- PATCHUpdate a webhook endpoint/webhook-endpoints/{endpoint_id}
- POSTMove a sandbox endpoint's failing_since back/sandbox/test-helpers/webhook-endpoints/{endpoint_id}/failing-since
- GETPrice a set of symbols/prices
- A required body member was left out, such as a webhook endpoint's
The request body cannot be read as the operation's body.
Causes
- The body is not JSON, or not a JSON object.
- The operation requires a body and none was sent.
What to do
Send one JSON object as the body, as the operation's request schema describes it.
Returned by
- POSTSimulate a deposit to a deposit address/sandbox/test-helpers/uda/deposits
- POSTSimulate a deposit to a vault/sandbox/test-helpers/vault/deposits
- POSTSimulate a deposit to an address the environment holds/sandbox/test-helpers/address/deposits
- POSTSimulate a payout/sandbox/test-helpers/payouts
- POSTCreate a deposit address/uda
- PATCHLink a deposit address to a routing policy/uda/{id}
Show 6 more
- POSTCreate a payout/payouts
- POSTQuote a routed payout/payouts/quotes
- POSTCreate a webhook endpoint/webhook-endpoints
- PATCHUpdate a webhook endpoint/webhook-endpoints/{endpoint_id}
- POSTRe-enable a webhook endpoint/webhook-endpoints/{endpoint_id}/enable
- POSTMove a sandbox endpoint's failing_since back/sandbox/test-helpers/webhook-endpoints/{endpoint_id}/failing-since
The request body is larger than any operation of this API takes.
Causes
- The body is over 1 MiB (
request body too large).
What to do
Send a smaller body.
Returned by
- POSTSimulate a deposit to a deposit address/sandbox/test-helpers/uda/deposits
- POSTSimulate a deposit to a vault/sandbox/test-helpers/vault/deposits
- POSTSimulate a deposit to an address the environment holds/sandbox/test-helpers/address/deposits
- POSTSimulate a payout/sandbox/test-helpers/payouts
- POSTCreate a deposit address/uda
- PATCHLink a deposit address to a routing policy/uda/{id}
Show 6 more
- POSTCreate a payout/payouts
- POSTQuote a routed payout/payouts/quotes
- POSTCreate a webhook endpoint/webhook-endpoints
- PATCHUpdate a webhook endpoint/webhook-endpoints/{endpoint_id}
- POSTRe-enable a webhook endpoint/webhook-endpoints/{endpoint_id}/enable
- POSTMove a sandbox endpoint's failing_since back/sandbox/test-helpers/webhook-endpoints/{endpoint_id}/failing-since
- The body is over 1 MiB (
The request body is of a media type the operation does not take.
Causes
Content-Typeis notapplication/json(unsupported media type).
What to do
Send the body as
application/json.Returned by
- POSTSimulate a deposit to a deposit address/sandbox/test-helpers/uda/deposits
- POSTSimulate a deposit to a vault/sandbox/test-helpers/vault/deposits
- POSTSimulate a deposit to an address the environment holds/sandbox/test-helpers/address/deposits
- POSTSimulate a payout/sandbox/test-helpers/payouts
- POSTCreate a deposit address/uda
- PATCHLink a deposit address to a routing policy/uda/{id}
Show 6 more
- POSTCreate a payout/payouts
- POSTQuote a routed payout/payouts/quotes
- POSTCreate a webhook endpoint/webhook-endpoints
- PATCHUpdate a webhook endpoint/webhook-endpoints/{endpoint_id}
- POSTRe-enable a webhook endpoint/webhook-endpoints/{endpoint_id}/enable
- POSTMove a sandbox endpoint's failing_since back/sandbox/test-helpers/webhook-endpoints/{endpoint_id}/failing-since
A header the operation declares is malformed, sent more than once, or required and not sent.
Causes
Idempotency-Keyis longer than 255 characters (idempotency key too long).- A required header, such as a sandbox helper's
Idempotency-Key, was not sent (Idempotency-Key is required). - A secret key was sent beside
X-Stridge-Environment, which a key never takes, because the key names its own environment (environment header not accepted).
What to do
Send the header once, in the form the operation declares;
paramnames it.Returned by
Every operation.
Another webhook endpoint of the environment already delivers to that URL.
Causes
- The
urlis already registered in the environment (webhook endpoint url already registered in this environment).
What to do
Update the endpoint that holds the URL, or delete it first.
- The
The environment already holds as many webhook endpoints as it may.
Causes
- The environment has 5 endpoints (
webhook endpoint limit reached: 5 per environment).
What to do
Delete an endpoint the environment no longer needs, then create the new one.
- The environment has 5 endpoints (
The endpoint is a legacy endpoint (
event_payload: legacy), and its signing secret cannot be rotated.Causes
POST /webhook-endpoints/{endpoint_id}/rotate-secretnamed a legacy endpoint (a legacy webhook endpoint's secret cannot be rotated). Its receiver verifies the one hex signature its deliveries carry with the secret it holds, which cannot carry a second secret beside it.
What to do
Create an endpoint through
/v2for the receiver, verify its deliveries with the Standard Webhooks secret its create answers, then delete the legacy endpoint. An endpoint created through/v2can be rotated with an overlap.The sandbox is still being provisioned and is not ready for its first call.
Causes
- The sandbox was created moments ago and its accounts do not exist yet (
environment provisioning). - A reset was started before the sandbox finished provisioning (
environment provisioning).
What to do
Retry shortly; the state clears on its own. Gas stations and vaults are created just after, so they can be missing from a read for a moment once a call stops answering this; read them again until they appear.
Returned by
Every operation.
- The sandbox was created moments ago and its accounts do not exist yet (
The network the request names is not one the sandbox simulates.
Causes
network_idnames a network Stridge does not enable, or one the sandbox does not run (network not simulated).
What to do
Name one of the networks
GET /sandbox/test-helpers/optionslists.Returned by
The payout is not held, so a release or a fail has nothing to decide.
Causes
- The payout was not created with
outcomehold, or a release, a fail or the lapse of its hold (one minute after its transaction's broadcast, or sooner when the transaction itself expires on its chain first) already decided it (payout not held (status confirmed)).
What to do
Read the payout (
GET /payouts/{payout_id}) to see where it went; only a held payout is decided.- The payout was not created with
The deposit is in an asset the deposit address does not accept, so it has no settlement to choose an outcome for.
Causes
- A simulated deposit in an asset the address does not accept states
settlementorbridge(asset not accepted by the uda (accepted on 8453: USDC)).
What to do
Leave
settlementandbridgeout to simulate the unaccepted deposit, or send an asset the message names.- A simulated deposit in an asset the address does not accept states
A payout of the vault already holds the
reference_id, so the create pays nothing and names that payout inerror.payout.Causes
- The vault holds a payout under the
reference_id, in flight or one that may have paid (payout reference already used by payout 9b2d4f61-3c8a-4e7b-a1d5-6f0e2c9b8a47).
What to do
Read the payout
error.payoutnames; it is the payment the reference already made. Send a newreference_idfor a new payment.- The vault holds a payout under the
The payout is
confirmed,rejected,expiredorfailed, so it can no longer be rejected.Causes
- A reject names a payout in a terminal state (
payout is already in a final state).
What to do
Read the payout to see where it ended; a terminal payout is not changed by a client.
- A reject names a payout in a terminal state (
The source holds less of the asset than the request moves.
Causes
- A payout's vault lacks the amount (
insufficient balance). - A transfer that sweeps the whole balance finds nothing available to move (
transfer amount must be positive).
What to do
Fund the source, or move less.
- A payout's vault lacks the amount (
The vault cannot pay the network fee the payout's transaction needs.
Causes
- The vault's wallet on the chain lacks the native coin for the fee (
insufficient gas for transaction).
What to do
Fund the vault's wallet with the chain's native coin, or let a gas station sponsor it, then retry.
- The vault's wallet on the chain lacks the native coin for the fee (
The vault holds no wallet on the chain the payout names, so nothing can pay from it there.
Causes
- The payout names a
network_symbolthe vault has no wallet on (vault has no wallet on this network).
What to do
Pay on a chain the vault holds a wallet on, or from a vault that holds one on this chain.
- The payout names a
Payouts to another network or asset are off, across Stridge or for this workspace.
Causes
- A payout names another network or asset while they are off (
payouts to another network or asset are not enabled).
What to do
Ask Stridge to enable them, or pay on the vault's own network and asset.
- A payout names another network or asset while they are off (
A payout to another network or asset cannot pay from this vault's network or asset.
Causes
- The vault's network has no route family (
payouts to another network or asset are not supported from this network). - The source asset is native TRX (
payouts to another network or asset are not supported from native trx).
What to do
Pay from a vault on a supported network and asset.
- The vault's network has no route family (
A routed payout's vault cannot pay its own gas and no gas station can.
Causes
- The network has no gas station for the vault (
no gas station funds the vault gas on this network).
What to do
Fund the vault's wallet with the chain's native coin, then retry.
- The network has no gas station for the vault (
The network's fee cannot be read right now, so the payout cannot be sized against the vault.
Causes
- The fee estimate did not answer (
the network's miner fee cannot be priced right now; try again later). - A payout of a token that pays its own network fee, whose fee is not priced yet (
the network fee a payout of <asset> pays in <asset> itself cannot be priced right now; try again later).
What to do
Retry later.
- The fee estimate did not answer (
The payout names a quote past its
expires_at.Causes
quote_idnames a quote that lapsed (quote expired).
What to do
Quote the payout again and create it with the new
quote_id.Returned by
The routed payout has sent its source transaction, so it can no longer be rejected.
Causes
- A reject named a routed payout past that point (
payout already sent its source transaction).
What to do
Wait for the route to end.
- A reject named a routed payout past that point (
Stridge has started sending the payout's payment, so it can no longer be rejected.
Causes
- A reject named a payout whose transaction Stridge had already started (
payout already started).
What to do
Wait for the payout to end; it reads
confirmedorfailed.- A reject named a payout whose transaction Stridge had already started (
The endpoint is off because a person turned it off, not because it was failing.
Causes
POST /webhook-endpoints/{endpoint_id}/enablenamed an endpoint withis_active: false.
What to do
Turn it on with
PATCH /webhook-endpoints/{endpoint_id}and{"is_active": true}.The operation exists only inside a sandbox, and the environment the request names is a live one.
Causes
- A sandbox-only operation named a live environment (
not a sandbox environment).
What to do
Name the workspace's sandbox environment in
X-Stridge-Environment; a live environment's money moves on real chains, through the ordinary operations.Returned by
- GETRead what the test helpers accept/sandbox/test-helpers/options
- POSTSimulate a deposit to a deposit address/sandbox/test-helpers/uda/deposits
- POSTSimulate a deposit to a vault/sandbox/test-helpers/vault/deposits
- POSTSimulate a deposit to an address the environment holds/sandbox/test-helpers/address/deposits
- POSTSimulate a payout/sandbox/test-helpers/payouts
- POSTRelease a held payout/sandbox/test-helpers/payouts/{payout_id}/release
Show 4 more
- A sandbox-only operation named a live environment (
The settlement is not
retryingorfailed, so a retry has nothing to send out again.Causes
- A retry names a settlement in any other state (
settlement is not retryable: only a retrying or failed settlement is).
What to do
Read the settlement.
retry.retryablesays whether a retry is accepted from where it stands.- A retry names a settlement in any other state (
The settlement's deposit is being refunded, and the refund owns it until it ends.
Causes
- A retry names a settlement with a refund moving the funds (
settlement is being refunded and cannot be retried).
What to do
Wait for the refund to end. A refund that lands leaves the settlement
refunded; one that fails leaves it retryable again.- A retry names a settlement with a refund moving the funds (
The request carries no credential.
Causes
- The request has no
Authorizationheader (missing authentication token). - The operation is a server's alone and the request carries a person's session rather than a secret key (
secret key required). - The operation is the browser's alone and the request carries a person's session rather than the publishable key (
publishable key required).
What to do
Send a bearer token in
Authorization, a session token from signing in to the dashboard.Returned by
Every operation.
- The request has no
The bearer token is malformed, expired, revoked, or not one this operation accepts.
Causes
- The access token expired (
invalid or expired token). - The session was signed out or revoked.
- The account the session was signed in to no longer exists (
no active session). - A publishable key no environment holds, or one rolled past its overlap (
invalid publishable key). - A secret key no environment holds (
invalid api key). - A secret key that was revoked, expired, or rolled past its overlap (
api key is not active). - A secret key sent to the API that does not serve its kind of environment, which Stridge prevents by routing a key by its prefix (
sandbox api key reached the live api,live api key reached the sandbox api).
What to do
Refresh the session, or sign in again, and retry with the new token. For a secret key that reached the API for the other kind of environment, send it unchanged to the same base URL as every other key: Stridge routes it by its prefix, so a sandbox key reaches the sandbox and a live key reaches live.
Returned by
Every operation.
- The access token expired (
The request carries an API key where none is accepted.
Causes
- The operation is a person's alone, such as the account's administration (API keys, the team, environments, go-live), and does not list
apiKeyAuth(api key not accepted). - The key holds only the scopes
/v1reads (uda,wallet,depositand the rest), and no catalog permission (api key not accepted). - The key was sent in an
X-API-Keyheader, which/v2does not read (api key not accepted, with a hint to send it as a bearer token).
What to do
Send a secret key as
Authorization: Bearer <key>to/v2, on an operation that listsapiKeyAuth, and mint a key holding catalog permissions for it; call a person's operation with a person's session.Returned by
Every operation.
- The operation is a person's alone, such as the account's administration (API keys, the team, environments, go-live), and does not list
The request carries the environment's publishable key where none is accepted.
Causes
- The operation does not list
publishableKeyAuth: it is a server's or a person's (publishable key not accepted).
What to do
Call the operation from your server with a secret key, or call one that lists
publishableKeyAuthfrom the browser.Returned by
Every operation.
- The operation does not list
The operation acts for one end customer and the request carries no client secret.
Causes
- The request sent a publishable key without
X-Stridge-Client-Secret(client secret required).
What to do
Mint a customer session from your server (
POST /customer-sessions), claim its client secret in the browser, and send the session token inX-Stridge-Client-Secret.- The request sent a publishable key without
The client secret or session token is not one this environment issued.
Causes
- The value is unknown, malformed, or was issued for another environment (
client secret invalid).
What to do
Fetch a fresh client secret from your server and claim it.
- The value is unknown, malformed, or was issued for another environment (
A customer session's client secret was sent where its session token belongs.
Causes
- A
css_client secret was sent to an operation other than the claim (client secret unclaimed).
What to do
Claim the client secret at
POST /customer-sessions/claimand send the session token it answers.- A
The customer session has passed its
expires_at.Causes
- The client secret or the session token is older than the session's 30 minutes (
client secret expired).
What to do
Fetch a fresh client secret from your server, claim it, and retry the request once.
- The client secret or the session token is older than the session's 30 minutes (
A secret key was sent the way only a browser sends a credential.
Causes
- A secret key arrived beside
X-Stridge-Client-Secret, or with a browserOrigin(secret key exposed in a browser: roll it).
What to do
Roll the key now: it has been exposed. Call
/v2from the browser with the publishable key and a client secret, and keep secret keys on your server.- A secret key arrived beside
The customer session does not enable the component the operation belongs to.
Causes
- The session was minted without
components.depositorcomponents.activityenabled, and the operation needs it (component not enabled).
What to do
Mint the customer session with the component enabled.
- The session was minted without
The caller's membership role, or the API key's permissions, do not permit the operation in this environment.
Causes
- A viewer asked for a write an owner or a developer may make (
owner or developer role required). - A developer asked for an act only an owner may make (
owner role required). - The role holds no permission the operation needs (
insufficient permissions). - The session has selected no workspace yet (
no organization selected). - The API key does not hold the operation's
x-stridge-permission, which the refusal names (insufficient permissions).
What to do
Ask a workspace owner to make the change, or to give your membership a role that permits it. For an API key, mint one holding the permission the refusal names.
Returned by
Every operation but these 9:
- GETRead what the test helpers accept/sandbox/test-helpers/options
- GETList the environment's simulations/sandbox/simulations
- GETRead one simulation/sandbox/simulations/{simulation_id}
- GETQuote a deposit's route/uda/quote
- GETList what deposit addresses accept/uda/supported-assets
- GETRead the network catalogue/networks
- A viewer asked for a write an owner or a developer may make (
The caller's membership of the workspace that owns the environment is suspended.
Causes
- A workspace owner suspended the membership (
membership suspended).
What to do
Ask a workspace owner to reactivate the membership.
Returned by
Every operation but these 6:
- A workspace owner suspended the membership (
The act needs a second factor the session has not shown recently enough.
Causes
- A live write was made without a step-up in the last 15 minutes (
step_up_required).
What to do
Step up with one of the methods the failure names, on the same session that made the request, then retry the same request with the same
Idempotency-Key.Returned by
- A live write was made without a step-up in the last 15 minutes (
The
Idempotency-Keywas first sent with a different request, so this one is not a retry of it.Causes
- The key was sent before with a different body or to a different object (
idempotency key replayed with a different body), refused by the shared/v2idempotency guard. - A webhook endpoint ping sent with a key already spent on a ping to another endpoint (
idempotency key replayed with a different body, the ping's own record). - A sandbox test helper called with a key already spent on another helper call, another body or another payout (
idempotency key replayed with a different body, the helpers' own record).
What to do
Send a new
Idempotency-Keyfor a new request, and the same key only to retry the same request.Returned by
- POSTRetry a settlement/settlements/{id}/retry
- POSTSimulate a deposit to a deposit address/sandbox/test-helpers/uda/deposits
- POSTSimulate a deposit to a vault/sandbox/test-helpers/vault/deposits
- POSTSimulate a deposit to an address the environment holds/sandbox/test-helpers/address/deposits
- POSTSimulate a payout/sandbox/test-helpers/payouts
- POSTRelease a held payout/sandbox/test-helpers/payouts/{payout_id}/release
Show 10 more
- POSTFail a held payout/sandbox/test-helpers/payouts/{payout_id}/fail
- POSTCreate a deposit address/uda
- POSTCreate a payout/payouts
- POSTQuote a routed payout/payouts/quotes
- POSTReject a payout/payouts/{payout_id}/reject
- POSTCreate a webhook endpoint/webhook-endpoints
- POSTPing a webhook endpoint/webhook-endpoints/{endpoint_id}/ping
- POSTRotate a webhook endpoint's signing secret/webhook-endpoints/{endpoint_id}/rotate-secret
- POSTRe-enable a webhook endpoint/webhook-endpoints/{endpoint_id}/enable
- POSTMove a sandbox endpoint's failing_since back/sandbox/test-helpers/webhook-endpoints/{endpoint_id}/failing-since
- The key was sent before with a different body or to a different object (
The first request sent with this
Idempotency-Keyis still running, so this one is refused at once and not remembered.Causes
- The same key was sent again before the first request answered (
a request with this idempotency key is still in flight).
What to do
Wait for the first request to answer, then retry with the same key and the same parameters; the retry answers what the first one did.
Returned by
- POSTRetry a settlement/settlements/{id}/retry
- POSTSimulate a deposit to a deposit address/sandbox/test-helpers/uda/deposits
- POSTSimulate a deposit to a vault/sandbox/test-helpers/vault/deposits
- POSTSimulate a deposit to an address the environment holds/sandbox/test-helpers/address/deposits
- POSTSimulate a payout/sandbox/test-helpers/payouts
- POSTRelease a held payout/sandbox/test-helpers/payouts/{payout_id}/release
Show 9 more
- POSTFail a held payout/sandbox/test-helpers/payouts/{payout_id}/fail
- POSTCreate a deposit address/uda
- POSTCreate a payout/payouts
- POSTQuote a routed payout/payouts/quotes
- POSTReject a payout/payouts/{payout_id}/reject
- POSTCreate a webhook endpoint/webhook-endpoints
- POSTRotate a webhook endpoint's signing secret/webhook-endpoints/{endpoint_id}/rotate-secret
- POSTRe-enable a webhook endpoint/webhook-endpoints/{endpoint_id}/enable
- POSTMove a sandbox endpoint's failing_since back/sandbox/test-helpers/webhook-endpoints/{endpoint_id}/failing-since
- The same key was sent again before the first request answered (
The caller made more requests to the operation than its rate limit allows in the window.
Causes
- Too many requests in the window (
too many requests).
What to do
Wait the seconds
Retry-Afternames, then retry.Returned by
Every operation.
- Too many requests in the window (
The environment has spent every simulation its budget allows in the window.
Causes
- Too many helper calls in the budget's window (
simulation budget exhausted); the options read reports what is left.
What to do
Wait the seconds
Retry-Afternames, then call again.Returned by
- POSTSimulate a deposit to a deposit address/sandbox/test-helpers/uda/deposits
- POSTSimulate a deposit to a vault/sandbox/test-helpers/vault/deposits
- POSTSimulate a deposit to an address the environment holds/sandbox/test-helpers/address/deposits
- POSTSimulate a payout/sandbox/test-helpers/payouts
- POSTRelease a held payout/sandbox/test-helpers/payouts/{payout_id}/release
- POSTFail a held payout/sandbox/test-helpers/payouts/{payout_id}/fail
- Too many helper calls in the budget's window (
The settlement was retried by hand less than five minutes ago.
error.retry_afteris the earliest the next retry is accepted.Causes
- A retry came inside the settlement's five-minute window (
settlement was retried manually too recently).
What to do
Wait the seconds
Retry-Afternames, or untilerror.retry_after, then retry. The window is per settlement.- A retry came inside the settlement's five-minute window (
The deposit address exists but could not yet be readied to detect deposits, so it is not answered.
Causes
- Registering the address for deposit detection failed for a moment (
uda address not ready for deposits).
What to do
Wait the seconds
Retry-Afternames, then retry the same request. The retry answers the address, with200, once it detects deposits.Returned by
- Registering the address for deposit detection failed for a moment (
The sandbox has no deposit address ready to hand out yet.
Causes
- A sandbox made moments ago has not derived its deposit addresses yet (
uda wallet pool exhausted).
What to do
Wait the seconds
Retry-Afternames, then retry with the sameIdempotency-Key.Returned by
- A sandbox made moments ago has not derived its deposit addresses yet (