Skip to content

List x402 settlements

GET
/x402/settlements

Settlements of this key’s account, newest first. In wallet mode the token went to payTo; in balance mode (Base) it was credited to the account.

Required scope: x402.list.

page
number
default: 1 >= 1

1-indexed page number.

limit
number
default: 20 >= 1 <= 100

Items per page. Capped at 100.

accountId
string format: uuid

Dashboard only: one account of the tenant. The merchant API always uses the account of the API key.

resourceId
string format: uuid

Payments for one resource.

status
string
Allowed values: submitted confirmed credited failed
outcome
string
Allowed values: paid pending failed

paid: confirmed or credited. pending: submitted. failed: failed. Combines with status (both must match).

from
string format: date-time

Include settlements created at or after this instant.

to
string format: date-time

Include settlements created at or before this instant.

payer
string

Payer address. Compared case-insensitively.

payTo
string

Recipient address. Compared case-insensitively.

transaction
string

Transaction hash, exact match.

Media typeapplication/json
object
total
required

Total number of matching rows.

number
page
required

1-indexed page number that was returned.

number
limit
required

Items per page that were returned.

number
hasMore
required

True if there is at least one more page after this one.

boolean
data
required
Array<object>
object
id
required
string format: uuid
status
required

credited (balance mode only): confirmed and credited to the account balance.

string
Allowed values: submitted confirmed credited failed
accountId
required

Account the payment belongs to.

string format: uuid
payoutMode
required

wallet: paid to a verified merchant wallet. balance (Base): paid to the account’s settlement address and credited to its balance.

string
Allowed values: wallet balance
origin
required

facilitator: settled through /x402/settle. chain: a transfer to the settlement address that did not go through /x402/settle.

string
Allowed values: facilitator chain
network
required

CAIP-2 network id.

string
asset
required

Token contract.

string
amount
required

Atomic units of asset.

string
payer
required
string
payTo
required
string
transaction
required

Transaction hash. Empty until the settlement is broadcast.

string
errorReason
required

Set when status is failed.

string
nullable
fee
required

Cryptonly fee, atomic units of feeCurrency. 0 within the free tier.

string
feeCurrency
required

Own wallet: USDC, charged to the x402 credits. Balance mode: the settled asset, deducted at credit.

string
nullable
resourceUrl
required

resource.url from the payment.

string
nullable
resourceId
required
string format: uuid
nullable
createdAt
required
string format: date-time
confirmedAt
required
string format: date-time
nullable
creditedAt
required
string format: date-time
nullable

Example

{
"data": [
{
"status": "submitted",
"payoutMode": "wallet",
"origin": "facilitator",
"network": "eip155:84532",
"asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"amount": "1000",
"payer": "0x857b06519E91e3A54538791bDbb0E22373e36b66",
"payTo": "0x209693Bc6afc0C5328bA36FaF03C514EF312287C",
"transaction": "0xabababababababababababababababababababababababababababababababab",
"errorReason": null,
"fee": "2500",
"feeCurrency": "USDC_BASE",
"resourceUrl": "https://api.example.com/weather"
}
]
}

Request validation failed (e.g. missing or malformed body / query).

Media typeapplication/json
object
code
required

Stable machine-readable error code, namespaced under exceptions.. Always prefer branching on this value over message. See the per-route descriptions for the codes that route emits.

string
message
required

Human-readable explanation. Subject to wording changes; for programmatic checks use code instead.

string
extension

Optional structured payload accompanying the error. For exceptions.rateLimit.exceeded includes msBeforeNext; for validation errors includes the offending field info.

object
key
additional properties
any

Example

{
"code": "exceptions.auth.invalidApiKey",
"message": "Invalid or missing API key"
}

Missing or invalid x-tenant-api-key header. Code: exceptions.auth.invalidApiKey.

Media typeapplication/json
object
code
required

Stable machine-readable error code, namespaced under exceptions.. Always prefer branching on this value over message. See the per-route descriptions for the codes that route emits.

string
message
required

Human-readable explanation. Subject to wording changes; for programmatic checks use code instead.

string
extension

Optional structured payload accompanying the error. For exceptions.rateLimit.exceeded includes msBeforeNext; for validation errors includes the offending field info.

object
key
additional properties
any

Example

{
"code": "exceptions.auth.invalidApiKey",
"message": "Invalid or missing API key"
}

Request origin IP is not on the tenant API allowlist (exceptions.auth.ipNotAllowed), or the API key is missing the scope required by this operation (exceptions.auth.insufficientScope).

Media typeapplication/json
object
code
required

Stable machine-readable error code, namespaced under exceptions.. Always prefer branching on this value over message. See the per-route descriptions for the codes that route emits.

string
message
required

Human-readable explanation. Subject to wording changes; for programmatic checks use code instead.

string
extension

Optional structured payload accompanying the error. For exceptions.rateLimit.exceeded includes msBeforeNext; for validation errors includes the offending field info.

object
key
additional properties
any

Example

{
"code": "exceptions.auth.invalidApiKey",
"message": "Invalid or missing API key"
}

Rate limit exceeded for this endpoint. Retry after the window resets. Code: exceptions.rateLimit.exceeded. The extension.msBeforeNext field tells you how long to wait.

Media typeapplication/json
object
code
required

Stable machine-readable error code, namespaced under exceptions.. Always prefer branching on this value over message. See the per-route descriptions for the codes that route emits.

string
message
required

Human-readable explanation. Subject to wording changes; for programmatic checks use code instead.

string
extension

Optional structured payload accompanying the error. For exceptions.rateLimit.exceeded includes msBeforeNext; for validation errors includes the offending field info.

object
key
additional properties
any

Example

{
"code": "exceptions.auth.invalidApiKey",
"message": "Invalid or missing API key"
}

Unexpected server error. Safe to retry idempotent operations after a backoff.

Media typeapplication/json
object
code
required

Stable machine-readable error code, namespaced under exceptions.. Always prefer branching on this value over message. See the per-route descriptions for the codes that route emits.

string
message
required

Human-readable explanation. Subject to wording changes; for programmatic checks use code instead.

string
extension

Optional structured payload accompanying the error. For exceptions.rateLimit.exceeded includes msBeforeNext; for validation errors includes the offending field info.

object
key
additional properties
any

Example

{
"code": "exceptions.auth.invalidApiKey",
"message": "Invalid or missing API key"
}