List settlements

GET/settlements

Return the environment's settlements as a list, {object, data, has_more, url}, newest first: the order a person reads a money-movement feed in.

  • The filters are named.

    uda_id, deposit_tx_id, status, provider and scenario match exactly, and created[gte], created[gt], created[lte] and created[lt] bound created_at; together they are ANDed, and each page lists under the filters its own request sends, so a later page sends them again beside starting_after or ending_before. Any other query parameter answers 400 parameter_unknown naming it, and a value outside its schema, a bad limit or a starting_after or ending_before naming no object of this list answers 422 parameter_invalid naming it.

  • Finding the settlement of a deposit you know.

    deposit_tx_id is the hash of the transaction that paid the deposit address, matched exactly, and it answers every settlement that deposit transaction raised (one transaction can carry several transfers). It is how a withdrawal that knows its deposit hash recovers the settlement that carried it. A mistyped name such as deposit_txid answers 400 parameter_unknown naming it, never a wider list: a name the list does not declare is refused, never dropped.

Show 2 more details
  • The scope comes from the request, not from a filter.

    The environment is resolved from the credential and the X-Stridge-Environment header before any filter is read, and no filter can widen it: a settlement of another environment is on no page, uda_id naming another environment's address included.

  • A resetting sandbox.

    While a sandbox's reset runs it answers 409 environment_resetting: nothing is served for a sandbox until its reset finishes.

Parameters

Query

  • limitinteger <int32>optionaldefault 20

    The page size. A value that is not an integer from 1 to the maximum answers 422 parameter_invalid naming limit; it is never clamped.

  • starting_afterstringoptional

    A cursor: the id of an object of this list, usually the last one of the page just read. The page answered holds the objects that come right after it in the list's order. The object need not match this request's filters; its place in the order is what counts.

    Show full description

    An id that names no object of this list in this environment answers 422 parameter_invalid naming starting_after. It cannot be sent with ending_before.

  • ending_beforestringoptional

    A cursor: the id of an object of this list, usually the first one of the page just read. The page answered holds the objects that come right before it, still in the list's order, and has_more says whether there are more before them.

    Show full description

    An id that names no object of this list in this environment answers 422 parameter_invalid naming ending_before, as does sending it together with starting_after.

  • uda_idstring <uuid>optional

    Only settlements raised from deposits to this deposit address.

  • deposit_tx_idstringoptional

    Only settlements of the deposit paid by this transaction: its hash on the source chain, as deposit.tx_hash carries it, matched exactly.

  • statusstringoptionalenum created · refill_pending · awaiting_credit · refill_confirmed · routing · completed · retrying · failed · refunded

    Only settlements with this status.

  • providerstringoptional

    Only settlements this carrier routed, as route.provider names it.

  • scenariostringoptionalenum same_chain_same_token · same_chain_diff_token · cross_chain_same_token · cross_chain_diff_token

    Only settlements of this corridor, as route.type names it. It accepts every corridor route.type names, and gains a value whenever route.type does.

  • created[gte]string <date-time>optional

    Only objects created at or after this instant (RFC 3339).

  • created[gt]string <date-time>optional

    Only objects created after this instant (RFC 3339).

  • created[lte]string <date-time>optional

    Only objects created at or before this instant (RFC 3339).

  • created[lt]string <date-time>optional

    Only objects created before this instant (RFC 3339).

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 description

    It is required under a person's session, exactly as EnvironmentHeader describes: a session request that omits it answers 400 with environment required, and one naming an environment the caller holds no membership of answers 404.

    An API key names its own environment, so a request made with one omits this header. A key request that sends it answers 400 with environment 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 page of settlements.

  • objectstringrequiredenum list

    The object's type, always list.

    • 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

      true when environment_id names a live environment and false in 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 created and moves through refill_pending, refill_confirmed and routing to completed; retrying and failed are reachable from routing, and refunded is terminal beside completed.

      Show full description

      awaiting_credit is where a settlement the workspace's gas credit cannot pay for parks: it is reached from created or refill_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, and POST /settlements/{id}/retry is the one move a client can ask for.

    • 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 description

      A leg still in flight is described rather than omitted. completed_at is what says a leg has landed: it is null until then, while amount and tx_hash read what the carrier last reported, zero (amount: "0") and the empty string before it reported anything.

    • 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 description

      A leg still in flight is described rather than omitted. completed_at is what says a leg has landed: it is null until then, while amount and tx_hash read what the carrier last reported, zero (amount: "0") and the empty string before it reported anything.

    • What was taken between the two legs, and how it divides. Every figure is a TokenAmount in the deposit leg's own asset and decimals, so the four always add up in one unit.

    • How the money got from one leg to the other: the kind of move it was, who carried it, and how long it took.

    • errorstring | nullrequired

      Why the settlement failed, or null on 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 description

      Like any nested hash it has no identifier and no object of its own: it means nothing apart from the settlement that carries it.

    • created_atstring <date-time>required

      When the settlement was raised. RFC3339 UTC, Z suffixed.

    • updated_atstring <date-time>required

      When the settlement last moved. It equals created_at on one that has not moved since it was raised.

  • has_morebooleanrequired

    Whether the list holds more objects past this page in the direction it was read: after its last object, or before its first for a page read with ending_before.

  • urlstringrequired

    The path the list is read at.

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.

Request
curl "https://api.stridge.com/v2/settlements" \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY"

Set your secret key as STRIDGE_SECRET_KEY (sent as Authorization: Bearer).

Response200
"object": "list",
"id": "4c81d3f6-7a92-4b0e-9d1f-2e6a8c05b743",
"object": "settlement",
"environment_id": "3f2a6d7e-6b1c-4f2a-9a11-0b53f8d6b2c1",
"livemode": false,
"uda_id": "1d4b8e07-3c25-4f19-8a6d-5b7c9e0f2a34",
"status": "completed",
"address": "0x7a5f2c81b93e4d6a0c1f8b25e73d940ab6c5e812",
"network_id": 60,
"network_name": "ethereum",
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
},
"asset_symbol": "USDT",
"asset_address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"tx_hash": "0x9f3c1e7a45b2d80c6e91f4a3527d8bc0e1642f9d7a35c08b4e6d2170fa93c5b8",
"completed_at": "2026-01-14T09:33:52Z"
},
"address": "0x7a5f2c81b93e4d6a0c1f8b25e73d940ab6c5e812",
"network_id": 60,
"network_name": "ethereum",
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
},
"asset_symbol": "USDT",
"asset_address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"tx_hash": "0x9f3c1e7a45b2d80c6e91f4a3527d8bc0e1642f9d7a35c08b4e6d2170fa93c5b8",
"completed_at": "2026-01-14T09:33:52Z"
},
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
},
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
},
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
},
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
}
},
"type": "cross_chain_same_token",
"provider": "lifi",
"time_ms": 8420
},
"error": null,
"attempts": 4,
"max_retries": 3,
"last_attempt_at": "2026-01-14T10:02:11Z",
"next_automatic_attempt_at": null,
"stopped_reason": "retry_limit_exceeded",
"retryable": false,
"available_at": null
},
"created_at": "2026-01-14T09:33:47Z",
"updated_at": "2026-01-14T09:34:20Z"
}
],
"has_more": false,
"url": "/v2/settlements"
}