Read one settlement
/ settlements/ {id}Return one settlement whole: both legs, the fees taken between them, the route that carried it and the failure it holds if it has one. It is the same object the list answers with, so a detail view opened from a row renders without a second vocabulary.
A settlement 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 settlement 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
- idstring <uuid>required
The settlement being addressed. A value that is not a UUID answers
422parameter_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 settlement resolved.
- idstring <uuid>required
The settlement's opaque identifier.
- objectstringrequired
The object's type, always
settlement. - environment_idstring <uuid>required
The environment this settlement 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. - uda_idstring <uuid>required
The unified deposit address the money arrived at, and what the settlement was raised from.
- statusstringrequiredenum created · refill_pending · awaiting_credit · refill_confirmed · routing · completed · retrying · failed · refunded
Where the settlement stands. It is raised in
createdand moves throughrefill_pending,refill_confirmedandroutingtocompleted;retryingandfailedare reachable from routing, andrefundedis terminal besidecompleted.Show full descriptionShow less
awaiting_creditis where a settlement the workspace's gas credit cannot pay for parks: it is reached fromcreatedorrefill_pending, a top-up resumes it, and waiting to be paid for is not a failure, so it consumes no retry. A client reads this value and never sets it: there is no create and no refund on this family, andPOST /settlements/{id}/retryis the one move a client can ask for.
Show 8 more fieldsShow fewer fields
One leg of a settlement: where the money sat, on which network, in which asset, and the transaction that moved it. Both legs carry this one shape, the inbound deposit and the outbound settlement alike, so a client renders either with the same component and reads the same keys from each.
Show full descriptionShow less
A leg still in flight is described rather than omitted.
completed_atis what says a leg has landed: it isnulluntil then, whileamountandtx_hashread what the carrier last reported, zero (amount: "0") and the empty string before it reported anything.- addressstringrequired
The address this leg moved to or from: the deposit address the money arrived at on the inbound leg, and the destination it was sent to on the outbound one.
- network_idinteger <int32>required
The chain the leg 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. - network_namestringrequired
The network's wire name, carried beside the identifier so a row renders without resolving the catalogue first.
How much moved on this leg, as a
TokenAmountin the leg's own asset and its decimals on the leg's network (amount: "1500000000"andamount_decimal: "1500"is 1500 USDT at six decimals).Show full descriptionShow less
On the outbound leg it is what the carrier last reported arriving, zero before it reported anything, and it can be set on a leg that is retrying.
- asset_symbolstringrequired
The asset's ticker, or the network's native symbol where the leg moved a native asset.
- asset_addressstringrequired
The asset's contract address on this network, and the zero address where the leg moved the network's native asset.
- tx_hashstringrequired
The transaction that moved the money on this leg, or the empty string before the carrier reported one, so the key is always readable.
Show full descriptionShow less
A transaction on the outbound leg does not mean it landed: a leg that sent one and is retrying carries it too, so a client reads
completed_atto know. - completed_atstring | null <date-time>required
When this leg finished: on the inbound leg, when the settlement was opened for the confirmed deposit; on the outbound one, when the settlement completed, and
nulluntil it has.
- addressstringrequired
One leg of a settlement: where the money sat, on which network, in which asset, and the transaction that moved it. Both legs carry this one shape, the inbound deposit and the outbound settlement alike, so a client renders either with the same component and reads the same keys from each.
Show full descriptionShow less
A leg still in flight is described rather than omitted.
completed_atis what says a leg has landed: it isnulluntil then, whileamountandtx_hashread what the carrier last reported, zero (amount: "0") and the empty string before it reported anything.- addressstringrequired
The address this leg moved to or from: the deposit address the money arrived at on the inbound leg, and the destination it was sent to on the outbound one.
- network_idinteger <int32>required
The chain the leg 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. - network_namestringrequired
The network's wire name, carried beside the identifier so a row renders without resolving the catalogue first.
How much moved on this leg, as a
TokenAmountin the leg's own asset and its decimals on the leg's network (amount: "1500000000"andamount_decimal: "1500"is 1500 USDT at six decimals).Show full descriptionShow less
On the outbound leg it is what the carrier last reported arriving, zero before it reported anything, and it can be set on a leg that is retrying.
- asset_symbolstringrequired
The asset's ticker, or the network's native symbol where the leg moved a native asset.
- asset_addressstringrequired
The asset's contract address on this network, and the zero address where the leg moved the network's native asset.
- tx_hashstringrequired
The transaction that moved the money on this leg, or the empty string before the carrier reported one, so the key is always readable.
Show full descriptionShow less
A transaction on the outbound leg does not mean it landed: a leg that sent one and is retrying carries it too, so a client reads
completed_atto know. - completed_atstring | null <date-time>required
When this leg finished: on the inbound leg, when the settlement was opened for the confirmed deposit; on the outbound one, when the settlement completed, and
nulluntil it has.
- addressstringrequired
What was taken between the two legs, and how it divides. Every figure is a
TokenAmountin the deposit leg's own asset and decimals, so the four always add up in one unit.Everything taken between the legs. It is what the deposit's amount is reduced by before the outbound leg is sent.
The settlement fee itself, before it is divided between the carrier and Stridge.
The carrier's share of the fee. It is zero where no carrier routed the settlement.
Stridge's share of the fee.
How the money got from one leg to the other: the kind of move it was, who carried it, and how long it took.
- typestringrequired
The settlement's corridor: whether it stayed on one network or crossed networks, and whether it kept the deposited asset or changed it.
Show full descriptionShow less
It is one of
same_chain_same_token,same_chain_diff_token,cross_chain_same_tokenandcross_chain_diff_token, the values the list'sscenariofilter accepts. The value set is open rather than a closed enum, so a new corridor is an additive contract change that adds the value here and to thescenariofilter together: a client matches the corridors it knows and labels an unrecognised value as one it does not. - providerstring | nullrequired
The carrier that routed the settlement, or
nullwhere none did (a move that stayed on one network needs no carrier). It is a name rather than an identifier, and the value set is open. - time_msinteger <int32>required
How long the route took, in milliseconds, measured from the settlement being opened to its completion. It is
0while the settlement is still in flight.
- typestringrequired
- errorstring | nullrequired
Why the settlement failed, or
nullon every settlement that has not. It is developer documentation rather than user copy: a surface that renders a specific failure maps the status and this value onto its own message. Where a settlement stands on its retries, and whether a person may retry it by hand. It is carried on every settlement, retried or not, so a surface can say what a retry would do before anyone asks for one.
Show full descriptionShow less
Like any nested hash it has no identifier and no
objectof its own: it means nothing apart from the settlement that carries it.- attemptsinteger <int32>required
How many attempts the settlement has had: the original dispatch and every retry since, by Stridge and by hand together. It is the count the attempts list numbers, so the latest attempt's
attempt_numberequals it. - max_retriesinteger <int32>required
How many retries Stridge makes on its own before it fails the settlement. A retry by hand while the settlement is
retryingspends one of them; one fromfailedis not held to it. - last_attempt_atstring <date-time>required
When the latest attempt started; the original dispatch until the first retry.
- next_automatic_attempt_atstring | null <date-time>required
When Stridge retries next. It is set while the settlement is
retrying, andnullin every other state. - stopped_reasonstring | nullrequiredenum retry_limit_exceeded · tron_resources_exhausted · null
Why a
failedsettlement's automatic retries ended, andnullin every other state.retry_limit_exceededis Stridge having made every attempt it makes on its own.Show full descriptionShow less
tron_resources_exhaustedis a TRON deposit address that no longer holds the TRX for its own network fee: an automatic retry does not refill it, and a retry by hand does. - retryablebooleanrequired
truewhen a retry by hand is accepted from where the settlement stands: it isretryingorfailed, and its deposit is not being refunded. It says nothing about who may; a role that may not still answers403. - available_atstring | null <date-time>required
The earliest a retry by hand is accepted, when the last one was less than five minutes ago.
nullwhen one is accepted now, and when none is (retryableisfalse).
- attemptsinteger <int32>required
- created_atstring <date-time>required
When the settlement was raised. RFC3339 UTC,
Zsuffixed. - updated_atstring <date-time>required
When the settlement last moved. It equals
created_aton one that has not moved since it was raised.
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