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