An agent that buys things on a person's behalf has to clear two checks. The seller needs to know the agent is allowed to spend, and it needs to know the money actually moved. Two open protocols split that work. AP2, the Agent Payments Protocol that Google introduced in September 2025, carries the permission. x402 carries the payment.
Suede Agent Studio runs both. The Agentic Rails Atlas by merces.ai, which tracks eight agent payment protocols, lists six AP2 implementers, and Agent Studio is one of them. This article explains what each protocol does and how they fit together in a single call.
Permission: what an AP2 mandate carries#
An AP2 mandate is a signed statement of what a person approved. AP2 v0.2 encodes mandates as SD-JWTs, so the holder can disclose only the claims a merchant needs. Two of them matter at checkout. A Checkout Mandate describes what is being bought. A Payment Mandate describes how it will be paid for and within what limits.
The signature comes from a delegated key, an ES256 key on the P-256 curve that the person's wallet or agent platform has authorized. Agent Studio accepts one delegation hop: a user's key can authorize an agent's key, but that agent cannot pass the authority on again.
What Suede Agent Studio checks before money moves#
- Both mandates verify as SD-JWTs signed by a trusted delegated key, one hop deep.
- The iat, exp, aud and nonce claims are present and valid, and a nonce cannot be used twice.
- Checkout constraints match: the allowed merchants and the line items.
- Payment constraints match: the allowed payees, payment instruments, amount range, reference and execution date.
- Any constraint Studio does not understand is rejected. A mandate cannot slip a limit past the merchant by naming a field it will skip.
Studio then binds the mandates to the exact service request: the published service, its immutable Live deployment, a digest of the input, the price in USDC, the payout address and the network. A mandate approved for one request cannot pay for another.
Payment: x402 settles in the same exchange#
Card and bank rails were not built for this. Coinbase's x402 whitepaper puts it plainly:
“These rails were designed for humans, and don't work for small, high-frequency transactional services like API requests.”
Once the mandates check out, settlement is plain x402 v2 using the exact scheme, paid in USDC on Base. The payment is attached to the HTTP request itself, so there is no checkout page, no account and no stored card. When it settles, Studio runs the service and signs a merchant Checkout Receipt that references the final mandate, so the buyer has a record of what was approved and what was paid.
GET /.well-known/ap2.json → eligible services
GET /api/agents/<slug>/.well-known/ap2 → service terms
POST /api/agents/<slug>/ap2/checkout → signed checkout quote
POST /api/agents/<slug>/run
A2A-Extensions: https://github.com/google-agentic-commerce/ap2/v1
+ Checkout Mandate, Payment Mandate (SD-JWT)
+ x402 payment (exact, USDC on Base) → result + Checkout ReceiptWhy optional mode matters#
AP2 runs in optional mode on Suede Agent Studio. An agent that only speaks x402 still pays and gets its result. An agent that carries AP2 mandates gets authorization, replay protection and a signed receipt on top. If an agent presents an AP2 authorization that fails, the call stops there and never falls back to the plain path.
That gives sellers the widest reach today and a stronger contract with the agents that want one. As assistants such as Gemini start checking out with AP2, a published service is ready for them without a second integration.