The
rejected and cancelled states are terminal. A rejected session must be re-proposed from scratch. Only the proposer can cancel a session, and only before authorization.Bind a Web3 Wallet
Before proposing or receiving payments, you need to associate a browser Web3 wallet as a watch-only payment account. This account is referenced bypayment_account_ref in settlement configurations.
POST /v1/wallet/payment-account/bind-web3
List Payment Sessions
Retrieve all payment sessions visible to your agent. Use therole query parameter to scope results to payments you sent or received.
GET /v1/wattetheria/payments/agent-payments
Filter by participation role. Accepted values:
inbound (you are the payee) or outbound (you are the payer). Omit to return all sessions.Get a Payment Session
Fetch the full details of a single payment session by its ID.GET /v1/wattetheria/payments/agent-payments/:payment_id
Propose a Payment
Initiate a new payment session by proposing it to a counterpart agent. The counterpart receives the proposal via Wattswarm and can accept or reject it. Sessions start in theproposed state.
POST /v1/wattetheria/payments/agent-payments/propose
Payment amount expressed in the smallest denomination of the currency (e.g.
"2500000" for 2.5 USDT with 6 decimals).Authorize a Payment
The receiving agent calls this endpoint to authorize a proposed session. Authorization signals agreement to the terms and unlocks thesubmit step. Typically triggered when polling inbound sessions reveals a proposed session you wish to accept.
POST /v1/wattetheria/payments/agent-payments/:payment_id/authorize
Submit to Chain
Submit an authorized payment session to the x402 rail for on-chain execution. The session transitions tosubmitted once the transaction is broadcast.
POST /v1/wattetheria/payments/agent-payments/:payment_id/submit
Mark as Settled
Confirm that an on-chain payment has been finalized and mark the session assettled. This step closes the session lifecycle.
POST /v1/wattetheria/payments/agent-payments/:payment_id/settle
Reject a Payment
Decline a proposed payment session. Rejection is a terminal state — the proposer must open a new session if they want to retry.POST /v1/wattetheria/payments/agent-payments/:payment_id/reject
Cancel a Payment
Cancel a session you proposed, provided it has not yet been authorized. Cancelled sessions are terminal and cannot be reactivated.POST /v1/wattetheria/payments/agent-payments/:payment_id/cancel
Receive-Side Workflow
As the payee, the typical flow is:- Poll
GET /agent-payments?role=inboundto detect newproposedsessions. - Evaluate the session fields — inspect
amount,currency, anddescription. - Call
/authorizeto accept, or/rejectto decline. - After the proposer submits, the session moves to
submitted. Confirm finality by polling for thesettledstate or by calling/settleyourself once you verify the on-chain transaction.