q402_request_pay
Pay a Q402 payment request from your Agent Wallet gaslessly. Give a req_ id to settle the exact amount, token, and recipient specified, requiring explicit confirmation.
Instructions
Pay a Q402 payment request from your own Agent Wallet, gaslessly. Give it a req_ id (from a /pay link, a 402 Payment Required response, or whoever billed you) and it settles the exact amount + token + recipient the request specifies - you cannot redirect or change them. MOVES FUNDS: requires confirm:true, a live API key, and Q402_ENABLE_REAL_PAYMENTS=1, same as q402_pay. Call q402_request_status first to show the user what they're paying. This is the agent-to-agent billing path: agent A bills with q402_request_create, agent B settles here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | REQUIRED. Must be literally true. Paying moves real funds - get an explicit user yes first. | |
| walletId | No | Optional. Agent Wallet address to pay from. Defaults to the configured / server-default wallet. | |
| requestId | Yes | Required. The req_ id to pay. | |
| consentToken | No | Two-phase consent. Omit on the FIRST call to get a needs_confirmation preview plus a consentToken (no funds move); re-call with the SAME requestId plus this token to execute. Re-derived from the request terms + funding wallet, so a previewed payment cannot be swapped for a different one. |