Issue an AP2 Open Intent Mandate so an AI agent can autonomously search and purchase within user-defined budget and merchant constraints

domain: ap2-protocol.org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. At session start, the user defines an IntentMandate specifying constraints: maximum budget, allowed payment instruments, permitted merchant categories, and expiry time; use the AP2 SDK's IntentMandate builder to construct and sign this object.
  2. Store the signed IntentMandate and share it with the agent via a secure token reference; never pass the raw mandate body through the LLM prompt.
  3. The agent consults the IntentMandate before executing any purchase action, checking that price, merchant, and instrument all satisfy the stated constraints before proceeding.
  4. When the agent is ready to buy, it generates a CartMandate from the merchant and a PaymentMandate referencing both the CartMandate and the originating IntentMandate, forming a verifiable three-document chain.
  5. Present the complete mandate chain to the credential provider; the provider validates that the PaymentMandate does not exceed the IntentMandate's budget ceiling and that the mandate has not expired.

Known gotchas

Related routes

Implement AP2 Payment Mandate modality selection so a merchant requires real-time Cart Mandate authorization for human-present purchases but honors pre-signed Intent Mandate terms for human-not-present, delegated purchases
ap2-protocol.org · 6 steps · unrated
Implement AP2 v0.2.0 mandate chaining using the Python SDK so an agent application can build a verifiable IntentMandate→CartMandate→PaymentMandate chain end-to-end
github.com/google-agentic-commerce/AP2 · 5 steps · unrated
Integrate Google AP2 (Agent Payments Protocol) mandates into a merchant checkout flow so agents can carry cryptographically-signed purchase authority
ap2-protocol.org · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans