Read one routing
/ routings/ {id}Return one routing whole: both sides of the move, the quote it was raised against, what landed, and the carrier's own account of how it went. It is the same object the list answers with, so a detail view opened from a row renders without a second vocabulary.
A routing belonging to another environment answers
404resource_missing, identical to an identifier that exists nowhere. The scope is not a filter applied after the object was found: a routing outside it does not exist for the request, and answering403would confirm that the identifier does.A resetting sandbox.
While a sandbox's reset runs it answers
409environment_resetting: nothing is served for a sandbox until its reset finishes.
Parameters
Path
- idstringrequired
The routing being addressed, as its
idreads: a UUID, followed by-r<n>and-p<n>on the routing of a retried or credit-parked settlement; the UUID reads in either case. A value of any other shape answers422parameter_invalidnamingid.
Headers
- X-Stridge-Environmentstring <uuid>optional
Which environment the request acts inside, on an operation a session and an API key both call. Learn more
Show full descriptionShow less
It is required under a person's session, exactly as
EnvironmentHeaderdescribes: a session request that omits it answers400withenvironment required, and one naming an environment the caller holds no membership of answers404.An API key names its own environment, so a request made with one omits this header. A key request that sends it answers
400withenvironment header not accepted, whatever it names, rather than having the header ignored: a header that is silently ignored hides the integration bug that sent it.
Responses
The routing resolved.
- idstringrequired
The routing's identifier. It is the identifier of the settlement the routing carries, followed by
-r<n>when the settlement was retried and-p<n>when its credit was parked, so each dispatch of one settlement is its own routing. A client reads it as an opaque string. - objectstringrequired
The object's type, always
routing. - environment_idstring <uuid>required
The environment this routing is scoped to. It is carried on the object rather than implied by the request, so the scope a client rendered is the scope the server answered in.
- livemodebooleanrequired
truewhenenvironment_idnames aliveenvironment andfalsein a sandbox. It is carried on the object itself, so a payload read on its own, a logged response or a webhook body, still says which side of the boundary it came from. - settlement_idstring | null <uuid>required
The settlement this routing carries, or
nullon a routing raised outside one. v1 reported the same absence as an empty string, which a client could not tell from an identifier it failed to read. - statestringrequiredenum created · quoting · quoted · executing · awaiting_destination · fallback · completed · failed
Where the routing stands. It is raised in
created, is priced throughquotingandquoted, moves throughexecutingandawaiting_destination, and ends incompletedorfailed;fallbackis the second route tried after the first could not carry it.Show full descriptionShow less
completedandfailedare the two terminal states, and they are the pair the success rate is computed over. A client reads this value and never sets it.
Show 12 more fieldsShow fewer fields
- scenariostringrequired
Which of the four corridors the move is:
same_chain_same_token,same_chain_diff_token,cross_chain_same_tokenorcross_chain_diff_token.Show full descriptionShow less
It is free text rather than an enumeration because it describes the shape of a corridor rather than a state a client branches on, and a corridor named later must not break a client reading this one.
- providerstring | nullrequired
The carrier that executed the move, or
nullon a routing no carrier has taken yet. The set is open: a carrier a client does not recognise reads the same as no carrier at all rather than failing the row it arrived on. One end of a routing: where the money sat, on which chain, in which asset, and how much of it. Both ends carry this one shape, so a client renders either with the same component.
- network_idinteger <int32>required
The chain this end sits on, as the chain's own numeric identifier (
60is Ethereum,8453is Base). It is not a UUID and it addresses nothing in this API: it names a network, and a client resolves it against the network catalogue. - asset_addressstringrequired
The asset's contract on that chain, or the chain's native-asset sentinel when the money is the chain's own coin.
- addressstringrequired
The address the money sat at on this end of the move.
How much sat here, in this end's asset. Its
amountis"0"on a destination nothing has landed at yet.
- network_idinteger <int32>required
One end of a routing: where the money sat, on which chain, in which asset, and how much of it. Both ends carry this one shape, so a client renders either with the same component.
- network_idinteger <int32>required
The chain this end sits on, as the chain's own numeric identifier (
60is Ethereum,8453is Base). It is not a UUID and it addresses nothing in this API: it names a network, and a client resolves it against the network catalogue. - asset_addressstringrequired
The asset's contract on that chain, or the chain's native-asset sentinel when the money is the chain's own coin.
- addressstringrequired
The address the money sat at on this end of the move.
How much sat here, in this end's asset. Its
amountis"0"on a destination nothing has landed at yet.
- network_idinteger <int32>required
What the quote promised would land at the destination, in the destination asset. Its
amountis"0"until a quote exists.- amountstringrequired
The amount in the asset's base units: digits only, no sign, no exponent and no leading zero (
"0"for zero). At most a uint256, the widest on-chain amount. - amount_decimalstringrequired
The exact human amount,
amount / 10^decimals: no sign, no exponent, no leading zero before the point other than a lone0, and no trailing zero after it ("12.5","0.000001","3"). - decimalsinteger <int32>required
The asset's decimals on its network, which
amount_decimalis scaled by. - assetstringrequired
The symbol of the asset the amount is in (
USDC), so a fee or a total never mixes units.
- amountstringrequired
What actually landed at the destination, in the destination asset. Its
amountis"0"until the destination leg lands, so a client compares it againstestimated_outputto read the slippage a completed routing took.- amountstringrequired
The amount in the asset's base units: digits only, no sign, no exponent and no leading zero (
"0"for zero). At most a uint256, the widest on-chain amount. - amount_decimalstringrequired
The exact human amount,
amount / 10^decimals: no sign, no exponent, no leading zero before the point other than a lone0, and no trailing zero after it ("12.5","0.000001","3"). - decimalsinteger <int32>required
The asset's decimals on its network, which
amount_decimalis scaled by. - assetstringrequired
The symbol of the asset the amount is in (
USDC), so a fee or a total never mixes units.
- amountstringrequired
- source_tx_idstringrequired
The transaction that moved the money out of the source, or the empty string before execution begins.
- destination_tx_idstringrequired
The transaction that credited the destination, or the empty string until it lands. A routing that failed carries the empty string here permanently.
- errorstring | nullrequired
Why the routing failed, or
nullon every routing that has not. It is developer documentation rather than user copy. What the carrier reported, or
nullbefore any carrier has run — which is every routing still increatedorquoting.- providerstringrequired
The carrier this account came from.
- polled_atstring <date-time>required
When the carrier was last asked. RFC3339 UTC,
Zsuffixed. - statusstringrequiredenum completed · failed
How the carrier says the move went. It is the carrier's opinion rather than the routing's state: a carrier may report
completedwhile the routing waits for the credit to be verified on chain. - substatusstringrequired
The carrier's own finer-grained label beneath
status, passed through verbatim because each carrier names its stages differently. - provider_errorstringrequired
What the carrier said went wrong, or the empty string when it said nothing.
The credit the carrier claims to have made, or
nullwhile no destination transaction exists.The chain's own answer about that credit, or
nullbefore anything has been checked — which is every routing that has only been quoted.- advancedobjectrequired
The carrier's opaque payload, passed through unread. It is the one place in this family where the shape is not described, because it is the carrier's vocabulary and not this API's; a client renders it as data rather than branching on it.
- providerstringrequired
- created_atstring <date-time>required
When the routing was raised. RFC3339 UTC,
Zsuffixed. - updated_atstring <date-time>required
When the routing last moved. It equals
created_aton one that has not moved since it was raised, so the two together are the completion span a terminal routing took.
Errors
The error.code values this operation can return. Each one links to its entry in the error catalogue, which explains the cause and the fix.
- 400environment_requiredEnvironment required
- 400header_invalidInvalid header
- 400422parameter_invalidInvalid parameter
- 400parameter_unknownUnknown parameter
- 401api_key_not_acceptedAPI key not accepted
- 401authentication_requiredAuthentication required
- 401publishable_key_not_acceptedPublishable key not accepted
- 401token_invalidInvalid or expired token
- 403membership_suspendedMembership suspended
- 403permission_deniedPermission denied
- 404environment_not_foundEnvironment not found
- 404resource_missingNo such object
- 409environment_provisioningEnvironment provisioning
- 409environment_resettingEnvironment resetting
- 429rate_limitedToo many requests