clearance_x402_ap2
Paid transaction-clearance decision for an autonomous x402 purchase. Use after create_ap2_challenge and after receiving the merchant's real PAYMENT-REQUIRED challenge, but before paying the merchant. Verifies AP2 v0.2 authority, exact request/challenge integrity, and public merchant-risk evidence. Returns clearance_decision APPROVED, REVIEW or DENIED and a signed clearance_token. APPROVED may proceed automatically; REVIEW should not auto-pay; DENIED should not pay. Machine price: $0.001 via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | No | ||
| payer | Yes | Base payer wallet address that would pay the merchant. | |
| request | Yes | Exact HTTP request the agent intends to execute if clearance permits it. | |
| category | Yes | Service/purchase category for the transaction. | |
| merchant_id | Yes | Stable merchant identifier covered by the AP2 authority. | |
| ap2_authority | Yes | ||
| payment_required | Yes | Merchant's real x402 PAYMENT-REQUIRED payload, decoded or encoded. |