User says:

“Book me a refundable hotel room in Austin under $250, but only if it accepts my verified legal identity and pay with AgentPay.”

Flow:

  1. Agent finds hotel through UCP, MCP, direct API, or browser.
  2. Hotel checkout says identity is required.
  3. Server returns x401 Proof-Required.
  4. Agent asks identity wallet for a verifiable presentation:
    • legal identity verified
    • user authorized this agent
    • authorization is scoped to hotel booking
    • not revoked
  5. Agent retries with Proof-Presentation.
  6. Hotel accepts identity proof.
  7. AgentPay checks purchase policy:
    • hotel merchant allowed
    • amount ⇐ $250
    • refundable room
    • user mandate still valid
  8. AgentPay issues payment:
    • card credential, wallet payment, or x402 payment depending merchant rail
  9. Merchant charges.
  10. AgentPay records:
    • original user intent
    • x401 proof challenge/result
    • AP2/AgentPay authorization
    • payment authorization
  • receipt