Skip to main content
WEBHOOK

Body

application/json

Payload for the wallet_action.swap.rejected webhook event.

type
enum<string>
required

The type of webhook event.

Available options:
wallet_action.swap.rejected
wallet_action_id
string
required

The ID of the wallet action.

wallet_id
string
required

The ID of the wallet involved in the action.

action_type
enum<string>
required

Type of wallet action

Available options:
swap,
transfer,
earn_deposit,
earn_withdraw,
earn_incentive_claim,
earn_fee_collect
created_at
string
required

ISO 8601 timestamp of when the wallet action was created.

caip2
string
required

Chain identifier.

input_token
string
required

Token address being sold.

output_token
string
required

Token address being bought.

input_amount
string | null
required

Amount of input token in base units. Populated after onchain confirmation.

status
enum<string>
required

The status of the wallet action.

Available options:
rejected
failure_reason
FailureReason · object
required

A description of why a wallet action (or a step within a wallet action) failed.

steps
(EVMTransactionWalletActionStep · object | EVMUserOperationWalletActionStep · object | SVMTransactionWalletActionStep · object | TVMTransactionWalletActionStep · object | ExternalTransactionWalletActionStep · object | CustodianTransactionWalletActionStep · object)[]
required

The steps of the wallet action at the time of rejection.

A wallet action step consisting of an EVM transaction.

rejected_at
string
required

ISO 8601 timestamp of when the wallet action was rejected.

Response

200

Return a 200 status to indicate that the webhook was received successfully.